diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index dec5500..2cd2e96 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -11,6 +11,9 @@ android { ndkVersion = flutter.ndkVersion compileOptions { + // Flag to enable support for the new language APIs + isCoreLibraryDesugaringEnabled = true + // Sets Java compatibility to Java 11 sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } @@ -20,6 +23,7 @@ android { } defaultConfig { + multiDexEnabled = true // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "de.creativedragonslayer.dragon_ledger" // You can update the following values to match your application needs. @@ -37,6 +41,14 @@ android { signingConfig = signingConfigs.getByName("debug") } } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + } +} + +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") } flutter { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index a91cb31..8bb0fd3 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -11,6 +11,8 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" + android:showWhenLocked="true" + android:turnScreenOn="true" android:windowSoftInputMode="adjustResize">