From 515cdc1d5df3614835b66e9f79d2d6f8135fa350 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Fri, 18 Feb 2022 02:20:00 +0100 Subject: [PATCH] Update Android files in isolate_example (#1017) --- isolate_example/android/.gitignore | 2 ++ isolate_example/android/app/build.gradle | 15 ++++++++++++--- .../android/app/src/main/AndroidManifest.xml | 11 ++--------- .../app/src/main/res/values-night/styles.xml | 2 +- .../android/app/src/main/res/values/styles.xml | 2 +- isolate_example/android/build.gradle | 8 +++++--- 6 files changed, 23 insertions(+), 17 deletions(-) diff --git a/isolate_example/android/.gitignore b/isolate_example/android/.gitignore index 0a741cb43..6f568019d 100644 --- a/isolate_example/android/.gitignore +++ b/isolate_example/android/.gitignore @@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties +**/*.keystore +**/*.jks diff --git a/isolate_example/android/app/build.gradle b/isolate_example/android/app/build.gradle index 12cb5feb9..a510ebda7 100644 --- a/isolate_example/android/app/build.gradle +++ b/isolate_example/android/app/build.gradle @@ -26,7 +26,16 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -35,8 +44,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "dev.flutter.isolate_example" - minSdkVersion 16 - targetSdkVersion 30 + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/isolate_example/android/app/src/main/AndroidManifest.xml b/isolate_example/android/app/src/main/AndroidManifest.xml index 6525194c8..28fca80c8 100644 --- a/isolate_example/android/app/src/main/AndroidManifest.xml +++ b/isolate_example/android/app/src/main/AndroidManifest.xml @@ -2,9 +2,11 @@ package="dev.flutter.isolate_example"> - - diff --git a/isolate_example/android/app/src/main/res/values-night/styles.xml b/isolate_example/android/app/src/main/res/values-night/styles.xml index 449a9f930..3db14bb53 100644 --- a/isolate_example/android/app/src/main/res/values-night/styles.xml +++ b/isolate_example/android/app/src/main/res/values-night/styles.xml @@ -10,7 +10,7 @@ This theme determines the color of the Android Window while your Flutter UI initializes, as well as behind your Flutter UI while its running. - + This Theme is only used starting with V2 of Flutter's Android embedding. -->