From 07b1f7f744d8175714fbfd5916a932012c503f50 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 4 May 2017 19:24:41 -0700 Subject: [PATCH] Update Hello World plugin integration (#9825) Enable plugin infra for both iOS and Android post-#9791. --- .../android/app/src/main/AndroidManifest.xml | 2 +- .../examples/hello_world/MainActivity.java | 16 ++++++++++++++ .../io/flutter/plugins/PluginRegistry.java | 14 ++++++++++++ .../ios/Runner.xcodeproj/project.pbxproj | 6 +++++ examples/hello_world/ios/Runner/AppDelegate.m | 22 ++++++++++++------- .../hello_world/ios/Runner/PluginRegistry.h | 18 +++++++++++++++ .../hello_world/ios/Runner/PluginRegistry.m | 15 +++++++++++++ 7 files changed, 84 insertions(+), 9 deletions(-) create mode 100644 examples/hello_world/android/app/src/main/java/io/flutter/examples/hello_world/MainActivity.java create mode 100644 examples/hello_world/android/app/src/main/java/io/flutter/plugins/PluginRegistry.java create mode 100644 examples/hello_world/ios/Runner/PluginRegistry.h create mode 100644 examples/hello_world/ios/Runner/PluginRegistry.m diff --git a/examples/hello_world/android/app/src/main/AndroidManifest.xml b/examples/hello_world/android/app/src/main/AndroidManifest.xml index 05c902bfeb..46ceb56d05 100644 --- a/examples/hello_world/android/app/src/main/AndroidManifest.xml +++ b/examples/hello_world/android/app/src/main/AndroidManifest.xml @@ -22,7 +22,7 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> - + + +@interface PluginRegistry : NSObject + + +- (instancetype)initWithController:(FlutterViewController *)controller; + +@end + +#endif /* PluginRegistry_h */ diff --git a/examples/hello_world/ios/Runner/PluginRegistry.m b/examples/hello_world/ios/Runner/PluginRegistry.m new file mode 100644 index 0000000000..0a34729946 --- /dev/null +++ b/examples/hello_world/ios/Runner/PluginRegistry.m @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +#import "PluginRegistry.h" + +@implementation PluginRegistry + +- (instancetype)initWithController:(FlutterViewController *)controller { + if (self = [super init]) { + } + return self; +} + +@end