ClashMetaForAndroid/service/build.gradle.kts

79 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-05-14 19:51:08 +03:00
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
id("kotlinx-serialization")
id("com.google.devtools.ksp")
}
android {
compileSdk = buildTargetSdkVersion
flavorDimensions(buildFlavor)
defaultConfig {
minSdk = buildMinSdkVersion
targetSdk = buildTargetSdkVersion
versionCode = buildVersionCode
versionName = buildVersionName
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
named("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
productFlavors {
2021-05-16 12:55:47 +03:00
create("foss") {
dimension = "foss"
2021-05-14 19:51:08 +03:00
}
create("premium") {
dimension = "premium"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
2021-05-16 13:26:01 +03:00
ksp(project(":kaidl:kaidl"))
2021-05-14 19:51:08 +03:00
kapt("androidx.room:room-compiler:$roomVersion")
api(project(":core"))
api(project(":common"))
implementation(project(":kaidl:kaidl-runtime")) {
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-core")
}
2021-05-14 19:51:08 +03:00
implementation(kotlin("stdlib-jdk7"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion")
2021-05-14 19:51:08 +03:00
implementation("androidx.room:room-runtime:$roomVersion")
implementation("androidx.room:room-ktx:$roomVersion")
2021-05-23 18:31:39 +03:00
implementation("androidx.core:core-ktx:$coreVersion")
2021-05-14 19:51:08 +03:00
implementation("dev.rikka.rikkax.preference:multiprocess:$muiltprocessVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
2021-05-25 14:40:44 +03:00
}
afterEvaluate {
android {
libraryVariants.forEach {
sourceSets[it.name].java.srcDir(buildDir.resolve("generated/ksp/${it.name}/kotlin"))
}
}
2021-05-14 19:51:08 +03:00
}