| // Copyright 2014 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "AppDelegate.h" |
| #include "GeneratedPluginRegistrant.h" |
| #include "SimplePlatformView.h" |
| |
| @implementation AppDelegate |
| |
| - (BOOL)application:(UIApplication *)application |
| didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
| [GeneratedPluginRegistrant registerWithRegistry:self]; |
| |
| // Register platform view factory. |
| NSObject<FlutterPluginRegistrar>* registrar = [self registrarForPlugin:@"spv-plugin"]; |
| SimplePlatformViewFactory* factory = [[SimplePlatformViewFactory alloc] initWithMessenger:registrar.messenger]; |
| [registrar registerViewFactory:factory withId:@"simple-platform-view"]; |
| |
| // Override point for customization after application launch. |
| return [super application:application didFinishLaunchingWithOptions:launchOptions]; |
| } |
| |
| @end |