2018-07-14 13:09:58 -05:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
2018-10-03 14:28:23 -05:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2018-08-22 15:31:17 -05:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2018-07-14 13:09:58 -05:00
|
|
|
apply plugin: 'io.fabric'
|
2018-10-03 14:28:23 -05:00
|
|
|
apply plugin: 'com.github.triplet.play'
|
2018-07-14 13:09:58 -05:00
|
|
|
apply from: 'jacoco.gradle'
|
2018-08-25 17:18:31 -05:00
|
|
|
apply from: 'sonarqube.gradle'
|
2018-07-14 13:09:58 -05:00
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
android {
|
2018-09-24 08:21:47 -05:00
|
|
|
compileSdkVersion 28
|
2018-10-03 14:28:23 -05:00
|
|
|
buildToolsVersion '28.0.3'
|
2018-05-07 12:11:28 -05:00
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
defaultConfig {
|
2017-04-19 13:36:27 -05:00
|
|
|
applicationId "io.github.wulkanowy"
|
2017-09-17 11:04:28 -05:00
|
|
|
testApplicationId "io.github.tests.wulkanowy"
|
2017-09-23 15:17:13 -05:00
|
|
|
minSdkVersion 15
|
2018-09-24 08:21:47 -05:00
|
|
|
targetSdkVersion 28
|
2019-03-24 16:42:09 -05:00
|
|
|
versionCode 28
|
|
|
|
versionName "0.7.2"
|
2018-08-22 15:31:17 -05:00
|
|
|
multiDexEnabled true
|
2018-10-20 13:59:46 -05:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-06-30 09:02:21 -05:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2018-12-18 09:12:15 -06:00
|
|
|
manifestPlaceholders = [
|
|
|
|
fabric_api_key: System.getenv("FABRIC_API_KEY") ?: "null",
|
|
|
|
crashlytics_enabled: project.hasProperty("enableCrashlytics")
|
|
|
|
]
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
2017-12-27 14:49:09 -06:00
|
|
|
|
2018-05-07 12:11:28 -05:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file("upload-key.jks")
|
|
|
|
storePassword System.getenv("PLAY_STORE_PASSWORD")
|
|
|
|
keyAlias System.getenv("PLAY_KEY_ALIAS")
|
|
|
|
keyPassword System.getenv("PLAY_KEY_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2018-12-13 17:20:54 -06:00
|
|
|
buildConfigField "boolean", "CRASHLYTICS_ENABLED", "true"
|
2018-12-15 14:29:57 -06:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2017-03-09 14:29:23 -06:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2018-05-07 12:11:28 -05:00
|
|
|
signingConfig signingConfigs.release
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
2017-07-20 10:37:55 -05:00
|
|
|
debug {
|
2018-12-13 17:20:54 -06:00
|
|
|
buildConfigField "boolean", "CRASHLYTICS_ENABLED", project.hasProperty("enableCrashlytics") ? "true" : "false"
|
2018-03-10 06:08:01 -06:00
|
|
|
applicationIdSuffix ".dev"
|
|
|
|
versionNameSuffix "-dev"
|
2017-07-20 10:37:55 -05:00
|
|
|
testCoverageEnabled = true
|
2018-12-13 17:20:54 -06:00
|
|
|
ext.enableCrashlytics = project.hasProperty("enableCrashlytics")
|
2018-08-22 15:31:17 -05:00
|
|
|
multiDexKeepProguard file('proguard-multidex-rules.pro')
|
2017-07-20 10:37:55 -05:00
|
|
|
}
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
2018-11-01 13:27:02 -05:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'HardwareIds'
|
|
|
|
}
|
2019-03-10 14:18:40 -05:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
|
2018-08-22 15:31:17 -05:00
|
|
|
androidExtensions {
|
|
|
|
experimental = true
|
|
|
|
}
|
|
|
|
|
2018-05-07 12:11:28 -05:00
|
|
|
play {
|
2019-01-25 13:41:03 -06:00
|
|
|
serviceAccountEmail = System.getenv("PLAY_SERVICE_ACCOUNT_EMAIL") ?: "jan@fakelog.cf"
|
|
|
|
serviceAccountCredentials = file('key.p12')
|
|
|
|
defaultToAppBundles = true
|
2018-05-07 12:11:28 -05:00
|
|
|
track = 'alpha'
|
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
dependencies {
|
2018-08-25 17:18:31 -05:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2019-03-24 17:08:50 -05:00
|
|
|
implementation('com.github.wulkanowy:api:master-SNAPSHOT') { exclude module: "threetenbp" }
|
2018-10-14 15:16:58 -05:00
|
|
|
|
2018-11-24 11:51:41 -06:00
|
|
|
implementation "androidx.legacy:legacy-support-v4:1.0.0"
|
|
|
|
implementation "androidx.appcompat:appcompat:1.0.2"
|
|
|
|
implementation "androidx.cardview:cardview:1.0.0"
|
|
|
|
implementation "com.google.android.material:material:1.0.0"
|
2019-02-16 17:42:09 -06:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2019-01-06 16:53:20 -06:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2018-08-25 17:18:31 -05:00
|
|
|
|
2019-03-24 10:03:51 -05:00
|
|
|
implementation "androidx.work:work-runtime:2.0.0"
|
|
|
|
implementation "androidx.work:work-rxjava2:2.0.0"
|
|
|
|
|
|
|
|
implementation "androidx.room:room-runtime:2.1.0-alpha06"
|
|
|
|
implementation "androidx.room:room-rxjava2:2.1.0-alpha06"
|
|
|
|
kapt "androidx.room:room-compiler:2.1.0-alpha06"
|
2019-03-09 03:13:36 -06:00
|
|
|
|
2019-03-24 10:03:51 -05:00
|
|
|
implementation 'com.takisoft.preferencex:preferencex:1.0.0'
|
2019-03-09 03:13:36 -06:00
|
|
|
|
2019-03-10 14:18:40 -05:00
|
|
|
implementation 'com.squareup.inject:assisted-inject-annotations-dagger2:0.3.3'
|
|
|
|
kapt 'com.squareup.inject:assisted-inject-processor-dagger2:0.3.3'
|
2018-08-25 17:18:31 -05:00
|
|
|
|
2019-01-20 08:00:33 -06:00
|
|
|
implementation "com.google.dagger:dagger-android-support:2.21"
|
|
|
|
kapt "com.google.dagger:dagger-compiler:2.21"
|
|
|
|
kapt "com.google.dagger:dagger-android-processor:2.21"
|
2018-08-25 17:18:31 -05:00
|
|
|
|
2018-10-20 13:59:46 -05:00
|
|
|
implementation "eu.davidea:flexible-adapter:5.1.0"
|
|
|
|
implementation "eu.davidea:flexible-adapter-ui:1.0.0"
|
2019-01-20 08:00:33 -06:00
|
|
|
implementation "com.aurelhubert:ahbottomnavigation:2.3.4"
|
2019-03-24 10:03:51 -05:00
|
|
|
implementation 'com.ncapdevi:frag-nav:3.2.0'
|
2018-06-06 12:38:54 -05:00
|
|
|
|
2019-03-17 15:02:41 -05:00
|
|
|
implementation 'com.github.wulkanowy:MaterialChipsInput:b72fd0ee6f'
|
2019-03-24 10:03:51 -05:00
|
|
|
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
2019-03-04 05:13:37 -06:00
|
|
|
|
2019-01-20 08:00:33 -06:00
|
|
|
implementation 'com.github.pwittchen:reactivenetwork-rx2:3.0.2'
|
2019-03-10 14:18:40 -05:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.7"
|
2018-08-25 17:18:31 -05:00
|
|
|
|
2019-03-10 14:18:40 -05:00
|
|
|
implementation "com.jakewharton.threetenabp:threetenabp:1.2.0"
|
2018-08-25 17:18:31 -05:00
|
|
|
implementation "com.jakewharton.timber:timber:4.7.1"
|
|
|
|
implementation "at.favre.lib:slf4j-timber:1.0.1"
|
2019-03-10 14:18:40 -05:00
|
|
|
implementation "com.mikepenz:aboutlibraries:6.2.3"
|
2018-12-13 17:20:54 -06:00
|
|
|
|
2019-03-17 15:20:37 -05:00
|
|
|
implementation 'com.google.firebase:firebase-core:16.0.8'
|
2019-02-10 19:04:24 -06:00
|
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
|
2018-01-11 14:57:41 -06:00
|
|
|
|
2019-03-10 14:18:40 -05:00
|
|
|
releaseImplementation 'fr.o80.chucker:library-no-op:2.0.4'
|
2019-01-10 10:10:10 -06:00
|
|
|
|
2019-03-10 14:18:40 -05:00
|
|
|
debugImplementation 'fr.o80.chucker:library:2.0.4'
|
|
|
|
debugImplementation "com.amitshekhar.android:debug-db:1.0.6"
|
2017-09-23 15:17:13 -05:00
|
|
|
|
2018-08-25 17:18:31 -05:00
|
|
|
testImplementation "junit:junit:4.12"
|
2019-03-24 10:03:51 -05:00
|
|
|
testImplementation "io.mockk:mockk:1.9.2"
|
|
|
|
testImplementation "org.mockito:mockito-inline:2.25.1"
|
2018-11-03 08:49:20 -05:00
|
|
|
testImplementation 'org.threeten:threetenbp:1.3.8'
|
2017-11-18 15:17:18 -06:00
|
|
|
|
2018-12-15 14:29:57 -06:00
|
|
|
androidTestImplementation 'androidx.test:core:1.1.0'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
|
2019-03-24 10:03:51 -05:00
|
|
|
androidTestImplementation "io.mockk:mockk-android:1.9.2"
|
|
|
|
androidTestImplementation 'org.mockito:mockito-android:2.25.1'
|
2018-07-18 14:13:57 -05:00
|
|
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
2018-12-13 17:20:54 -06:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|