mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-01 16:26:26 +08:00
@@ -19,6 +19,20 @@ subprojects {
|
||||
}
|
||||
|
||||
subprojects {
|
||||
beforeEvaluate {
|
||||
if (project.name == "jni") {
|
||||
val agpMajorVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
||||
.substringBefore('.')
|
||||
.toInt()
|
||||
val builtInKotlinProperty =
|
||||
project.providers.gradleProperty("android.builtInKotlin").orNull
|
||||
val isBuiltInKotlinEnabled = agpMajorVersion >= 9 &&
|
||||
(builtInKotlinProperty == null || builtInKotlinProperty.toBoolean())
|
||||
if (!isBuiltInKotlinEnabled) {
|
||||
project.apply(plugin = "org.jetbrains.kotlin.android")
|
||||
}
|
||||
}
|
||||
}
|
||||
afterEvaluate {
|
||||
if (project.extensions.findByName("android") != null) {
|
||||
val androidExtension =
|
||||
|
||||
Reference in New Issue
Block a user