diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 21b8b2bc31..40f02919eb 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -65,7 +65,7 @@ TaskFunction createGalleryBackButtonMemoryTest() { return new AndroidBackButtonMemoryTest( '${flutterDirectory.path}/examples/flutter_gallery', 'io.flutter.examples.gallery', - 'io.flutter.app.FlutterActivity', + 'io.flutter.examples.gallery.MainActivity', ); } diff --git a/examples/flutter_gallery/android/app/src/main/AndroidManifest.xml b/examples/flutter_gallery/android/app/src/main/AndroidManifest.xml index 8fd984318f..c854b13ae9 100644 --- a/examples/flutter_gallery/android/app/src/main/AndroidManifest.xml +++ b/examples/flutter_gallery/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/flutter_gallery/ios/Runner/PluginRegistry.m b/examples/flutter_gallery/ios/Runner/PluginRegistry.m new file mode 100644 index 0000000000..0a34729946 --- /dev/null +++ b/examples/flutter_gallery/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