AndroidAPS/core/build.gradle

85 lines
2.8 KiB
Groovy
Raw Normal View History

2020-05-03 21:27:42 +02:00
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
2020-05-05 23:27:01 +02:00
apply plugin: 'kotlin-kapt'
2020-05-03 21:27:42 +02:00
android {
2020-05-03 21:37:02 +02:00
compileSdkVersion 28
2020-05-03 21:27:42 +02:00
defaultConfig {
2020-05-12 00:23:39 +02:00
minSdkVersion 24
2020-05-03 21:37:02 +02:00
targetSdkVersion 28
2020-05-03 21:27:42 +02:00
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
2020-05-03 22:18:58 +02:00
kotlinOptions {
jvmTarget = '1.8'
}
2020-05-03 21:27:42 +02:00
buildTypes {
release {
minifyEnabled false
2020-05-03 22:18:58 +02:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled(project.hasProperty('coverage'))
}
firebaseDisable {
System.setProperty("disableFirebase", "true")
2020-05-05 23:27:01 +02:00
ext.enableCrashlytics = false
2020-05-03 21:27:42 +02:00
}
}
2020-05-03 22:18:58 +02:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2020-05-03 21:27:42 +02:00
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
2020-05-04 23:40:39 +02:00
implementation "androidx.preference:preference-ktx:1.1.1"
2020-05-05 23:27:01 +02:00
implementation "androidx.activity:activity:${activityVersion}"
implementation "androidx.activity:activity-ktx:${activityVersion}"
2020-05-08 14:59:30 +02:00
implementation 'com.google.android.material:material:1.1.0'
2020-05-03 21:27:42 +02:00
implementation "com.google.dagger:dagger-android:$dagger_version"
implementation "com.google.dagger:dagger-android-support:$dagger_version"
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"
2020-05-04 01:36:46 +02:00
//Logger
2020-05-04 00:42:13 +02:00
implementation 'org.slf4j:slf4j-api:1.7.30'
2020-05-04 01:36:46 +02:00
//Fabric
2020-07-04 21:58:51 +02:00
implementation 'com.google.firebase:firebase-analytics-ktx:17.4.3'
implementation 'com.google.firebase:firebase-crashlytics:17.1.0'
2020-05-31 10:12:36 +02:00
2020-05-04 01:36:46 +02:00
//RxBus
2020-05-31 11:27:12 +02:00
implementation "io.reactivex.rxjava2:rxandroid:${rxandroid_version}"
2020-05-04 21:37:03 +02:00
implementation 'org.apache.commons:commons-lang3:3.10'
2020-05-04 00:42:13 +02:00
2020-05-07 09:54:36 +02:00
// Graphview cannot be upgraded
implementation "com.jjoe64:graphview:4.0.1"
//DateUtil
implementation 'net.danlew:android.joda:2.10.6'
//db
implementation "com.j256.ormlite:ormlite-core:${ormLiteVersion}"
implementation "com.j256.ormlite:ormlite-android:${ormLiteVersion}"
// pumpCommon
implementation "com.google.code.gson:gson:2.8.6"
2020-05-04 21:37:03 +02:00
testImplementation 'junit:junit:4.13'
2020-05-03 21:27:42 +02:00
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}