2021-09-15 17:28:58 +08:00
|
|
|
ext.versions = [
|
|
|
|
|
|
|
|
'minSdk' : 21,
|
|
|
|
'compileSdk' : 30,
|
|
|
|
'targetSdk' : 30,
|
|
|
|
'sourceCompat' : JavaVersion.VERSION_11,
|
|
|
|
'targetCompat' : JavaVersion.VERSION_11,
|
2021-09-17 19:58:44 +08:00
|
|
|
]
|
2021-09-15 17:28:58 +08:00
|
|
|
|
2021-09-17 19:58:44 +08:00
|
|
|
def gradle = "7.0.2"
|
2021-09-20 16:38:47 +08:00
|
|
|
// Ref: https://kotlinlang.org/releases.html
|
2021-09-23 20:24:53 +08:00
|
|
|
def kotlin = "1.5.31"
|
2021-09-23 21:49:54 +08:00
|
|
|
def kotlinCoroutines = "1.5.2"
|
2021-10-02 07:06:49 +08:00
|
|
|
def dagger = "2.39.1"
|
2021-09-17 19:58:44 +08:00
|
|
|
def retrofit = "2.9.0"
|
|
|
|
def arrow = "0.8.2"
|
|
|
|
def markwon = "4.6.2"
|
|
|
|
def moshi = "1.12.0"
|
|
|
|
def lifecycle = "2.2.0"
|
|
|
|
def rxBinding = "3.1.0"
|
|
|
|
def epoxy = "4.6.2"
|
|
|
|
def glide = "4.12.0"
|
|
|
|
def bigImageViewer = "1.8.1"
|
|
|
|
def jjwt = "0.11.2"
|
2021-09-28 17:31:21 +08:00
|
|
|
def vanniktechEmoji = "0.8.0"
|
2021-09-16 01:22:52 +08:00
|
|
|
|
2021-09-17 19:58:44 +08:00
|
|
|
// Testing
|
|
|
|
def mockk = "1.12.0"
|
|
|
|
def espresso = "3.4.0"
|
|
|
|
def androidxTest = "1.4.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",
|
|
|
|
'kotlinPlugin' : "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
jetbrains : [
|
|
|
|
'kotlinStdlibJdk7' : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin",
|
|
|
|
'kotlinStdlib' : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin",
|
|
|
|
'coroutinesCore' : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutines",
|
|
|
|
'coroutinesAndroid' : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutines",
|
|
|
|
'coroutinesRx2' : "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$kotlinCoroutines"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
androidx : [
|
2021-09-16 01:22:52 +08:00
|
|
|
'appCompat' : "androidx.appcompat:appcompat:1.3.1",
|
|
|
|
'core' : "androidx.core:core-ktx:1.6.0",
|
|
|
|
'recyclerview' : "androidx.recyclerview:recyclerview:1.2.1",
|
|
|
|
'exifinterface' : "androidx.exifinterface:exifinterface:1.3.3",
|
|
|
|
'fragmentKtx' : "androidx.fragment:fragment-ktx:1.3.6",
|
2021-09-28 07:13:27 +08:00
|
|
|
'constraintLayout' : "androidx.constraintlayout:constraintlayout:2.1.1",
|
2021-09-29 16:55:39 +08:00
|
|
|
'work' : "androidx.work:work-runtime-ktx:2.6.0",
|
2021-09-16 01:22:52 +08:00
|
|
|
'autoFill' : "androidx.autofill:autofill:1.1.0",
|
2021-09-17 19:58:44 +08:00
|
|
|
'preferenceKtx' : "androidx.preference:preference-ktx:1.1.1",
|
|
|
|
'junit' : "androidx.test.ext:junit:1.1.3",
|
|
|
|
'lifecycleExtensions' : "androidx.lifecycle:lifecycle-extensions:$lifecycle",
|
|
|
|
'lifecycleJava8' : "androidx.lifecycle:lifecycle-common-java8:$lifecycle",
|
|
|
|
'lifecycleLivedata' : "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1",
|
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",
|
2021-09-24 03:24:16 +08:00
|
|
|
'orchestrator' : "androidx.test:orchestrator:$androidxTest",
|
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",
|
|
|
|
'espressoIntents' : "androidx.test.espresso:espresso-intents:$espresso"
|
|
|
|
],
|
|
|
|
google : [
|
|
|
|
'material' : "com.google.android.material:material:1.4.0"
|
|
|
|
],
|
|
|
|
dagger : [
|
|
|
|
'dagger' : "com.google.dagger:dagger:$dagger",
|
|
|
|
'daggerCompiler' : "com.google.dagger:dagger-compiler:$dagger"
|
|
|
|
],
|
|
|
|
squareup : [
|
|
|
|
'moshi' : "com.squareup.moshi:moshi-adapters:$moshi",
|
|
|
|
'moshiKotlin' : "com.squareup.moshi:moshi-kotlin-codegen:$moshi",
|
|
|
|
'retrofit' : "com.squareup.retrofit2:retrofit:$retrofit",
|
|
|
|
'retrofitMoshi' : "com.squareup.retrofit2:converter-moshi:$retrofit"
|
|
|
|
],
|
|
|
|
rx : [
|
|
|
|
'rxKotlin' : "io.reactivex.rxjava2:rxkotlin:2.4.0",
|
|
|
|
'rxAndroid' : "io.reactivex.rxjava2:rxandroid:2.1.1"
|
|
|
|
],
|
|
|
|
arrow : [
|
|
|
|
'core' : "io.arrow-kt:arrow-core:$arrow",
|
|
|
|
'instances' : "io.arrow-kt:arrow-instances-core:$arrow"
|
|
|
|
],
|
|
|
|
markwon : [
|
|
|
|
'core' : "io.noties.markwon:core:$markwon",
|
|
|
|
'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",
|
|
|
|
'mvrx' : "com.airbnb.android:mvrx:1.5.1"
|
|
|
|
],
|
|
|
|
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",
|
|
|
|
'glideImageViewFactory' : "com.github.piasy:GlideImageViewFactory:$bigImageViewer"
|
2021-09-15 17:28:58 +08:00
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
jakewharton : [
|
|
|
|
'timber' : "com.jakewharton.timber:timber:5.0.1",
|
|
|
|
'rxbinding' : "com.jakewharton.rxbinding3:rxbinding:$rxBinding",
|
|
|
|
'rxbindingAppcompat' : "com.jakewharton.rxbinding3:rxbinding-appcompat:$rxBinding",
|
|
|
|
'rxbindingMaterial' : "com.jakewharton.rxbinding3:rxbinding-material:$rxBinding"
|
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-09-28 17:29:30 +08:00
|
|
|
vanniktech: [
|
|
|
|
'emojiMaterial' : "com.vanniktech:emoji-material:$vanniktechEmoji",
|
|
|
|
'emojiGoogle' : "com.vanniktech:emoji-google:$vanniktechEmoji"
|
|
|
|
],
|
2021-09-17 19:58:44 +08:00
|
|
|
tests : [
|
|
|
|
'kluent' : "org.amshove.kluent:kluent-android:1.68",
|
|
|
|
'timberJunitRule' : "net.lachlanmckee:timber-junit-rule:1.0.1",
|
2021-09-16 01:22:52 +08:00
|
|
|
'junit' : "junit:junit:4.13.2"
|
2021-09-15 17:28:58 +08:00
|
|
|
]
|
|
|
|
]
|