
Move to gradle kotlin DSL Use gradle version catalog All android build parameters are set via cmake files Use gradle abi split to build APKs Improve local development in the android project folder
33 lines
734 B
Kotlin
33 lines
734 B
Kotlin
plugins {
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
repositories {
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
register("settingsGradlePropertyDelegate") {
|
|
id = "settings-property-delegate"
|
|
implementationClass = "SettingsPropertyDelegate"
|
|
}
|
|
|
|
register("projectGradlePropertyDelegate") {
|
|
id = "property-delegate"
|
|
implementationClass = "ProjectPropertyDelegate"
|
|
}
|
|
}
|
|
}
|
|
|
|
// stop Gradle running by androiddeployqt
|
|
gradle.taskGraph.whenReady {
|
|
if (providers.environmentVariable("ANDROIDDEPLOYQT_RUN").isPresent
|
|
&& !providers.systemProperty("explicitRun").isPresent) {
|
|
tasks.forEach { it.enabled = false }
|
|
}
|
|
}
|