Use new project template (#10378)

This commit is contained in:
Mikkel Nygaard Ravn
2017-05-29 14:07:21 +02:00
committed by GitHub
parent 6f8107756d
commit a755ccd4e4
27 changed files with 282 additions and 328 deletions

View File

@@ -3,17 +3,13 @@
// found in the LICENSE file.
#include "AppDelegate.h"
#include "PluginRegistry.h"
#include "GeneratedPluginRegistrant.h"
@implementation AppDelegate {
PluginRegistry *plugins;
}
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
FlutterViewController *flutterController =
(FlutterViewController *)self.window.rootViewController;
plugins = [[PluginRegistry alloc] initWithController:flutterController];
return YES;
[GeneratedPluginRegistrant registerWithRegistry:self];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end