12 lines
425 B
Kotlin
12 lines
425 B
Kotlin
// @Reference
|
|
// ! Current library (OpenCV) was referred to TonyJiangWJ/Auto.js on Mar 18, 2022.
|
|
|
|
"opencv-4.5.5.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\"")
|
|
}
|
|
} |