mirror of
https://gitlab.com/Zer0interrupt/recipe-manager.git
synced 2026-11-01 23:24:11 -05:00
Fix Gradle afterEvaluate evaluation check in root build.gradle
This commit is contained in:
parent
731401b33f
commit
96357fd4be
1 changed files with 11 additions and 1 deletions
|
|
@ -11,13 +11,23 @@ subprojects {
|
|||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
afterEvaluate { project ->
|
||||
}
|
||||
|
||||
subprojects { project ->
|
||||
def setCompileSdk = {
|
||||
if (project.hasProperty('android')) {
|
||||
project.android {
|
||||
compileSdkVersion 35
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.state.executed) {
|
||||
setCompileSdk()
|
||||
} else {
|
||||
project.afterEvaluate {
|
||||
setCompileSdk()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue