2023-03-11 08:18:47 +08:00
|
|
|
plugins {
|
2024-03-11 14:09:30 +08:00
|
|
|
//d 'com.android.library'
|
|
|
|
//id 'org.jetbrains.kotlin.android'
|
|
|
|
alias libs.plugins.android.library
|
|
|
|
alias libs.plugins.kotlin.android
|
2023-03-11 08:18:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdk = compile_sdk_version
|
|
|
|
namespace 'com.script'
|
2023-04-15 23:36:24 +08:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|
2023-03-11 08:18:47 +08:00
|
|
|
defaultConfig {
|
|
|
|
minSdk 21
|
2024-03-11 14:09:30 +08:00
|
|
|
targetSdk 34
|
2023-03-11 08:18:47 +08:00
|
|
|
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2023-04-15 23:36:24 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2023-03-11 08:18:47 +08:00
|
|
|
}
|
|
|
|
lint {
|
|
|
|
checkDependencies true
|
|
|
|
}
|
2024-03-11 14:09:30 +08:00
|
|
|
tasks.withType(JavaCompile).tap {
|
|
|
|
configureEach {
|
|
|
|
options.compilerArgs << "-Xlint:deprecation"
|
|
|
|
}
|
2023-03-11 11:18:57 +08:00
|
|
|
}
|
2023-03-11 08:18:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-03-30 08:40:58 +08:00
|
|
|
api(fileTree(dir: 'lib', include: ['rhino-1.7.13-2.jar']))
|
2024-01-28 17:09:25 +08:00
|
|
|
|
2024-03-11 14:09:30 +08:00
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
|
|
|
// def coroutines_version = '1.7.3'
|
|
|
|
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
|
2023-03-11 08:18:47 +08:00
|
|
|
}
|