wulkanowy-mod/app/build.gradle

231 lines
8.0 KiB
Groovy
Raw Normal View History

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'
2020-08-02 11:29:41 -05:00
apply plugin: 'dagger.hilt.android.plugin'
apply plugin: 'com.google.firebase.crashlytics'
2018-10-03 14:28:23 -05:00
apply plugin: 'com.github.triplet.play'
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
2018-07-14 13:09:58 -05:00
apply from: 'jacoco.gradle'
2018-08-25 17:18:31 -05:00
apply from: 'sonarqube.gradle'
2019-06-03 18:53:20 -05:00
apply from: 'hooks.gradle'
2018-07-14 13:09:58 -05:00
2017-03-09 14:29:23 -06:00
android {
2020-10-02 18:08:57 -05:00
compileSdkVersion 30
buildToolsVersion '30.0.2'
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"
testApplicationId "io.github.tests.wulkanowy"
2020-02-22 14:24:06 -06:00
minSdkVersion 17
2020-10-02 18:08:57 -05:00
targetSdkVersion 30
2020-10-30 06:31:41 -05:00
versionCode 75
versionName "0.22.2"
2018-08-22 15:31:17 -05:00
multiDexEnabled true
2020-05-24 12:36:40 -05:00
resValue "string", "app_name", "Wulkanowy"
2018-10-20 13:59:46 -05:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
2018-12-18 09:12:15 -06:00
manifestPlaceholders = [
firebase_enabled: project.hasProperty("enableFirebase")
2018-12-18 09:12:15 -06:00
]
javaCompileOptions {
annotationProcessorOptions {
2020-08-02 11:29:41 -05:00
arguments += [
2019-10-03 07:00:07 -05:00
"room.schemaLocation": "$projectDir/schemas".toString(),
"room.incremental" : "true"
]
}
}
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
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-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
}
debug {
2020-05-24 12:36:40 -05:00
resValue "string", "app_name", "Wulkanowy DEV " + defaultConfig.versionCode
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
testCoverageEnabled = project.hasProperty('coverage')
ext.enableCrashlytics = project.hasProperty("enableFirebase")
}
2017-03-09 14:29:23 -06:00
}
2018-11-01 13:27:02 -05:00
2019-06-03 07:12:48 -05:00
flavorDimensions "platform"
2019-08-26 13:54:20 -05:00
2019-06-03 07:12:48 -05:00
productFlavors {
2020-10-29 07:58:56 -05:00
hms {
dimension "platform"
minSdkVersion 19
manifestPlaceholders = [
install_channel: "AppGallery"
]
}
2019-06-03 07:12:48 -05:00
play {
dimension "platform"
2020-10-29 07:58:56 -05:00
manifestPlaceholders = [
install_channel: "Google Play"
]
2019-06-03 07:12:48 -05:00
}
fdroid {
dimension "platform"
2020-10-29 07:58:56 -05:00
manifestPlaceholders = [
install_channel: "F-Droid"
]
2019-06-03 07:12:48 -05:00
}
}
buildFeatures {
viewBinding = true
2020-05-01 10:38:19 -05:00
}
2018-11-01 13:27:02 -05:00
lintOptions {
disable 'HardwareIds'
}
2019-03-10 14:18:40 -05:00
compileOptions {
2020-07-27 04:44:30 -05:00
coreLibraryDesugaringEnabled true
2019-03-10 14:18:40 -05:00
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2019-08-26 13:54:20 -05:00
2019-09-01 06:24:21 -05:00
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn", "-Xjvm-default=all"]
2019-09-01 06:24:21 -05:00
}
2019-08-26 13:54:20 -05:00
packagingOptions {
exclude 'META-INF/library_release.kotlin_module'
exclude 'META-INF/library-core_release.kotlin_module'
}
aboutLibraries {
configPath = "app/src/main/res/raw"
}
2017-03-09 14:29:23 -06:00
}
2018-05-07 12:11:28 -05:00
play {
serviceAccountEmail = System.getenv("PLAY_SERVICE_ACCOUNT_EMAIL") ?: "jan@fakelog.cf"
serviceAccountCredentials = file('key.p12')
2019-05-15 12:26:25 -05:00
defaultToAppBundles = false
2018-05-07 12:11:28 -05:00
track = 'alpha'
2020-10-29 19:49:30 -05:00
updatePriority = 1
2018-05-07 12:11:28 -05:00
}
ext {
2020-08-02 11:29:41 -05:00
work_manager = "2.4.0"
2020-03-24 17:04:25 -05:00
room = "2.2.5"
chucker = "3.3.0"
mockk = "1.10.2"
moshi = "1.11.0"
}
2019-08-26 13:54:20 -05:00
configurations.all {
resolutionStrategy.force "androidx.constraintlayout:constraintlayout:1.1.3"
}
2017-03-09 14:29:23 -06:00
dependencies {
implementation "io.github.wulkanowy:sdk:bcf6b53"
2020-07-27 04:44:30 -05:00
2020-08-02 11:29:41 -05:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
2018-10-14 15:16:58 -05:00
2019-04-18 09:38:49 -05:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.0'
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.activity:activity-ktx:1.1.0"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "androidx.appcompat:appcompat-resources:1.2.0"
implementation "androidx.fragment:fragment-ktx:1.2.5"
2019-06-07 07:12:52 -05:00
implementation "androidx.annotation:annotation:1.1.0"
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.preference:preference-ktx:1.1.1"
implementation "androidx.recyclerview:recyclerview:1.1.0"
2019-06-07 07:12:52 -05:00
implementation "androidx.viewpager:viewpager:1.0.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
2020-08-31 05:55:51 -05:00
implementation "androidx.constraintlayout:constraintlayout:2.0.1"
implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
implementation "com.google.android.material:material:1.2.1"
2020-06-14 07:05:24 -05:00
implementation "com.github.wulkanowy:material-chips-input:2.1.1"
2019-06-07 07:12:52 -05:00
implementation "com.github.PhilJay:MPAndroidChart:v3.1.0"
2019-08-26 13:54:20 -05:00
implementation "me.zhanghai.android.materialprogressbar:library:1.6.1"
2018-08-25 17:18:31 -05:00
2019-09-01 06:24:21 -05:00
implementation "androidx.work:work-runtime-ktx:$work_manager"
implementation "androidx.work:work-gcm:$work_manager"
2019-03-24 10:03:51 -05:00
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
implementation "androidx.room:room-runtime:$room"
2019-09-01 06:24:21 -05:00
implementation "androidx.room:room-ktx:$room"
kapt "androidx.room:room-compiler:$room"
2020-08-02 11:29:41 -05:00
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
implementation 'androidx.hilt:hilt-work:1.0.0-alpha02'
kapt 'androidx.hilt:hilt-compiler:1.0.0-alpha02'
2018-08-25 17:18:31 -05:00
2019-01-20 08:00:33 -06:00
implementation "com.aurelhubert:ahbottomnavigation:2.3.4"
implementation "com.ncapdevi:frag-nav:3.3.0"
2020-05-01 10:38:19 -05:00
implementation "com.github.YarikSOffice:lingver:1.2.2"
2018-06-06 12:38:54 -05:00
2020-09-27 13:59:27 -05:00
implementation "com.squareup.moshi:moshi:$moshi"
implementation "com.squareup.moshi:moshi-adapters:$moshi"
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi"
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"
2020-02-26 17:10:11 -06:00
implementation "fr.bipi.treessence:treessence:0.3.2"
implementation "com.mikepenz:aboutlibraries-core:$about_libraries"
implementation 'com.wdullaer:materialdatetimepicker:4.2.3'
implementation "io.coil-kt:coil:1.0.0"
2020-05-20 17:59:05 -05:00
implementation "io.github.wulkanowy:AppKillerManager:3.0.0"
2020-06-14 07:05:24 -05:00
implementation 'me.xdrop:fuzzywuzzy:1.3.1'
2018-12-13 17:20:54 -06:00
playImplementation 'com.google.firebase:firebase-analytics:18.0.0'
playImplementation 'com.google.firebase:firebase-inappmessaging-display-ktx:19.1.2'
playImplementation "com.google.firebase:firebase-inappmessaging-ktx:19.1.2"
playImplementation 'com.google.firebase:firebase-messaging:21.0.0'
playImplementation 'com.google.firebase:firebase-crashlytics:17.2.2'
2020-10-14 18:00:41 -05:00
playImplementation 'com.google.android.play:core-ktx:1.8.1'
2020-04-02 15:43:03 -05:00
playImplementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
2018-01-11 14:57:41 -06:00
hmsImplementation 'com.huawei.hms:hianalytics:5.0.4.301'
2020-10-29 07:58:56 -05:00
hmsImplementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
releaseImplementation "com.github.ChuckerTeam.Chucker:library-no-op:$chucker"
2019-01-10 10:10:10 -06:00
debugImplementation "com.github.ChuckerTeam.Chucker:library:$chucker"
2019-03-10 14:18:40 -05:00
debugImplementation "com.amitshekhar.android:debug-db:1.0.6"
2020-10-15 13:36:31 -05:00
testImplementation "junit:junit:4.13.1"
testImplementation "io.mockk:mockk:$mockk"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.0'
2017-11-18 15:17:18 -06:00
2020-08-31 04:42:18 -05:00
androidTestImplementation "androidx.test:core:1.3.0"
2020-08-31 05:03:20 -05:00
androidTestImplementation "androidx.test:runner:1.3.0"
2020-08-29 04:20:43 -05:00
androidTestImplementation "androidx.test.ext:junit:1.1.2"
androidTestImplementation "io.mockk:mockk-android:$mockk"
androidTestImplementation "androidx.room:room-testing:$room"
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'
2020-10-29 07:58:56 -05:00
apply plugin: 'com.huawei.agconnect'