From 24dcdb6ac00aac0d67a7bdb4297212528babd7ac Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Fri, 18 Feb 2022 02:20:43 +0100 Subject: [PATCH] Update Android files in form_ap (#1016) --- form_app/android/.gitignore | 2 ++ form_app/android/app/build.gradle | 15 ++++++++++++--- form_app/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 +- form_app/android/build.gradle | 8 +++++--- form_app/pubspec.lock | 9 ++++++++- 7 files changed, 31 insertions(+), 18 deletions(-) diff --git a/form_app/android/.gitignore b/form_app/android/.gitignore index 0a741cb43..6f568019d 100644 --- a/form_app/android/.gitignore +++ b/form_app/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/form_app/android/app/build.gradle b/form_app/android/app/build.gradle index 16e2c223d..a56b2e215 100644 --- a/form_app/android/app/build.gradle +++ b/form_app/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.formApp.form_app" - minSdkVersion 16 - targetSdkVersion 30 + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/form_app/android/app/src/main/AndroidManifest.xml b/form_app/android/app/src/main/AndroidManifest.xml index 5c81fe7d4..ff847faab 100644 --- a/form_app/android/app/src/main/AndroidManifest.xml +++ b/form_app/android/app/src/main/AndroidManifest.xml @@ -2,9 +2,11 @@ package="dev.flutter.formApp.form_app"> - - diff --git a/form_app/android/app/src/main/res/values-night/styles.xml b/form_app/android/app/src/main/res/values-night/styles.xml index 449a9f930..3db14bb53 100644 --- a/form_app/android/app/src/main/res/values-night/styles.xml +++ b/form_app/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. -->