@@ -4,65 +4,59 @@ apply plugin: 'kotlin-kapt'
44
55android {
66
7- defaultConfig {
8- compileSdkVersion 29
9- buildToolsVersion " 29.0.2"
10- compileOptions {
11- targetCompatibility = " 8"
12- sourceCompatibility = " 8"
13- }
14- kotlinOptions {
15- jvmTarget = JavaVersion . VERSION_1_8 . toString()
16- }
17- javaCompileOptions {
18- annotationProcessorOptions {
19- arguments = [
20- " room.schemaLocation" : " $projectDir /schemas" . toString()
21- ]
22- }
23- }
7+ defaultConfig {
8+ compileSdkVersion 29
9+ buildToolsVersion " 29.0.2"
10+ compileOptions {
11+ targetCompatibility = " 8"
12+ sourceCompatibility = " 8"
2413 }
14+ kotlinOptions {
15+ jvmTarget = JavaVersion . VERSION_1_8 . toString()
16+ }
17+ javaCompileOptions {
18+ annotationProcessorOptions {
19+ arguments = [
20+ " room.schemaLocation" : " $projectDir /schemas" . toString()
21+ ]
22+ }
23+ }
24+ }
2525}
2626
2727dependencies {
28- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
29- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
30- def work_version = " 2.3.4"
31- def lifecycle_version = " 2.2.0"
32- def retrofit_version = " 2.7.2"
33- def arch_version = " 2.1.0"
34- def room_version = " 2.2.5"
35- def koin_version= " 2.1.4"
28+ implementation fileTree(dir : ' libs' , include : [' *.jar' ])
29+
3630
37- api " androidx.work:work-runtime-ktx: $w ork_version "
38- api " android.arch.work:work-rxjava2: $w ork_version "
39- implementation " androidx.lifecycle:lifecycle-viewmodel-ktx: $l ifecycle_version "
40- implementation " androidx.lifecycle:lifecycle-livedata-ktx: $l ifecycle_version "
41- implementation " androidx .lifecycle:lifecycle-runtime-ktx: $l ifecycle_version "
31+ api Dependencies . workRuntime
32+ api Dependencies . workRx
33+ implementation Dependencies . viewModel
34+ implementation Dependencies . liveData
35+ implementation Dependencies . lifecycle
4236
43- implementation " androidx .room:room-runtime: $r oom_version "
44- implementation " androidx.room:room-rxjava2: $r oom_version "
45- implementation " androidx.room:room-ktx: $r oom_version "
46- kapt " androidx.room:room-compiler: $r oom_version "
37+ implementation Dependencies . room
38+ implementation Dependencies . roomRx
39+ implementation Dependencies . roomKtx
40+ kapt Dependencies . roomCompiler
4741
48- api ' io.reactivex.rxjava2:rxandroid:2.1.0 '
49- api ' io.reactivex.rxjava2:rxjava:2.2.21 '
50- api ' io.reactivex.rxjava2:rxkotlin:2.2.0 '
51- api ' com.google.android. material:material:1.1.0 '
52- api " org.koin:koin-androidx-viewmodel: $k oin_version "
53- api " org.koin:koin-android: $k oin_version "
54- api " org.koin:koin-core: $k oin_version "
55- api ' joda-time:joda-time:2.10.14 '
42+ api Dependencies . rxAndroid
43+ api Dependencies . rx2
44+ api Dependencies . rxKotlin
45+ api Dependencies . material
46+ api Dependencies . koinViewModel
47+ api Dependencies . koinAndroid
48+ api Dependencies . koinCore
49+ api Dependencies . jodaTime
5650
57- implementation " com.squareup. moshi:moshi-kotlin:1.9.2 "
58- kapt " com.squareup.moshi:moshi-kotlin-codegen:1.9.2 "
51+ implementation Dependencies . moshi
52+ kapt Dependencies . moshiCodeGen
5953
60- implementation " com.squareup.retrofit2:converter-moshi: $r etrofit_version "
61- implementation " com.squareup.retrofit2:converter-gson: $r etrofit_version "
62- implementation " com.squareup.retrofit2:adapter-rxjava2: $r etrofit_version "
63- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4 '
54+ implementation Dependencies . retrofitMoshi
55+ implementation Dependencies . retrofitGson
56+ implementation Dependencies . retrofitRx
57+ implementation Dependencies . coroutineCore
6458
65- api ' com.jakewharton.rxrelay2:rxrelay:2.1.1 '
59+ api Dependencies . rxRelay
6660
6761}
6862
0 commit comments