Enforce compileSdkVersion 35 across all subprojects to prevent android-37 SDK lookup error

This commit is contained in:
Chris 2026-11-01 15:00:38 -05:00
parent 009a4650b6
commit 731401b33f
2 changed files with 9 additions and 2 deletions

View file

@ -24,7 +24,7 @@ if (flutterVersionName == null) {
android { android {
namespace "com.forkfolio.mobile" namespace "com.forkfolio.mobile"
compileSdk 34 compileSdk 35
ndkVersion flutter.ndkVersion ndkVersion flutter.ndkVersion
compileOptions { compileOptions {
@ -43,7 +43,7 @@ android {
defaultConfig { defaultConfig {
applicationId "com.forkfolio.mobile" applicationId "com.forkfolio.mobile"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 34 targetSdkVersion 35
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
} }

View file

@ -11,6 +11,13 @@ subprojects {
} }
subprojects { subprojects {
project.evaluationDependsOn(':app') project.evaluationDependsOn(':app')
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
compileSdkVersion 35
}
}
}
} }
tasks.register("clean", Delete) { tasks.register("clean", Delete) {