Commit fc0c461b authored by Jidong Chen's avatar Jidong Chen

update

parent b5ef7160
......@@ -29,7 +29,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface FLBFlutterApplication : NSObject<FLBFlutterApplicationInterface>
@property (nonatomic,strong) id<FLB2Platform> platform;
@end
......
......@@ -126,5 +126,9 @@
[self.viewProvider inactive];
}
- (id<FLB2FlutterProvider>)flutterProvider
{
return _viewProvider;
}
@end
......@@ -31,7 +31,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface FLB2FlutterApplication : NSObject<FLBFlutterApplicationInterface>
@property (nonatomic,strong) id<FLB2Platform> platform;
@end
NS_ASSUME_NONNULL_END
......@@ -50,6 +50,21 @@
return self;
}
- (id<FLBFlutterApplicationInterface>)application
{
return _application;
}
- (FLBResultMediator *)resultMediator
{
return _resultMediator;
}
- (id<FLBAbstractFactory>)factory
{
return _factory;
}
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
FlutterMethodChannel* channel = [FlutterMethodChannel
methodChannelWithName:@"flutter_boost"
......@@ -91,6 +106,7 @@
return [self.application isRunning];
}
- (FlutterViewController *)currentViewController
{
return [self.application flutterViewController];
......
......@@ -18,9 +18,11 @@ A new Flutter plugin make flutter better to use!
'Classes/Boost/FlutterBoost.h',
'Classes/Boost/FlutterBoostPlugin.h',
'Classes/Boost/FLBPlatform.h',
'Classes/Boost/FLB2Platform.h',
'Classes/Boost/FLBFlutterContainer.h',
'Classes/Boost/FLBFlutterAppDelegate.h',
'Classes/Container/FLBFlutterViewContainer.h',
'Classes/Container/FLBViewControllerResultHandler.h'
'Classes/1.0/FLBFlutterViewContainer.h',
'Classes/1.5/FLB2FlutterViewContainer.h'
s.dependency 'Flutter'
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