ClashMetaForAndroid/design/build.gradle.kts

71 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-05-15 00:51:08 +08:00
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
}
android {
compileSdk = buildTargetSdkVersion
flavorDimensions(buildFlavor)
defaultConfig {
minSdk = buildMinSdkVersion
targetSdk = buildTargetSdkVersion
versionCode = buildVersionCode
versionName = buildVersionName
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
named("release") {
isMinifyEnabled = false
2021-05-16 17:55:47 +08:00
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
2021-05-15 00:51:08 +08:00
}
}
productFlavors {
2021-05-16 17:55:47 +08:00
create("foss") {
dimension = "foss"
2021-05-15 00:51:08 +08:00
}
create("premium") {
dimension = "premium"
}
}
buildFeatures {
dataBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
api(project(":common"))
api(project(":core"))
api(project(":service"))
implementation(kotlin("stdlib-jdk7"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion")
2021-05-23 23:31:39 +08:00
implementation("androidx.core:core-ktx:$coreVersion")
2021-05-15 00:51:08 +08:00
implementation("androidx.appcompat:appcompat:$appcompatVersion")
implementation("androidx.activity:activity:$activityVersion")
implementation("com.google.android.material:material:$materialVersion")
implementation("androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayoutVersion")
implementation("androidx.recyclerview:recyclerview:$recyclerviewVersion")
implementation("androidx.fragment:fragment:$fragmentVersion")
implementation("androidx.viewpager2:viewpager2:$viewpagerVersion")
}