From fa7fed192a4cdf429eb998700a8ca91d554a78bb Mon Sep 17 00:00:00 2001 From: Andres Melenchon Date: Wed, 25 Nov 2020 14:24:23 +0100 Subject: [PATCH] Update Android embedding v2 https://flutter.dev/go/android-project-migration --- android/app/src/main/AndroidManifest.xml | 25 +++++++++++-------- .../co/appbrewery/dicee/MainActivity.java | 6 +---- android/app/src/main/res/values/styles.xml | 3 +++ 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index bed531f..76a847e 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -12,10 +12,10 @@ In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> - + + - + + + android:name="io.flutter.embedding.android.SplashScreenDrawable" + android:resource="@drawable/launch_background" /> + + + + diff --git a/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java b/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java index 0c8f4ef..59383d6 100644 --- a/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java +++ b/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java @@ -5,9 +5,5 @@ import io.flutter.plugins.GeneratedPluginRegistrant; public class MainActivity extends FlutterActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - GeneratedPluginRegistrant.registerWith(this); - } + } diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 00fa441..c745a5e 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -5,4 +5,7 @@ Flutter draws its first frame --> @drawable/launch_background +