File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,10 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
135135#endif
136136 FlutterMethodChannel* channel = [FlutterMethodChannel methodChannelWithName: @" fvp" binaryMessenger: messenger];
137137 FvpPlugin* instance = [[FvpPlugin alloc ] initWithRegistrar: registrar];
138- [registrar addApplicationDelegate: instance];
138+ #if TARGET_OS_OSX
139+ #else
140+ [registrar addApplicationDelegate: instance];
141+ #endif
139142 [registrar publish: instance];
140143 [registrar addMethodCallDelegate: instance channel: channel];
141144 SetGlobalOption (" MDK_KEY" , " C03BFF5306AB39058A767105F82697F42A00FE970FB0E641D306DEFF3F220547E5E5377A3C504DC30D547890E71059BC023A4DD91A95474D1F33CA4C26C81B0FC73B00ACF954C6FA75898EFA07D9680B6A00FDF179C0A15381101D01124498AF55B069BD4B0156D5CF5A56DEDE782E5F3930AD47C8F40BFBA379231142E31B0F" );
@@ -185,7 +188,10 @@ - (void)detachFromEngineForRegistrar:(NSObject<FlutterPluginRegistrar> *)registr
185188 players.clear ();
186189}
187190
191+ #if TARGET_OS_OSX
192+ #else
188193- (void )applicationWillTerminate : (UIApplication *)application {
189194 players.clear ();
190195}
196+ #endif
191197@end
You can’t perform that action at this time.
0 commit comments