6.7.0 - Alpha6 - 使用 Gradle 约定插件简化本地 AAR 库加载逻辑
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
"term-debug.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 += "term-debug.aar"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user