2017-01-03 10:30:27 +11:00
|
|
|
apply plugin: 'com.android.application'
|
2017-11-06 08:32:36 +11:00
|
|
|
apply plugin: 'kotlin-android'
|
2018-09-01 04:35:30 +10:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2021-03-21 22:42:28 +11:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2019-10-30 06:30:46 +11:00
|
|
|
apply from: "../instance-build.gradle"
|
|
|
|
|
2019-11-07 06:48:58 +11:00
|
|
|
def getGitSha = {
|
2018-07-17 03:01:34 +10:00
|
|
|
def stdout = new ByteArrayOutputStream()
|
2022-05-12 01:16:51 +10:00
|
|
|
try {
|
|
|
|
exec {
|
|
|
|
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
|
|
|
standardOutput = stdout
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
return "unknown"
|
2018-07-17 03:01:34 +10:00
|
|
|
}
|
|
|
|
return stdout.toString().trim()
|
|
|
|
}
|
|
|
|
|
2017-01-03 10:30:27 +11:00
|
|
|
android {
|
2022-11-05 05:22:38 +11:00
|
|
|
compileSdkVersion 33
|
2017-01-03 10:30:27 +11:00
|
|
|
defaultConfig {
|
2019-10-30 06:30:46 +11:00
|
|
|
applicationId APP_ID
|
2022-08-05 00:48:26 +10:00
|
|
|
minSdkVersion 23
|
2022-11-05 05:22:38 +11:00
|
|
|
targetSdkVersion 33
|
2022-07-12 02:41:21 +10:00
|
|
|
versionCode 94
|
|
|
|
versionName "19.0"
|
2018-12-18 01:25:35 +11:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2018-09-26 03:04:57 +10:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2018-12-26 06:06:28 +11:00
|
|
|
|
2019-10-30 06:30:46 +11:00
|
|
|
resValue "string", "app_name", APP_NAME
|
|
|
|
|
|
|
|
buildConfigField("String", "CUSTOM_LOGO_URL", "\"$CUSTOM_LOGO_URL\"")
|
|
|
|
buildConfigField("String", "CUSTOM_INSTANCE", "\"$CUSTOM_INSTANCE\"")
|
|
|
|
buildConfigField("String", "SUPPORT_ACCOUNT_URL", "\"$SUPPORT_ACCOUNT_URL\"")
|
|
|
|
|
2018-12-26 06:06:28 +11:00
|
|
|
kapt {
|
|
|
|
arguments {
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
|
|
}
|
|
|
|
}
|
2017-01-03 10:30:27 +11:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2017-04-08 08:08:51 +10:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2018-08-16 04:46:37 +10:00
|
|
|
proguardFiles 'proguard-rules.pro'
|
2017-01-03 10:30:27 +11:00
|
|
|
}
|
2019-06-10 00:55:34 +10:00
|
|
|
debug {}
|
2018-07-17 03:01:34 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions "color"
|
|
|
|
productFlavors {
|
2019-06-10 00:55:34 +10:00
|
|
|
blue {}
|
2018-07-17 03:01:34 +10:00
|
|
|
green {
|
2020-11-29 03:34:21 +11:00
|
|
|
resValue "string", "app_name", APP_NAME + " Test"
|
2017-12-08 22:15:46 +11:00
|
|
|
applicationIdSuffix ".test"
|
2019-06-10 00:55:34 +10:00
|
|
|
versionNameSuffix "-" + getGitSha()
|
2017-12-08 22:15:46 +11:00
|
|
|
}
|
2017-01-03 10:30:27 +11:00
|
|
|
}
|
2017-10-26 06:56:27 +11:00
|
|
|
|
2017-04-13 14:01:02 +10:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2021-01-22 04:57:09 +11:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
2018-03-10 08:02:32 +11:00
|
|
|
testOptions {
|
|
|
|
unitTests {
|
2019-09-22 16:18:44 +10:00
|
|
|
returnDefaultValues = true
|
2018-03-10 08:02:32 +11:00
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2018-12-26 06:06:28 +11:00
|
|
|
sourceSets {
|
|
|
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
|
|
|
}
|
|
|
|
|
2018-12-18 05:08:32 +11:00
|
|
|
packagingOptions {
|
|
|
|
// Exclude unneeded files added by libraries
|
|
|
|
exclude 'LICENSE_OFL'
|
|
|
|
exclude 'LICENSE_UNICODE'
|
|
|
|
}
|
2019-03-30 05:56:53 +11:00
|
|
|
bundle {
|
|
|
|
language {
|
|
|
|
// bundle all languages in every apk so the dynamic language switching works
|
|
|
|
enableSplit = false
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 07:10:32 +11:00
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
|
|
|
}
|
2019-05-18 16:06:30 +10:00
|
|
|
}
|
|
|
|
|
2022-08-08 03:36:20 +10:00
|
|
|
ext.coroutinesVersion = "1.6.4"
|
2022-08-08 03:13:59 +10:00
|
|
|
ext.lifecycleVersion = "2.5.1"
|
|
|
|
ext.roomVersion = '2.4.3'
|
2020-06-05 04:16:48 +10:00
|
|
|
ext.retrofitVersion = '2.9.0'
|
2022-09-14 03:48:20 +10:00
|
|
|
ext.okhttpVersion = '4.10.0'
|
2022-08-17 04:33:19 +10:00
|
|
|
ext.glideVersion = '4.13.2'
|
2022-08-17 04:06:00 +10:00
|
|
|
ext.daggerVersion = '2.43.2'
|
2022-01-21 07:10:32 +11:00
|
|
|
ext.materialdrawerVersion = '8.4.5'
|
2022-04-27 02:50:58 +10:00
|
|
|
ext.emoji2_version = '1.1.0'
|
2022-07-25 20:36:35 +10:00
|
|
|
ext.filemojicompat_version = '3.2.3'
|
2017-08-04 01:01:02 +10:00
|
|
|
|
2018-06-25 21:02:34 +10:00
|
|
|
// if libraries are changed here, they should also be changed in LicenseActivity
|
2017-01-03 10:30:27 +11:00
|
|
|
dependencies {
|
2022-01-21 07:10:32 +11:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx3:$coroutinesVersion"
|
2021-06-18 02:54:56 +10:00
|
|
|
|
2022-11-05 05:22:38 +11:00
|
|
|
implementation "androidx.core:core-ktx:1.9.0"
|
|
|
|
implementation "androidx.appcompat:appcompat:1.5.1"
|
|
|
|
implementation "androidx.activity:activity-ktx:1.6.0"
|
|
|
|
implementation "androidx.fragment:fragment-ktx:1.5.3"
|
2022-03-10 06:50:23 +11:00
|
|
|
implementation "androidx.browser:browser:1.4.0"
|
2020-07-28 18:38:28 +10:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2021-06-14 19:00:25 +10:00
|
|
|
implementation "androidx.recyclerview:recyclerview:1.2.1"
|
2022-11-05 05:22:38 +11:00
|
|
|
implementation "androidx.exifinterface:exifinterface:1.3.4"
|
2019-11-07 06:48:58 +11:00
|
|
|
implementation "androidx.cardview:cardview:1.0.0"
|
2022-03-10 06:50:23 +11:00
|
|
|
implementation "androidx.preference:preference-ktx:1.2.0"
|
2022-11-05 05:22:38 +11:00
|
|
|
implementation "androidx.sharetarget:sharetarget:1.2.0"
|
2022-04-27 02:50:58 +10:00
|
|
|
implementation "androidx.emoji2:emoji2:$emoji2_version"
|
|
|
|
implementation "androidx.emoji2:emoji2-views:$emoji2_version"
|
|
|
|
implementation "androidx.emoji2:emoji2-views-helper:$emoji2_version"
|
2020-02-26 05:49:41 +11:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
|
2021-03-14 07:27:20 +11:00
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
|
2020-02-26 05:49:41 +11:00
|
|
|
implementation "androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycleVersion"
|
2022-08-08 03:13:59 +10:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
2022-03-14 02:08:27 +11:00
|
|
|
implementation "androidx.paging:paging-runtime-ktx:3.1.1"
|
2019-12-21 07:31:41 +11:00
|
|
|
implementation "androidx.viewpager2:viewpager2:1.0.0"
|
2022-03-10 06:50:23 +11:00
|
|
|
implementation "androidx.work:work-runtime:2.7.1"
|
2021-06-18 02:54:56 +10:00
|
|
|
implementation "androidx.room:room-ktx:$roomVersion"
|
2022-03-10 06:50:23 +11:00
|
|
|
implementation "androidx.room:room-paging:$roomVersion"
|
2019-11-07 06:48:58 +11:00
|
|
|
kapt "androidx.room:room-compiler:$roomVersion"
|
2022-08-08 03:13:59 +10:00
|
|
|
implementation 'androidx.core:core-splashscreen:1.0.0'
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-08-08 03:13:59 +10:00
|
|
|
implementation "com.google.android.material:material:1.6.1"
|
2022-01-21 07:10:32 +11:00
|
|
|
|
2022-03-14 02:08:27 +11:00
|
|
|
implementation "com.google.code.gson:gson:2.9.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2019-06-10 03:48:04 +10:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
|
2021-05-17 03:53:27 +10:00
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion"
|
2022-05-31 04:03:40 +10:00
|
|
|
implementation "at.connyduck:networkresult-calladapter:1.0.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:$okhttpVersion"
|
|
|
|
|
2021-06-14 19:00:25 +10:00
|
|
|
implementation "org.conscrypt:conscrypt-android:2.5.2"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
|
|
|
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
|
|
|
implementation "com.github.bumptech.glide:okhttp3-integration:$glideVersion"
|
2021-10-09 19:45:41 +11:00
|
|
|
kapt "com.github.bumptech.glide:compiler:$glideVersion"
|
|
|
|
|
2022-08-17 04:09:40 +10:00
|
|
|
implementation "com.github.penfeizhou.android.animation:glide-plugin:2.23.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-03-14 02:08:27 +11:00
|
|
|
implementation "io.reactivex.rxjava3:rxjava:3.1.3"
|
2021-05-17 03:53:27 +10:00
|
|
|
implementation "io.reactivex.rxjava3:rxandroid:3.0.0"
|
|
|
|
implementation "io.reactivex.rxjava3:rxkotlin:3.0.1"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-03-14 02:08:27 +11:00
|
|
|
implementation "com.uber.autodispose2:autodispose-androidx-lifecycle:2.1.1"
|
|
|
|
implementation "com.uber.autodispose2:autodispose:2.1.1"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2018-03-28 04:47:00 +11:00
|
|
|
implementation "com.google.dagger:dagger:$daggerVersion"
|
|
|
|
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
|
|
|
|
implementation "com.google.dagger:dagger-android:$daggerVersion"
|
|
|
|
implementation "com.google.dagger:dagger-android-support:$daggerVersion"
|
|
|
|
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2020-12-14 02:31:32 +11:00
|
|
|
implementation "com.github.connyduck:sparkbutton:4.1.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2020-07-27 18:42:39 +10:00
|
|
|
implementation "com.github.chrisbanes:PhotoView:2.3.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
implementation "com.mikepenz:materialdrawer:$materialdrawerVersion"
|
|
|
|
implementation "com.mikepenz:materialdrawer-iconics:$materialdrawerVersion"
|
2022-01-21 07:10:32 +11:00
|
|
|
implementation 'com.mikepenz:google-material-typeface:4.0.0.2-kotlin@aar'
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-08-17 04:06:59 +10:00
|
|
|
implementation "com.github.CanHub:Android-Image-Cropper:4.3.1"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-04-27 02:50:58 +10:00
|
|
|
implementation "de.c1710:filemojicompat-ui:$filemojicompat_version"
|
|
|
|
implementation "de.c1710:filemojicompat:$filemojicompat_version"
|
|
|
|
implementation "de.c1710:filemojicompat-defaults:$filemojicompat_version"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-05-18 03:32:09 +10:00
|
|
|
implementation "org.bouncycastle:bcprov-jdk15on:1.70"
|
2022-08-17 04:08:23 +10:00
|
|
|
implementation "com.github.UnifiedPush:android-connector:2.0.1"
|
2022-05-18 03:32:09 +10:00
|
|
|
|
2022-01-21 07:10:32 +11:00
|
|
|
testImplementation "androidx.test.ext:junit:1.1.3"
|
2022-08-15 19:01:17 +10:00
|
|
|
testImplementation "org.robolectric:robolectric:4.8.1"
|
2022-08-17 04:06:48 +10:00
|
|
|
testImplementation "org.mockito:mockito-inline:4.7.0"
|
2022-04-15 03:49:49 +10:00
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:4.0.0"
|
2019-11-07 06:48:58 +11:00
|
|
|
|
2022-07-01 05:25:44 +10:00
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttpVersion"
|
|
|
|
|
2022-01-21 07:10:32 +11:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
|
2020-09-14 15:52:54 +10:00
|
|
|
androidTestImplementation "androidx.room:room-testing:$roomVersion"
|
2022-01-21 07:10:32 +11:00
|
|
|
androidTestImplementation "androidx.test.ext:junit:1.1.3"
|
2021-05-22 01:51:47 +10:00
|
|
|
testImplementation "androidx.arch.core:core-testing:2.1.0"
|
2022-01-12 05:00:29 +11:00
|
|
|
|
2022-01-21 07:10:32 +11:00
|
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
|
2017-11-06 08:32:36 +11:00
|
|
|
}
|