Apply compileSdkVersion 35 strictly to non-app plugin subprojects

This commit is contained in:
Chris 2026-11-01 15:20:44 -05:00
parent 96357fd4be
commit e2b9f0d9ba

View file

@ -14,18 +14,13 @@ subprojects {
}
subprojects { project ->
def setCompileSdk = {
if (project.hasProperty('android')) {
project.android {
compileSdkVersion 35
}
}
}
if (project.state.executed) {
setCompileSdk()
} else {
if (project.name != 'app') {
project.afterEvaluate {
setCompileSdk()
if (project.hasProperty('android')) {
project.android {
compileSdkVersion 35
}
}
}
}
}