mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
38 lines
862 B
Groovy
38 lines
862 B
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
compileSdk = compile_sdk_version
|
|
namespace 'com.script'
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
defaultConfig {
|
|
minSdk 21
|
|
targetSdk 33
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
lint {
|
|
checkDependencies true
|
|
}
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:deprecation"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(fileTree(dir: 'lib', include: ['rhino-1.7.13-2.jar']))
|
|
|
|
def coroutines_version = '1.7.3'
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
|
|
} |