diff --git a/jsonexample/android/.gitignore b/jsonexample/android/.gitignore index 0a741cb43..6f568019d 100644 --- a/jsonexample/android/.gitignore +++ b/jsonexample/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/jsonexample/android/app/build.gradle b/jsonexample/android/app/build.gradle index 5471d1163..deb5faac6 100644 --- a/jsonexample/android/app/build.gradle +++ b/jsonexample/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.jsonexample" - minSdkVersion 16 - targetSdkVersion 30 + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/jsonexample/android/app/src/main/AndroidManifest.xml b/jsonexample/android/app/src/main/AndroidManifest.xml index d1c40b460..848fda97c 100644 --- a/jsonexample/android/app/src/main/AndroidManifest.xml +++ b/jsonexample/android/app/src/main/AndroidManifest.xml @@ -2,9 +2,11 @@ package="dev.flutter.jsonexample"> - - diff --git a/jsonexample/android/app/src/main/res/values-night/styles.xml b/jsonexample/android/app/src/main/res/values-night/styles.xml index 449a9f930..3db14bb53 100644 --- a/jsonexample/android/app/src/main/res/values-night/styles.xml +++ b/jsonexample/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. -->