From eacf793b35b766887571245c62f5551e4f82cc9c Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 3 May 2017 14:20:17 -0700 Subject: [PATCH] Use default FlutterActivity in non-plugin examples (#9770) Brings hello_world and flutter_gallery Android code in line with the corresponding iOS code. --- dev/devicelab/lib/tasks/perf_tests.dart | 2 +- .../android/app/src/main/AndroidManifest.xml | 2 +- .../flutter/examples/gallery/MainActivity.java | 16 ---------------- .../android/app/src/main/AndroidManifest.xml | 2 +- .../examples/hello_world/MainActivity.java | 16 ---------------- 5 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 examples/flutter_gallery/android/app/src/main/java/io/flutter/examples/gallery/MainActivity.java delete mode 100644 examples/hello_world/android/app/src/main/java/io/flutter/examples/hello_world/MainActivity.java diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 40f02919eb3..21b8b2bc31d 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.examples.gallery.MainActivity', + 'io.flutter.app.FlutterActivity', ); } diff --git a/examples/flutter_gallery/android/app/src/main/AndroidManifest.xml b/examples/flutter_gallery/android/app/src/main/AndroidManifest.xml index c854b13ae92..8fd984318f5 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. --> - -