2023-03-11 08:18:47 +08:00
|
|
|
plugins {
|
|
|
|
id 'com.android.library'
|
2023-03-20 16:50:58 +08:00
|
|
|
id 'org.jetbrains.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
|
|
|
|
targetSdk 33
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2023-03-11 11:18:57 +08:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:deprecation"
|
|
|
|
}
|
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
|
|
|
|
|
|
|
def coroutines_version = '1.7.3'
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
|
2023-03-11 08:18:47 +08:00
|
|
|
}
|