@@ -77,42 +77,53 @@ android {
7777}
7878
7979ext {
80- supportLibrary = " 28.0.0-rc01"
80+ androidX = " 1.0.1"
81+ materialDesign = " 1.1.0-alpha01"
8182 architectureComponents = " 1.1.1"
8283 architectureComponentsExtensions = " 1.1.1"
83- androidKtx = " 0.3"
84- dagger = " 2.15"
84+ androidKtx = " 1.0.1"
85+ androidTestRunner = " 1.0.2"
86+ constraintLayout = " 2.0.0-alpha2"
87+ lifecycle = " 2.0.0"
88+ room = " 2.1.0-alpha02"
89+
90+ dagger = " 2.18"
8591 retrofit = " 2.3.0"
8692 ankoVersion = " 0.10.4"
87- glide = " 4.6.1"
88- androidTestRunner = " 1.0.2"
93+ glide = " 4.8.0"
8994 lottieVersion = " 2.6.0-beta19"
9095 okHttp = " 3.10.0"
96+ rxJava = " 2.1.10"
97+ rxAndroid = " 2.0.2"
98+ timber = " 4.6.1"
99+ rxRelay = " 2.0.0"
100+ leakCanary = " 1.5.4"
101+ mockito = " 2.23.0"
91102}
92103
93104
94105dependencies {
95- implementation " com.android.support: support-v4:$s upportLibrary "
96- debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.5.4 '
97- releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.4 '
106+ implementation ' androidx.legacy:legacy- support-v4:1.0.0 '
107+ debugImplementation " com.squareup.leakcanary:leakcanary-android:$l eakCanary "
108+ releaseImplementation " com.squareup.leakcanary:leakcanary-android-no-op:$l eakCanary "
98109
99110 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
100111 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
101- implementation " com.android.support :appcompat-v7: $s upportLibrary "
102- implementation " com.android.support:design: $s upportLibrary "
103- implementation " com.android.support.constraint:constraint-layout:1.1.0 "
112+ implementation " androidx.appcompat :appcompat: $a ndroidX "
113+ implementation " com.google. android.material:material: $m aterialDesign "
114+ implementation " androidx.constraintlayout:constraintlayout: $c onstraintLayout "
104115 implementation " com.squareup.okhttp3:okhttp:$okHttp "
105116 implementation " com.squareup.retrofit2:retrofit:$retrofit "
106117 implementation " com.squareup.retrofit2:converter-moshi:$retrofit "
107118 implementation " com.squareup.retrofit2:adapter-rxjava2:$retrofit "
108- implementation " io.reactivex.rxjava2:rxjava:2.1.10 "
109- implementation " io.reactivex.rxjava2:rxandroid:2.0.2 "
110- implementation " com.jakewharton.timber:timber:4.6.1 "
119+ implementation " io.reactivex.rxjava2:rxjava:$r xJava "
120+ implementation " io.reactivex.rxjava2:rxandroid:$r xAndroid "
121+ implementation " com.jakewharton.timber:timber:$t imber "
111122 implementation " com.google.dagger:dagger-android:$dagger "
112123 implementation " com.google.dagger:dagger-android-support:$dagger "
113124
114125 // RxRelay
115- implementation " com.jakewharton.rxrelay2:rxrelay:2.0.0 "
126+ implementation " com.jakewharton.rxrelay2:rxrelay:$r xRelay "
116127
117128 // Anko
118129 implementation " org.jetbrains.anko:anko-commons:$ankoVersion "
@@ -122,16 +133,16 @@ dependencies {
122133 implementation " androidx.core:core-ktx:$androidKtx "
123134
124135 // ViewModel and LiveData
125- implementation " android.arch. lifecycle:extensions:$a rchitectureComponentsExtensions "
126- kapt " android.arch. lifecycle:compiler:$a rchitectureComponents "
127- testImplementation " android .arch.core:core-testing:$a rchitectureComponents "
128- androidTestImplementation " android .arch.core:core-testing:$a rchitectureComponents "
136+ implementation " androidx. lifecycle:lifecycle- extensions:$l ifecycle "
137+ kapt " androidx. lifecycle:lifecycle- compiler:$l ifecycle "
138+ testImplementation " androidx .arch.core:core-testing:$l ifecycle "
139+ androidTestImplementation " androidx .arch.core:core-testing:$l ifecycle "
129140
130141 // Room
131- implementation " android.arch.persistence. room:runtime:$a rchitectureComponents "
132- kapt " android.arch.persistence. room:compiler:$a rchitectureComponents "
133- testImplementation " android.arch.persistence. room:testing:$a rchitectureComponents "
134- androidTestImplementation " android.arch.persistence. room:testing:$a rchitectureComponents "
142+ implementation " androidx. room:room- runtime:$r oom "
143+ kapt " androidx. room:room- compiler:$r oom "
144+ testImplementation " androidx. room:room- testing:$r oom "
145+ androidTestImplementation " androidx. room:room- testing:$r oom "
135146
136147 // Dagger
137148 kapt " com.google.dagger:dagger-android-processor:$dagger "
@@ -147,18 +158,20 @@ dependencies {
147158 implementation " com.airbnb.android:lottie:$lottieVersion "
148159
149160 // Apache commons
150- implementation ' org.apache.commons:commons-math3:3.6.1'
161+ implementation " org.apache.commons:commons-math3:3.6.1"
151162
152- testImplementation " org.mockito:mockito-core:2.15.0 "
163+ testImplementation " org.mockito:mockito-core:$m ockito "
153164 testImplementation " com.nhaarman:mockito-kotlin-kt1.1:1.5.0"
154165 testImplementation " junit:junit:4.12"
155166
156- androidTestImplementation " com.android.support. test:runner:$a ndroidTestRunner "
157- androidTestImplementation " com.android.support. test:rules:$a ndroidTestRunner "
158- androidTestUtil " com.android.support. test:orchestrator:1.0.2 "
159- androidTestImplementation " com.android.support. test.espresso:espresso-core:3.0.2 "
160- androidTestImplementation " org.mockito:mockito-android:2.15.0 "
167+ androidTestImplementation ' androidx. test:runner:1.1.0 '
168+ androidTestImplementation ' androidx. test:rules:1.1.0 '
169+ androidTestUtil " androidx. test:orchestrator:1.1.0 "
170+ androidTestImplementation " androidx. test.espresso:espresso-core:3.1.0 "
171+ androidTestImplementation " org.mockito:mockito-android:$m ockito "
161172 androidTestImplementation " com.squareup.okhttp3:mockwebserver:$okHttp "
162173 androidTestImplementation " com.nhaarman:mockito-kotlin-kt1.1:1.5.0"
163174
175+ kapt " com.android.tools.build.jetifier:jetifier-core:$jetifier "
176+ annotationProcessor " com.android.tools.build.jetifier:jetifier-core:$jetifier "
164177}
0 commit comments