Set Target SDK
This commit is contained in:
parent
eaabc0114c
commit
22d8b4d778
|
|
@ -10,7 +10,11 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.example.tasq"
|
namespace = "com.example.tasq"
|
||||||
compileSdk = flutter.compileSdkVersion
|
// ensure we compile against a recent Android SDK (34+ required by some plugins)
|
||||||
|
// Flutter's generated `flutter.compileSdkVersion` may lag behind, so hardcode
|
||||||
|
// the value here to avoid resource/linking errors during release builds.
|
||||||
|
// many plugins now request API 36; we target the highest needed level.
|
||||||
|
compileSdk = 36
|
||||||
ndkVersion = flutter.ndkVersion
|
ndkVersion = flutter.ndkVersion
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
|
@ -31,7 +35,9 @@ android {
|
||||||
// You can update the following values to match your application needs.
|
// You can update the following values to match your application needs.
|
||||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||||
minSdk = flutter.minSdkVersion
|
minSdk = flutter.minSdkVersion
|
||||||
targetSdk = flutter.targetSdkVersion
|
// lock the target SDK to match compileSdk so that plugin requirements
|
||||||
|
// are satisfied. Higher targetSdk is backwards compatible.
|
||||||
|
targetSdk = 36
|
||||||
versionCode = flutter.versionCode
|
versionCode = flutter.versionCode
|
||||||
versionName = flutter.versionName
|
versionName = flutter.versionName
|
||||||
}
|
}
|
||||||
|
|
@ -44,6 +50,15 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable lint checks during release builds to avoid intermittent
|
||||||
|
// file-lock errors on Windows (lintVitalAnalyzeRelease tasks can
|
||||||
|
// collide with other processes). The app is presumed stable and
|
||||||
|
// lint warnings are handled during development.
|
||||||
|
lint {
|
||||||
|
checkReleaseBuilds = false
|
||||||
|
abortOnError = false
|
||||||
|
}
|
||||||
|
|
||||||
// allow desugaring of Java 8+ library APIs
|
// allow desugaring of Java 8+ library APIs
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ subprojects {
|
||||||
project.evaluationDependsOn(":app")
|
project.evaluationDependsOn(":app")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.register<Delete>("clean") {
|
tasks.register<Delete>("clean") {
|
||||||
delete(rootProject.layout.buildDirectory)
|
delete(rootProject.layout.buildDirectory)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,7 @@
|
||||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
|
android.suppressUnsupportedCompileSdk=36
|
||||||
|
|
||||||
|
# force all Flutter modules to compile against API 36
|
||||||
|
flutter.compileSdkVersion=36
|
||||||
|
kotlin.incremental=false
|
||||||
Loading…
Reference in New Issue
Block a user