Commit fc0c461b authored by Jidong Chen's avatar Jidong Chen

update

parent b5ef7160
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface FLBFlutterApplication : NSObject<FLBFlutterApplicationInterface> @interface FLBFlutterApplication : NSObject<FLBFlutterApplicationInterface>
@property (nonatomic,strong) id<FLB2Platform> platform;
@end @end
......
...@@ -126,5 +126,9 @@ ...@@ -126,5 +126,9 @@
[self.viewProvider inactive]; [self.viewProvider inactive];
} }
- (id<FLB2FlutterProvider>)flutterProvider
{
return _viewProvider;
}
@end @end
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface FLB2FlutterApplication : NSObject<FLBFlutterApplicationInterface> @interface FLB2FlutterApplication : NSObject<FLBFlutterApplicationInterface>
@property (nonatomic,strong) id<FLB2Platform> platform;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -50,6 +50,21 @@ ...@@ -50,6 +50,21 @@
return self; return self;
} }
- (id<FLBFlutterApplicationInterface>)application
{
return _application;
}
- (FLBResultMediator *)resultMediator
{
return _resultMediator;
}
- (id<FLBAbstractFactory>)factory
{
return _factory;
}
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
FlutterMethodChannel* channel = [FlutterMethodChannel FlutterMethodChannel* channel = [FlutterMethodChannel
methodChannelWithName:@"flutter_boost" methodChannelWithName:@"flutter_boost"
...@@ -91,6 +106,7 @@ ...@@ -91,6 +106,7 @@
return [self.application isRunning]; return [self.application isRunning];
} }
- (FlutterViewController *)currentViewController - (FlutterViewController *)currentViewController
{ {
return [self.application flutterViewController]; return [self.application flutterViewController];
......
...@@ -18,9 +18,11 @@ A new Flutter plugin make flutter better to use! ...@@ -18,9 +18,11 @@ A new Flutter plugin make flutter better to use!
'Classes/Boost/FlutterBoost.h', 'Classes/Boost/FlutterBoost.h',
'Classes/Boost/FlutterBoostPlugin.h', 'Classes/Boost/FlutterBoostPlugin.h',
'Classes/Boost/FLBPlatform.h', 'Classes/Boost/FLBPlatform.h',
'Classes/Boost/FLB2Platform.h',
'Classes/Boost/FLBFlutterContainer.h',
'Classes/Boost/FLBFlutterAppDelegate.h', 'Classes/Boost/FLBFlutterAppDelegate.h',
'Classes/Container/FLBFlutterViewContainer.h', 'Classes/1.0/FLBFlutterViewContainer.h',
'Classes/Container/FLBViewControllerResultHandler.h' 'Classes/1.5/FLB2FlutterViewContainer.h'
s.dependency 'Flutter' s.dependency 'Flutter'
s.dependency 'xservice_kit' s.dependency 'xservice_kit'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment