From aecb44592b328d9c3c671afd0bfa79f5f42ac4b9 Mon Sep 17 00:00:00 2001 From: todor Date: Mon, 14 Mar 2022 23:40:54 +0200 Subject: [PATCH] fix Presence of android/ directory breaks Android builds on Flutter 2.10 #49 --- example/android/app/build.gradle | 6 +++--- example/android/app/src/main/AndroidManifest.xml | 3 ++- example/android/build.gradle | 2 +- pubspec.yaml | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index b8b72b9..7ee025a 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -35,8 +35,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.flutter_platform_maps_example" - minSdkVersion 16 - targetSdkVersion 30 + minSdkVersion 20 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index dc71632..34c3f64 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -12,7 +12,8 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" - android:windowSoftInputMode="adjustResize"> + android:windowSoftInputMode="adjustResize" + android:exported="true">