2021-02-18 22:33:14 +01:00
android {
flavorDimensions "standard"
productFlavors {
full {
dimension "standard"
}
2021-02-18 23:35:23 +01:00
pumpcontrol {
dimension "standard"
}
2022-10-13 15:26:49 +02:00
aapsclient {
2021-02-18 23:35:23 +01:00
dimension "standard"
}
2022-10-13 15:26:49 +02:00
aapsclient2 {
2021-02-18 23:35:23 +01:00
dimension "standard"
}
2021-02-18 22:33:14 +01:00
}
2022-11-01 11:39:40 +01:00
// disable for modules here
buildFeatures {
2022-11-06 12:28:35 +01:00
buildConfig = false
2022-11-01 11:39:40 +01:00
}
2021-02-18 23:35:23 +01:00
}
dependencies {
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
annotationProcessor "com.google.dagger:dagger-android-processor:$dagger_version"
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
2022-08-01 15:15:40 +02:00
// This is necessary to prevent Gradle build errors like:
//
// Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1) and lifecycle-viewmodel-2.5.0-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.0)
//
// By explicitly adding these dependencies, the jetifier
// is forced to use the correct lifecycle version instead
// of automatically picking 2.3.1.
//
// See: https://stackoverflow.com/a/69832319/560774
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
2021-09-21 21:57:56 +02:00
}
allOpen {
// allows mocking for classes w/o directly opening them for release builds
annotation 'info.nightscout.androidaps.annotations.OpenForTesting'
}