6.7.0 - Alpha6 - 使用 Gradle 约定插件简化本地 AAR 库加载逻辑
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
// @Reference
|
||||
// ! Current library (OpenCV) was referred to TonyJiangWJ/Auto.js (https://github.com/TonyJiangWJ/Auto.js) on Oct 18, 2022.
|
||||
|
||||
"opencv-4.8.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 += "opencv-4.8.0.aar"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user