aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle117
1 files changed, 59 insertions, 58 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 4d1ec15e..302d79c1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -10,8 +10,8 @@ apply from: '../spotless.gradle'
group = APP_GROUP
android {
- compileSdkVersion kau.targetSdk
- buildToolsVersion kau.buildTools
+ compileSdkVersion kau.Versions.targetSdk
+ buildToolsVersion kau.Versions.buildTools
androidGitVersion {
codeFormat = 'MMNNPPXX'
@@ -21,8 +21,8 @@ android {
defaultConfig {
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase(Locale.CANADA)
- minSdkVersion kau.minSdk
- targetSdkVersion kau.targetSdk
+ minSdkVersion kau.Versions.minSdk
+ targetSdkVersion kau.Versions.targetSdk
versionCode androidGitVersion.code()
versionName androidGitVersion.name()
multiDexEnabled true
@@ -139,6 +139,7 @@ android {
}
packagingOptions {
+ pickFirst 'META-INF/core_release.kotlin_module'
pickFirst 'META-INF/library_release.kotlin_module'
}
@@ -175,96 +176,96 @@ repositories {
dependencies {
implementation 'androidx.exifinterface:exifinterface:1.0.0'
- androidTestImplementation kauDependency.kotlinTest
- androidTestImplementation kauDependency.espresso
- androidTestImplementation kauDependency.testRules
- androidTestImplementation kauDependency.testRunner
- androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
+ androidTestImplementation kau.Dependencies.kotlinTest
+ androidTestImplementation kau.Dependencies.espresso
+ androidTestImplementation kau.Dependencies.testRules
+ androidTestImplementation kau.Dependencies.testRunner
+ androidTestImplementation kau.Dependencies.kotlinReflect
- testImplementation kauDependency.kotlinTest
- testImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
- testImplementation kauDependency.junit
+ testImplementation kau.Dependencies.kotlinTest
+ testImplementation kau.Dependencies.kotlinReflect
+ testImplementation kau.Dependencies.junit
- implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
+ implementation kau.Dependencies.kotlin
//noinspection GradleDependency
- implementation "ca.allanwang.kau:adapter:$KAU"
+ implementation "ca.allanwang.kau:adapter:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:about:$KAU"
+ implementation "ca.allanwang.kau:about:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:colorpicker:$KAU"
+ implementation "ca.allanwang.kau:colorpicker:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:mediapicker:$KAU"
+ implementation "ca.allanwang.kau:mediapicker:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:kpref-activity:$KAU"
+ implementation "ca.allanwang.kau:kpref-activity:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:searchview:$KAU"
+ implementation "ca.allanwang.kau:searchview:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:core:$KAU"
+ implementation "ca.allanwang.kau:core:${KAU}"
//noinspection GradleDependency
- implementation "ca.allanwang.kau:core-ui:$KAU"
+ implementation "ca.allanwang.kau:core-ui:${KAU}"
- implementation "androidx.core:core-ktx:${KTX}"
+ implementation "androidx.core:core-ktx:${Versions.ktx}"
- implementation "androidx.biometric:biometric:${ANDX_BIOMETRIC}"
+ implementation "androidx.biometric:biometric:${Versions.andxBiometric}"
- implementation "org.koin:koin-android:${KOIN}"
- testImplementation "org.koin:koin-test:${KOIN}"
- androidTestImplementation "org.koin:koin-test:${KOIN}"
+ implementation "org.koin:koin-android:${Versions.koin}"
+ testImplementation "org.koin:koin-test:${Versions.koin}"
+ androidTestImplementation "org.koin:koin-test:${Versions.koin}"
-// androidTestImplementation "io.mockk:mockk:${MOCKK}"
+// androidTestImplementation "io.mockk:mockk:${Versions.mockk}"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${kau.coroutines}"
+ implementation kau.Dependencies.coroutines
- implementation "org.apache.commons:commons-text:${COMMONS_TEXT}"
+ implementation "org.apache.commons:commons-text:${Versions.apacheCommonsText}"
- implementation "com.devbrackets.android:exomedia:${EXOMEDIA}"
+ implementation "com.devbrackets.android:exomedia:${Versions.exoMedia}"
- implementation "com.mikepenz:fastadapter-extensions:${kau.fastAdapter}@aar"
+ implementation kau.Dependencies.fastAdapter("extensions")
//noinspection GradleDependency
- implementation "com.github.bumptech.glide:okhttp3-integration:${kau.glide}"
+ implementation kau.Dependencies.glide
//noinspection GradleDependency
- kapt "com.github.bumptech.glide:compiler:${kau.glide}"
+ kapt kau.Dependencies.glideKapt
- implementation "com.fasterxml.jackson.core:jackson-databind:${JACKSON}"
+ implementation "com.fasterxml.jackson.core:jackson-databind:${Versions.jackson}"
//noinspection GradleDependency
- releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
+ releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${Versions.leakCanary}"
//noinspection GradleDependency
- releaseTestImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
+ releaseTestImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${Versions.leakCanary}"
//noinspection GradleDependency
- debugImplementation "com.squareup.leakcanary:leakcanary-android:${LEAK_CANARY}"
-// testImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
+ debugImplementation "com.squareup.leakcanary:leakcanary-android:${Versions.leakCanary}"
+// testImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${Versions.leakCanary}"
- implementation "com.github.Raizlabs.DBFlow:dbflow:${DBFLOW}"
- implementation "com.github.Raizlabs.DBFlow:dbflow-core:${DBFLOW}"
- kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${DBFLOW}"
- implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${DBFLOW}"
+ implementation "com.github.Raizlabs.DBFlow:dbflow:${Versions.dbflow}"
+ implementation "com.github.Raizlabs.DBFlow:dbflow-core:${Versions.dbflow}"
+ kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${Versions.dbflow}"
+ implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${Versions.dbflow}"
//Icons
- implementation "com.mikepenz:material-design-iconic-typeface:${kau.iconicsMaterial}@aar"
- implementation "com.mikepenz:community-material-typeface:${kau.iconicsCommunity}@aar"
+ implementation kau.Dependencies.iconicsMaterial
+ implementation kau.Dependencies.iconicsCommunity
- implementation "org.jsoup:jsoup:${JSOUP}"
+ implementation "org.jsoup:jsoup:${Versions.jsoup}"
- implementation "com.squareup.okhttp3:okhttp:${OKHTTP}"
- implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP}"
- testImplementation "com.squareup.okhttp3:mockwebserver:${OKHTTP}"
- androidTestImplementation "com.squareup.okhttp3:mockwebserver:${OKHTTP}"
+ implementation "com.squareup.okhttp3:okhttp:${Versions.okhttp}"
+ implementation "com.squareup.okhttp3:logging-interceptor:${Versions.okhttp}"
+ testImplementation "com.squareup.okhttp3:mockwebserver:${Versions.okhttp}"
+ androidTestImplementation "com.squareup.okhttp3:mockwebserver:${Versions.okhttp}"
- implementation "co.zsmb:materialdrawer-kt:${MATERIAL_DRAWER_KT}"
+ implementation "co.zsmb:materialdrawer-kt:${Versions.materialDrawerKt}"
- implementation "com.bugsnag:bugsnag-android:${BUGSNAG}"
+ implementation kau.Dependencies.bugsnag
- implementation "com.davemorrissey.labs:subsampling-scale-image-view:${SCALE_IMAGE_VIEW}"
+ implementation "com.davemorrissey.labs:subsampling-scale-image-view:${Versions.scaleImageView}"
- implementation "com.sothree.slidinguppanel:library:${SLIDING_PANEL}"
+ implementation "com.sothree.slidinguppanel:library:${Versions.slidingPanel}"
- implementation "androidx.room:room-coroutines:${ROOM}"
- implementation "androidx.room:room-runtime:${ROOM}"
- kapt "androidx.room:room-compiler:${ROOM}"
- testImplementation "androidx.room:room-testing:${ROOM}"
+ implementation "androidx.room:room-ktx:${Versions.room}"
+ implementation "androidx.room:room-runtime:${Versions.room}"
+ kapt "androidx.room:room-compiler:${Versions.room}"
+ testImplementation "androidx.room:room-testing:${Versions.room}"
}
@@ -289,7 +290,7 @@ configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'org.jetbrains.kotlin' && requested.name in kotlinResolutions) {
- details.useVersion KOTLIN
+ details.useVersion kau.Versions.kotlin
}
}
}