From 5db058758ffe25673af3532e03c4bdb67009ecbc Mon Sep 17 00:00:00 2001 From: Naveen Belkale Date: Wed, 19 Apr 2023 16:45:49 +0530 Subject: [PATCH] Applying changes for upgrading pre 1.12 Android projects --- android/app/src/main/AndroidManifest.xml | 23 ++++++++++++------- .../bmicalculator/MainActivity.java | 9 +------- android/app/src/main/res/values/styles.xml | 4 ++++ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f0151c33..45eb8ed5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -13,7 +13,7 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> - - + + + + + + + diff --git a/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java b/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java index f6a4330e..e59f71b6 100644 --- a/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java +++ b/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java @@ -1,13 +1,6 @@ package co.appbrewery.bmicalculator; -import android.os.Bundle; -import io.flutter.app.FlutterActivity; -import io.flutter.plugins.GeneratedPluginRegistrant; +import io.flutter.embedding.android.FlutterActivity; 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 00fa4417..f09400a8 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -5,4 +5,8 @@ Flutter draws its first frame --> @drawable/launch_background + +