6.7.0 - Alpha6 - 使用 Gradle 约定插件简化本地 AAR 库加载逻辑

This commit is contained in:
SuperMonster003
2025-10-09 17:51:09 +08:00
parent b83ce13d0e
commit 35fbcbda42
22 changed files with 147 additions and 149 deletions

View File

@@ -1,9 +1,7 @@
"expandable-layout-1.6.0.aar"
.let { path ->
rootProject.extra["configurationName"].toString().let { name ->
configurations.maybeCreate(name)
file(path).takeIf { it.exists() }?.also {
artifacts.add(name, it)
} ?: throw Exception("File not found: \"$path\"")
}
}
plugins {
id("org.autojs.build.local-arr-register-convention")
}
localAars {
files += "expandable-layout-1.6.0.aar"
}