AndroidAPS/buildSrc/src/main/kotlin/android-module-dependencies.gradle.kts

69 lines
1.5 KiB
Text
Raw Normal View History

2023-10-12 13:58:17 +02:00
plugins {
id("com.android.library")
id("kotlin-android")
id("kotlin-kapt")
}
android {
compileSdk = Versions.compileSdk
defaultConfig {
minSdk = 28
@Suppress("DEPRECATION")
targetSdk = 28
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
named("release") {
isMinifyEnabled = false
setProguardFiles(listOf(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"))
}
}
sourceSets {
named("main") {
jniLibs.srcDirs(listOf("src/main/jniLibs"))
}
}
compileOptions {
sourceCompatibility = Versions.javaVersion
targetCompatibility = Versions.javaVersion
}
lint {
checkReleaseBuilds = false
disable += "MissingTranslation"
disable += "ExtraTranslation"
}
flavorDimensions.add("standard")
productFlavors {
create("full") {
2023-10-14 22:19:45 +02:00
isDefault = true
2023-10-12 13:58:17 +02:00
dimension = "standard"
}
create("pumpcontrol") {
dimension = "standard"
}
create("aapsclient") {
dimension = "standard"
}
create("aapsclient2") {
dimension = "standard"
}
}
buildFeatures {
2023-10-16 15:20:50 +02:00
// disable for modules here
2023-10-12 13:58:17 +02:00
buildConfig = false
2023-10-16 15:20:50 +02:00
viewBinding = true
2023-10-12 13:58:17 +02:00
}
}
dependencies {
kapt(Libs.Dagger.androidProcessor)
kapt(Libs.Dagger.compiler)
}