2021-09-15 17:28:58 +08:00
|
|
|
ext.versions = [
|
|
|
|
'minSdk' : 21,
|
2022-09-28 00:13:36 +08:00
|
|
|
'compileSdk' : 33,
|
|
|
|
'targetSdk' : 33,
|
2021-09-15 17:28:58 +08:00
|
|
|
'sourceCompat' : JavaVersion.VERSION_11,
|
|
|
|
'targetCompat' : JavaVersion.VERSION_11,
|
2021-09-17 19:58:44 +08:00
|
|
|
]
|
2021-09-15 17:28:58 +08:00
|
|
|
|
2022-10-17 15:14:28 +08:00
|
|
|
def gradle = "7.3.1"
|
2021-09-20 16:38:47 +08:00
|
|
|
// Ref: https://kotlinlang.org/releases.html
|
2022-12-08 17:51:20 +08:00
|
|
|
def kotlin = "1.7.22"
|
2022-07-14 07:07:00 +08:00
|
|
|
def kotlinCoroutines = "1.6.4"
|
2022-11-15 07:05:09 +08:00
|
|
|
def dagger = "2.44.2"
|
2022-10-13 07:06:56 +08:00
|
|
|
def appDistribution = "16.0.0-beta05"
|
2021-09-17 19:58:44 +08:00
|
|
|
def retrofit = "2.9.0"
|
2022-01-01 00:01:11 +08:00
|
|
|
def markwon = "4.6.2"
|
2022-09-27 19:04:30 +08:00
|
|
|
def moshi = "1.14.0"
|
2022-07-28 07:10:32 +08:00
|
|
|
def lifecycle = "2.5.1"
|
2021-10-27 18:13:49 +08:00
|
|
|
def flowBinding = "1.2.0"
|
2022-12-02 07:03:43 +08:00
|
|
|
def flipper = "0.176.0"
|
2022-09-30 07:13:01 +08:00
|
|
|
def epoxy = "5.0.0"
|
2022-10-05 23:30:06 +08:00
|
|
|
def mavericks = "3.0.1"
|
2022-10-08 07:11:33 +08:00
|
|
|
def glide = "4.14.2"
|
2021-09-17 19:58:44 +08:00
|
|
|
def bigImageViewer = "1.8.1"
|
2022-05-09 21:22:30 +08:00
|
|
|
def jjwt = "0.11.5"
|
2022-09-17 05:12:48 +08:00
|
|
|
// Temporary version to unblock #6929. Once 0.16.0 is released we should use it, and revert
|
|
|
|
// the whole commit which set version 0.16.0-SNAPSHOT
|
|
|
|
def vanniktechEmoji = "0.16.0-SNAPSHOT"
|
2022-12-15 21:34:55 +08:00
|
|
|
def sentry = "6.9.2"
|
2022-12-12 16:21:24 +08:00
|
|
|
def fragment = "1.5.5"
|
2021-09-17 19:58:44 +08:00
|
|
|
// Testing
|
2022-06-15 17:34:18 +08:00
|
|
|
def mockk = "1.12.3" // We need to use 1.12.3 to have mocking in androidTest until a new version is released: https://github.com/mockk/mockk/issues/819
|
2021-09-17 19:58:44 +08:00
|
|
|
def espresso = "3.4.0"
|
|
|
|
def androidxTest = "1.4.0"
|
2022-11-09 07:12:24 +08:00
|
|
|
def androidxOrchestrator = "1.4.2"
|
2022-10-13 17:52:35 +08:00
|
|
|
def paparazzi = "1.1.0"
|
|
|
|
|
2021-09-15 17:28:58 +08:00
|
|
|
ext.libs = [
|
2021-09-17 19:58:44 +08:00
|
|
|
gradle : [
|
|
|
|
'gradlePlugin' : "com.android.tools.build:gradle:$gradle",
|
2021-10-15 00:47:28 +08:00
|
|
|
'kotlinPlugin' : "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin",
|
|
|
|
'hiltPlugin' : "com.google.dagger:hilt-android-gradle-plugin:$dagger"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
jetbrains : [
|
|
|
|
'coroutinesCore' : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutines",
|
|
|
|
'coroutinesAndroid' : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutines",
|
2021-10-27 00:09:07 +08:00
|
|
|
'coroutinesTest' : "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutines"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
androidx : [
|
2022-10-25 18:09:03 +08:00
|
|
|
'activity' : "androidx.activity:activity-ktx:1.6.1",
|
2022-09-12 23:32:42 +08:00
|
|
|
'appCompat' : "androidx.appcompat:appcompat:1.5.1",
|
2022-05-04 22:48:23 +08:00
|
|
|
'biometric' : "androidx.biometric:biometric:1.1.0",
|
2022-09-28 16:05:56 +08:00
|
|
|
'core' : "androidx.core:core-ktx:1.9.0",
|
2021-09-16 01:22:52 +08:00
|
|
|
'recyclerview' : "androidx.recyclerview:recyclerview:1.2.1",
|
2022-10-25 07:11:23 +08:00
|
|
|
'exifinterface' : "androidx.exifinterface:exifinterface:1.3.5",
|
2022-05-04 22:48:23 +08:00
|
|
|
'fragmentKtx' : "androidx.fragment:fragment-ktx:$fragment",
|
|
|
|
'fragmentTesting' : "androidx.fragment:fragment-testing:$fragment",
|
2022-05-20 17:55:29 +08:00
|
|
|
'constraintLayout' : "androidx.constraintlayout:constraintlayout:2.1.4",
|
2021-11-18 07:07:14 +08:00
|
|
|
'work' : "androidx.work:work-runtime-ktx:2.7.1",
|
2021-09-16 01:22:52 +08:00
|
|
|
'autoFill' : "androidx.autofill:autofill:1.1.0",
|
2022-05-10 07:08:00 +08:00
|
|
|
'preferenceKtx' : "androidx.preference:preference-ktx:1.2.0",
|
2021-09-17 19:58:44 +08:00
|
|
|
'junit' : "androidx.test.ext:junit:1.1.3",
|
2021-11-09 23:39:43 +08:00
|
|
|
'lifecycleCommon' : "androidx.lifecycle:lifecycle-common:$lifecycle",
|
2021-11-09 21:56:12 +08:00
|
|
|
'lifecycleLivedata' : "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle",
|
2021-11-09 23:29:49 +08:00
|
|
|
'lifecycleProcess' : "androidx.lifecycle:lifecycle-process:$lifecycle",
|
2022-02-07 23:10:26 +08:00
|
|
|
'lifecycleRuntimeKtx' : "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle",
|
2021-09-20 22:54:39 +08:00
|
|
|
'datastore' : "androidx.datastore:datastore:1.0.0",
|
|
|
|
'datastorepreferences' : "androidx.datastore:datastore-preferences:1.0.0",
|
2021-09-17 19:58:44 +08:00
|
|
|
'pagingRuntimeKtx' : "androidx.paging:paging-runtime-ktx:2.1.2",
|
|
|
|
'coreTesting' : "androidx.arch.core:core-testing:2.1.0",
|
|
|
|
'testCore' : "androidx.test:core:$androidxTest",
|
2022-01-04 07:04:41 +08:00
|
|
|
'orchestrator' : "androidx.test:orchestrator:$androidxOrchestrator",
|
2021-09-17 19:58:44 +08:00
|
|
|
'testRunner' : "androidx.test:runner:$androidxTest",
|
|
|
|
'testRules' : "androidx.test:rules:$androidxTest",
|
|
|
|
'espressoCore' : "androidx.test.espresso:espresso-core:$espresso",
|
|
|
|
'espressoContrib' : "androidx.test.espresso:espresso-contrib:$espresso",
|
2022-04-17 17:09:10 +08:00
|
|
|
'espressoIntents' : "androidx.test.espresso:espresso-intents:$espresso",
|
|
|
|
'viewpager2' : "androidx.viewpager2:viewpager2:1.0.0",
|
|
|
|
'transition' : "androidx.transition:transition:1.2.0",
|
2021-09-17 19:58:44 +08:00
|
|
|
],
|
|
|
|
google : [
|
2022-10-20 07:07:12 +08:00
|
|
|
'material' : "com.google.android.material:material:1.7.0",
|
2022-07-22 22:52:05 +08:00
|
|
|
'appdistributionApi' : "com.google.firebase:firebase-appdistribution-api-ktx:$appDistribution",
|
|
|
|
'appdistribution' : "com.google.firebase:firebase-appdistribution:$appDistribution",
|
2022-08-08 17:21:34 +08:00
|
|
|
// Phone number https://github.com/google/libphonenumber
|
2022-12-22 07:04:04 +08:00
|
|
|
'phonenumber' : "com.googlecode.libphonenumber:libphonenumber:8.13.3"
|
2021-09-17 19:58:44 +08:00
|
|
|
],
|
|
|
|
dagger : [
|
|
|
|
'dagger' : "com.google.dagger:dagger:$dagger",
|
2021-10-15 00:47:28 +08:00
|
|
|
'daggerCompiler' : "com.google.dagger:dagger-compiler:$dagger",
|
|
|
|
'hilt' : "com.google.dagger:hilt-android:$dagger",
|
2022-05-04 22:48:23 +08:00
|
|
|
'hiltAndroidTesting' : "com.google.dagger:hilt-android-testing:$dagger",
|
2021-10-15 00:47:28 +08:00
|
|
|
'hiltCompiler' : "com.google.dagger:hilt-compiler:$dagger"
|
2021-09-17 19:58:44 +08:00
|
|
|
],
|
2022-06-28 20:27:40 +08:00
|
|
|
flipper : [
|
|
|
|
'flipper' : "com.facebook.flipper:flipper:$flipper",
|
|
|
|
'flipperNetworkPlugin' : "com.facebook.flipper:flipper-network-plugin:$flipper",
|
|
|
|
],
|
2022-07-06 23:54:29 +08:00
|
|
|
element : [
|
2022-09-23 22:26:49 +08:00
|
|
|
'opusencoder' : "io.element.android:opusencoder:1.1.0",
|
2022-12-21 18:40:19 +08:00
|
|
|
'wysiwyg' : "io.element.android:wysiwyg:0.10.0"
|
2022-07-06 23:54:29 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
squareup : [
|
2022-04-16 04:50:54 +08:00
|
|
|
'moshi' : "com.squareup.moshi:moshi:$moshi",
|
2022-02-25 23:25:56 +08:00
|
|
|
'moshiKt' : "com.squareup.moshi:moshi-kotlin:$moshi",
|
2021-09-17 19:58:44 +08:00
|
|
|
'moshiKotlin' : "com.squareup.moshi:moshi-kotlin-codegen:$moshi",
|
2022-08-05 15:52:12 +08:00
|
|
|
'moshiAdapters' : "com.squareup.moshi:moshi-adapters:$moshi",
|
2022-10-13 17:52:35 +08:00
|
|
|
'paparazzi' : "app.cash.paparazzi:paparazzi:$paparazzi",
|
|
|
|
'paparazziPlugin' : "app.cash.paparazzi:paparazzi-gradle-plugin:$paparazzi",
|
2021-09-17 19:58:44 +08:00
|
|
|
'retrofit' : "com.squareup.retrofit2:retrofit:$retrofit",
|
|
|
|
'retrofitMoshi' : "com.squareup.retrofit2:converter-moshi:$retrofit"
|
|
|
|
],
|
|
|
|
rx : [
|
2022-01-14 00:53:26 +08:00
|
|
|
'rxKotlin' : "io.reactivex.rxjava2:rxkotlin:2.4.0"
|
2021-09-17 19:58:44 +08:00
|
|
|
],
|
|
|
|
markwon : [
|
|
|
|
'core' : "io.noties.markwon:core:$markwon",
|
2020-09-18 22:22:10 +08:00
|
|
|
'extLatex' : "io.noties.markwon:ext-latex:$markwon",
|
2022-10-04 23:59:52 +08:00
|
|
|
'imageGlide' : "io.noties.markwon:image-glide:$markwon",
|
2020-09-18 22:22:10 +08:00
|
|
|
'inlineParser' : "io.noties.markwon:inline-parser:$markwon",
|
2021-09-17 19:58:44 +08:00
|
|
|
'html' : "io.noties.markwon:html:$markwon"
|
|
|
|
],
|
|
|
|
airbnb : [
|
|
|
|
'epoxy' : "com.airbnb.android:epoxy:$epoxy",
|
|
|
|
'epoxyGlide' : "com.airbnb.android:epoxy-glide-preloading:$epoxy",
|
|
|
|
'epoxyProcessor' : "com.airbnb.android:epoxy-processor:$epoxy",
|
|
|
|
'epoxyPaging' : "com.airbnb.android:epoxy-paging:$epoxy",
|
2021-10-01 01:52:37 +08:00
|
|
|
'mavericks' : "com.airbnb.android:mavericks:$mavericks",
|
2021-10-12 19:47:32 +08:00
|
|
|
'mavericksTesting' : "com.airbnb.android:mavericks-testing:$mavericks"
|
2021-09-17 19:58:44 +08:00
|
|
|
],
|
2022-05-24 16:34:37 +08:00
|
|
|
maplibre : [
|
2022-12-20 07:04:33 +08:00
|
|
|
'androidSdk' : "org.maplibre.gl:android-sdk:9.6.0",
|
2022-05-24 16:34:37 +08:00
|
|
|
'pluginAnnotation' : "org.maplibre.gl:android-plugin-annotation-v9:1.0.0"
|
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
mockk : [
|
|
|
|
'mockk' : "io.mockk:mockk:$mockk",
|
|
|
|
'mockkAndroid' : "io.mockk:mockk-android:$mockk"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
github : [
|
|
|
|
'glide' : "com.github.bumptech.glide:glide:$glide",
|
|
|
|
'glideCompiler' : "com.github.bumptech.glide:compiler:$glide",
|
|
|
|
'bigImageViewer' : "com.github.piasy:BigImageViewer:$bigImageViewer",
|
|
|
|
'glideImageLoader' : "com.github.piasy:GlideImageLoader:$bigImageViewer",
|
|
|
|
'progressPieIndicator' : "com.github.piasy:ProgressPieIndicator:$bigImageViewer",
|
2021-10-27 18:13:49 +08:00
|
|
|
'glideImageViewFactory' : "com.github.piasy:GlideImageViewFactory:$bigImageViewer",
|
|
|
|
'flowBinding' : "io.github.reactivecircus.flowbinding:flowbinding-android:$flowBinding",
|
|
|
|
'flowBindingAppcompat' : "io.github.reactivecircus.flowbinding:flowbinding-appcompat:$flowBinding",
|
|
|
|
'flowBindingMaterial' : "io.github.reactivecircus.flowbinding:flowbinding-material:$flowBinding"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
jakewharton : [
|
2021-10-27 18:13:49 +08:00
|
|
|
'timber' : "com.jakewharton.timber:timber:5.0.1"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
jsonwebtoken: [
|
|
|
|
'jjwtApi' : "io.jsonwebtoken:jjwt-api:$jjwt",
|
|
|
|
'jjwtImpl' : "io.jsonwebtoken:jjwt-impl:$jjwt",
|
|
|
|
'jjwtOrgjson' : "io.jsonwebtoken:jjwt-orgjson:$jjwt"
|
2021-09-16 01:22:52 +08:00
|
|
|
],
|
2021-10-20 01:04:32 +08:00
|
|
|
vanniktech : [
|
2021-09-28 17:29:30 +08:00
|
|
|
'emojiMaterial' : "com.vanniktech:emoji-material:$vanniktechEmoji",
|
|
|
|
'emojiGoogle' : "com.vanniktech:emoji-google:$vanniktechEmoji"
|
|
|
|
],
|
2021-10-20 01:04:32 +08:00
|
|
|
apache : [
|
2022-10-26 18:32:27 +08:00
|
|
|
'commonsImaging' : "org.apache.commons:commons-imaging:1.0-alpha3"
|
2021-10-19 05:20:03 +08:00
|
|
|
],
|
2022-10-05 19:19:14 +08:00
|
|
|
sentry: [
|
|
|
|
'sentryAndroid' : "io.sentry:sentry-android:$sentry"
|
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
tests : [
|
2022-10-25 07:09:47 +08:00
|
|
|
'kluent' : "org.amshove.kluent:kluent-android:1.72",
|
2021-09-17 19:58:44 +08:00
|
|
|
'timberJunitRule' : "net.lachlanmckee:timber-junit-rule:1.0.1",
|
2022-08-03 06:30:14 +08:00
|
|
|
'junit' : "junit:junit:4.13.2",
|
2021-09-15 17:28:58 +08:00
|
|
|
]
|
2022-02-07 23:10:26 +08:00
|
|
|
]
|
2022-05-04 22:48:23 +08:00
|
|
|
|
|
|
|
|