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,19 +14,14 @@ subprojects {
} }
subprojects { project -> subprojects { project ->
def setCompileSdk = { if (project.name != 'app') {
project.afterEvaluate {
if (project.hasProperty('android')) { if (project.hasProperty('android')) {
project.android { project.android {
compileSdkVersion 35 compileSdkVersion 35
} }
} }
} }
if (project.state.executed) {
setCompileSdk()
} else {
project.afterEvaluate {
setCompileSdk()
}
} }
} }