mirror of
https://github.com/kphanipavan/modal_progress_hud_nsn.git
synced 2025-10-29 23:02:50 -07:00
Test update to 0.4.0
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
|
||||
@interface ModalProgressHudNsnPlugin : NSObject<FlutterPlugin>
|
||||
@end
|
||||
@@ -1,15 +0,0 @@
|
||||
#import "ModalProgressHudNsnPlugin.h"
|
||||
#if __has_include(<modal_progress_hud_nsn/modal_progress_hud_nsn-Swift.h>)
|
||||
#import <modal_progress_hud_nsn/modal_progress_hud_nsn-Swift.h>
|
||||
#else
|
||||
// Support project import fallback if the generated compatibility header
|
||||
// is not copied when this plugin is created as a library.
|
||||
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
|
||||
#import "modal_progress_hud_nsn-Swift.h"
|
||||
#endif
|
||||
|
||||
@implementation ModalProgressHudNsnPlugin
|
||||
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
||||
[SwiftModalProgressHudNsnPlugin registerWithRegistrar:registrar];
|
||||
}
|
||||
@end
|
||||
@@ -1,10 +1,10 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
|
||||
public class SwiftModalProgressHudNsnPlugin: NSObject, FlutterPlugin {
|
||||
public class ModalProgressHudNsnPlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let channel = FlutterMethodChannel(name: "modal_progress_hud_nsn", binaryMessenger: registrar.messenger())
|
||||
let instance = SwiftModalProgressHudNsnPlugin()
|
||||
let instance = ModalProgressHudNsnPlugin()
|
||||
registrar.addMethodCallDelegate(instance, channel: channel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user