Add ota_update package to build deps, enable desugaring
This commit is contained in:
parent
baf6384604
commit
e5379bb81e
2 changed files with 23 additions and 5 deletions
|
@ -7,16 +7,23 @@ plugins {
|
|||
|
||||
android {
|
||||
namespace = "dev.zontreck.pokedex"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
compileSdk = 35
|
||||
ndkVersion = "27.0.12077973"
|
||||
|
||||
defaultConfig {
|
||||
// Required when setting minSdkVersion to 20 or lower
|
||||
multiDexEnabled = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
|
@ -37,6 +44,16 @@ android {
|
|||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
// For AGP 7.4+
|
||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
|
||||
// For AGP 7.3
|
||||
// coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.3")
|
||||
// For AGP 4.0 to 7.2
|
||||
// coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.9")
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue