upgrade deps

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-26 12:02:54 +08:00
parent 10b723fa64
commit e4e70370d1
5 changed files with 47 additions and 23 deletions

View File

@@ -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 =