2018-07-14 20:09:58 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
2018-10-03 21:28:23 +02:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2020-05-01 19:00:42 +02:00
|
|
|
apply plugin: 'com.google.firebase.crashlytics'
|
2018-10-03 21:28:23 +02:00
|
|
|
apply plugin: 'com.github.triplet.play'
|
2020-03-29 18:55:00 +02:00
|
|
|
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
|
2018-07-14 20:09:58 +02:00
|
|
|
apply from: 'jacoco.gradle'
|
2018-08-26 00:18:31 +02:00
|
|
|
apply from: 'sonarqube.gradle'
|
2019-06-04 01:53:20 +02:00
|
|
|
apply from: 'hooks.gradle'
|
2018-07-14 20:09:58 +02:00
|
|
|
|
2017-03-09 21:29:23 +01:00
|
|
|
android {
|
2019-09-12 16:36:32 +02:00
|
|
|
compileSdkVersion 29
|
2020-02-29 02:37:58 +01:00
|
|
|
buildToolsVersion '29.0.3'
|
2018-05-07 19:11:28 +02:00
|
|
|
|
2017-03-09 21:29:23 +01:00
|
|
|
defaultConfig {
|
2017-04-19 20:36:27 +02:00
|
|
|
applicationId "io.github.wulkanowy"
|
2017-09-17 18:04:28 +02:00
|
|
|
testApplicationId "io.github.tests.wulkanowy"
|
2020-02-22 21:24:06 +01:00
|
|
|
minSdkVersion 17
|
2019-09-12 16:36:32 +02:00
|
|
|
targetSdkVersion 29
|
2020-06-02 17:07:52 +02:00
|
|
|
versionCode 61
|
|
|
|
versionName "0.18.2"
|
2018-08-22 22:31:17 +02:00
|
|
|
multiDexEnabled true
|
2020-05-24 19:36:40 +02:00
|
|
|
resValue "string", "app_name", "Wulkanowy"
|
2018-10-20 20:59:46 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-06-30 16:02:21 +02:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2018-12-18 16:12:15 +01:00
|
|
|
manifestPlaceholders = [
|
2020-05-01 19:00:42 +02:00
|
|
|
firebase_enabled: project.hasProperty("enableFirebase")
|
2018-12-18 16:12:15 +01:00
|
|
|
]
|
2019-03-30 18:28:37 +01:00
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
2019-10-03 14:00:07 +02:00
|
|
|
arguments = [
|
|
|
|
"room.schemaLocation": "$projectDir/schemas".toString(),
|
|
|
|
"room.incremental" : "true"
|
|
|
|
]
|
2019-03-30 18:28:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
2017-03-09 21:29:23 +01:00
|
|
|
}
|
2017-12-27 21:49:09 +01:00
|
|
|
|
2018-05-07 19:11:28 +02: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 21:29:23 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2018-12-15 21:29:57 +01:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2017-03-09 21:29:23 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2018-05-07 19:11:28 +02:00
|
|
|
signingConfig signingConfigs.release
|
2017-03-09 21:29:23 +01:00
|
|
|
}
|
2017-07-20 17:37:55 +02:00
|
|
|
debug {
|
2020-05-24 19:36:40 +02:00
|
|
|
resValue "string", "app_name", "Wulkanowy DEV " + defaultConfig.versionCode
|
2018-03-10 13:08:01 +01:00
|
|
|
applicationIdSuffix ".dev"
|
|
|
|
versionNameSuffix "-dev"
|
2020-02-29 23:07:47 +01:00
|
|
|
testCoverageEnabled = project.hasProperty('coverage')
|
2020-05-01 19:00:42 +02:00
|
|
|
ext.enableCrashlytics = project.hasProperty("enableFirebase")
|
2017-07-20 17:37:55 +02:00
|
|
|
}
|
2017-03-09 21:29:23 +01:00
|
|
|
}
|
2018-11-01 19:27:02 +01:00
|
|
|
|
2019-06-03 14:12:48 +02:00
|
|
|
flavorDimensions "platform"
|
2019-08-26 20:54:20 +02:00
|
|
|
|
2019-06-03 14:12:48 +02:00
|
|
|
productFlavors {
|
|
|
|
play {
|
|
|
|
dimension "platform"
|
|
|
|
}
|
|
|
|
|
|
|
|
fdroid {
|
|
|
|
dimension "platform"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-01 17:38:19 +02:00
|
|
|
viewBinding {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2018-11-01 19:27:02 +01:00
|
|
|
lintOptions {
|
|
|
|
disable 'HardwareIds'
|
|
|
|
}
|
2019-03-10 20:18:40 +01:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2019-08-26 20:54:20 +02:00
|
|
|
|
2019-09-01 13:24:21 +02:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/library_release.kotlin_module'
|
|
|
|
exclude 'META-INF/library-core_release.kotlin_module'
|
|
|
|
}
|
2020-03-29 18:55:00 +02:00
|
|
|
|
|
|
|
aboutLibraries {
|
|
|
|
configPath = "app/src/main/res/raw"
|
|
|
|
}
|
2017-03-09 21:29:23 +01:00
|
|
|
}
|
|
|
|
|
2018-05-07 19:11:28 +02:00
|
|
|
play {
|
2019-01-25 20:41:03 +01:00
|
|
|
serviceAccountEmail = System.getenv("PLAY_SERVICE_ACCOUNT_EMAIL") ?: "jan@fakelog.cf"
|
|
|
|
serviceAccountCredentials = file('key.p12')
|
2019-05-15 19:26:25 +02:00
|
|
|
defaultToAppBundles = false
|
2018-05-07 19:11:28 +02:00
|
|
|
track = 'alpha'
|
|
|
|
}
|
|
|
|
|
2019-07-09 13:33:36 +02:00
|
|
|
ext {
|
2020-03-24 19:52:47 +00:00
|
|
|
work_manager = "2.3.4"
|
2020-03-24 22:04:25 +00:00
|
|
|
room = "2.2.5"
|
2020-05-30 11:16:58 +00:00
|
|
|
dagger = "2.28"
|
2020-04-05 16:22:50 +00:00
|
|
|
chucker = "3.2.0"
|
2019-07-09 13:33:36 +02:00
|
|
|
mockk = "1.9.2"
|
|
|
|
}
|
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.force "androidx.constraintlayout:constraintlayout:1.1.3"
|
|
|
|
}
|
|
|
|
|
2017-03-09 21:29:23 +01:00
|
|
|
dependencies {
|
2020-06-02 17:07:52 +02:00
|
|
|
implementation "io.github.wulkanowy:sdk:0.18.2"
|
2018-10-14 22:16:58 +02:00
|
|
|
|
2019-04-18 16:38:49 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2020-02-24 00:24:40 +01:00
|
|
|
implementation "androidx.core:core-ktx:1.2.0"
|
2020-01-24 08:59:20 +00:00
|
|
|
implementation "androidx.activity:activity-ktx:1.1.0"
|
2020-05-16 20:52:37 +00:00
|
|
|
implementation "androidx.appcompat:appcompat:1.2.0-rc01"
|
2019-09-07 02:23:44 +02:00
|
|
|
implementation "androidx.appcompat:appcompat-resources:1.1.0"
|
2020-04-01 22:00:50 +00:00
|
|
|
implementation "androidx.fragment:fragment-ktx:1.2.4"
|
2019-06-07 14:12:52 +02:00
|
|
|
implementation "androidx.annotation:annotation:1.1.0"
|
|
|
|
implementation "androidx.multidex:multidex:2.0.1"
|
|
|
|
|
2020-04-17 20:35:24 +00:00
|
|
|
implementation "androidx.preference:preference-ktx:1.1.1"
|
2019-11-21 10:28:54 +00:00
|
|
|
implementation "androidx.recyclerview:recyclerview:1.1.0"
|
2019-06-07 14:12:52 +02:00
|
|
|
implementation "androidx.viewpager:viewpager:1.0.0"
|
2020-04-17 20:59:02 +00:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-rc01"
|
2019-06-07 14:12:52 +02:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
|
2019-12-07 12:51:09 +00:00
|
|
|
implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
|
2020-02-05 00:22:51 +00:00
|
|
|
implementation "com.google.android.material:material:1.1.0"
|
2019-08-26 20:54:20 +02:00
|
|
|
implementation "com.github.wulkanowy:material-chips-input:2.0.1"
|
2019-06-07 14:12:52 +02:00
|
|
|
implementation "com.github.PhilJay:MPAndroidChart:v3.1.0"
|
2019-08-26 20:54:20 +02:00
|
|
|
implementation "me.zhanghai.android.materialprogressbar:library:1.6.1"
|
2018-08-26 00:18:31 +02:00
|
|
|
|
2019-09-01 13:24:21 +02:00
|
|
|
implementation "androidx.work:work-runtime-ktx:$work_manager"
|
2019-07-09 13:33:36 +02:00
|
|
|
implementation "androidx.work:work-rxjava2:$work_manager"
|
2019-09-01 13:24:21 +02:00
|
|
|
implementation "androidx.work:work-gcm:$work_manager"
|
2019-03-24 16:03:51 +01:00
|
|
|
|
2020-04-05 16:46:49 +02:00
|
|
|
implementation 'com.github.PaulinaSadowska:RxWorkManagerObservers:1.0.0'
|
|
|
|
|
2019-07-09 13:33:36 +02:00
|
|
|
implementation "androidx.room:room-runtime:$room"
|
|
|
|
implementation "androidx.room:room-rxjava2:$room"
|
2019-09-01 13:24:21 +02:00
|
|
|
implementation "androidx.room:room-ktx:$room"
|
2019-07-09 13:33:36 +02:00
|
|
|
kapt "androidx.room:room-compiler:$room"
|
2019-03-09 10:13:36 +01:00
|
|
|
|
2019-07-09 13:33:36 +02:00
|
|
|
implementation "com.google.dagger:dagger-android-support:$dagger"
|
|
|
|
kapt "com.google.dagger:dagger-compiler:$dagger"
|
|
|
|
kapt "com.google.dagger:dagger-android-processor:$dagger"
|
2019-11-25 16:48:07 +00:00
|
|
|
implementation "com.squareup.inject:assisted-inject-annotations-dagger2:0.5.2"
|
2019-11-25 17:15:23 +00:00
|
|
|
kapt "com.squareup.inject:assisted-inject-processor-dagger2:0.5.2"
|
2018-08-26 00:18:31 +02:00
|
|
|
|
2019-01-20 15:00:33 +01:00
|
|
|
implementation "com.aurelhubert:ahbottomnavigation:2.3.4"
|
2019-06-26 11:44:23 +00:00
|
|
|
implementation "com.ncapdevi:frag-nav:3.3.0"
|
2020-05-01 17:38:19 +02:00
|
|
|
implementation "com.github.YarikSOffice:lingver:1.2.2"
|
2018-06-06 19:38:54 +02:00
|
|
|
|
2020-05-01 17:38:19 +02:00
|
|
|
implementation "com.github.pwittchen:reactivenetwork-rx2:3.0.8"
|
2019-06-07 14:12:52 +02:00
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
|
2020-03-14 22:25:05 +00:00
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.19"
|
2018-08-26 00:18:31 +02:00
|
|
|
|
2019-10-06 20:15:53 +00:00
|
|
|
implementation "com.google.code.gson:gson:2.8.6"
|
2020-04-28 20:57:14 +00:00
|
|
|
implementation "com.jakewharton.threetenabp:threetenabp:1.2.4"
|
2018-08-26 00:18:31 +02:00
|
|
|
implementation "com.jakewharton.timber:timber:4.7.1"
|
|
|
|
implementation "at.favre.lib:slf4j-timber:1.0.1"
|
2020-02-27 00:10:11 +01:00
|
|
|
implementation "fr.bipi.treessence:treessence:0.3.2"
|
2020-03-29 18:55:00 +02:00
|
|
|
implementation "com.mikepenz:aboutlibraries-core:$about_libraries"
|
2019-11-03 14:52:35 +01:00
|
|
|
implementation 'com.wdullaer:materialdatetimepicker:4.2.3'
|
2020-05-16 21:06:45 +00:00
|
|
|
implementation "io.coil-kt:coil:0.11.0"
|
2020-05-21 00:59:05 +02:00
|
|
|
implementation "io.github.wulkanowy:AppKillerManager:3.0.0"
|
2018-12-14 00:20:54 +01:00
|
|
|
|
2020-05-24 21:02:42 +02:00
|
|
|
playImplementation 'com.google.firebase:firebase-analytics:17.4.2'
|
2020-05-24 18:10:47 +00:00
|
|
|
playImplementation 'com.google.firebase:firebase-inappmessaging-display-ktx:19.0.7'
|
2020-05-24 21:03:35 +02:00
|
|
|
playImplementation "com.google.firebase:firebase-inappmessaging-ktx:19.0.7"
|
2020-05-24 18:42:24 +00:00
|
|
|
playImplementation 'com.google.firebase:firebase-messaging:20.2.0'
|
2020-05-01 19:00:42 +02:00
|
|
|
playImplementation 'com.google.firebase:firebase-crashlytics:17.0.0'
|
2020-04-02 22:43:03 +02:00
|
|
|
playImplementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
|
2018-01-11 21:57:41 +01:00
|
|
|
|
2020-03-28 11:44:09 +01:00
|
|
|
releaseImplementation "com.github.ChuckerTeam.Chucker:library-no-op:$chucker"
|
2019-01-10 17:10:10 +01:00
|
|
|
|
2020-03-28 11:44:09 +01:00
|
|
|
debugImplementation "com.github.ChuckerTeam.Chucker:library:$chucker"
|
2019-03-10 20:18:40 +01:00
|
|
|
debugImplementation "com.amitshekhar.android:debug-db:1.0.6"
|
2017-09-23 22:17:13 +02:00
|
|
|
|
2020-01-08 23:25:02 +00:00
|
|
|
testImplementation "junit:junit:4.13"
|
2019-07-09 13:33:36 +02:00
|
|
|
testImplementation "io.mockk:mockk:$mockk"
|
2020-04-28 20:56:55 +00:00
|
|
|
testImplementation "org.threeten:threetenbp:1.4.4"
|
2020-03-14 22:20:14 +00:00
|
|
|
testImplementation "org.mockito:mockito-inline:3.3.3"
|
2017-11-18 22:17:18 +01:00
|
|
|
|
2019-06-07 14:12:52 +02:00
|
|
|
androidTestImplementation "androidx.test:core:1.2.0"
|
|
|
|
androidTestImplementation "androidx.test:runner:1.2.0"
|
|
|
|
androidTestImplementation "androidx.test.ext:junit:1.1.1"
|
2019-07-09 13:33:36 +02:00
|
|
|
androidTestImplementation "io.mockk:mockk-android:$mockk"
|
|
|
|
androidTestImplementation "androidx.room:room-testing:$room"
|
2018-07-18 21:13:57 +02:00
|
|
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2020-03-14 22:18:34 +00:00
|
|
|
androidTestImplementation "org.mockito:mockito-android:3.3.3"
|
2017-03-09 21:29:23 +01:00
|
|
|
}
|
2018-12-14 00:20:54 +01:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|