From 063b6b58834f7008f7cb454914981f579f04ad57 Mon Sep 17 00:00:00 2001 From: Alita S <98009307+alitaspaul@users.noreply.github.com> Date: Wed, 1 Jun 2022 18:54:09 +0530 Subject: [PATCH] Update MainActivity.java Migrating flutter apps from v1 to v2 --- .../main/java/co/appbrewery/dicee/MainActivity.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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..fe6dd26 100644 --- a/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java +++ b/android/app/src/main/java/co/appbrewery/dicee/MainActivity.java @@ -1,13 +1,6 @@ package co.appbrewery.dicee; -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); - } + }