Skip to content

Commit 936c0e1

Browse files
committed
Bump Application Dependencies.
1 parent ba18fde commit 936c0e1

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

app/src/main/kotlin/com/fernandocejas/sample/core/extension/View.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,20 @@ fun ImageView.loadUrlAndPostponeEnterTransition(url: String, activity: FragmentA
5454
}
5555

5656
private class ImageViewBaseTarget (var imageView: ImageView?, var activity: FragmentActivity?) : BaseTarget<Drawable>() {
57-
override fun removeCallback(cb: SizeReadyCallback?) {
57+
override fun onLoadFailed(errorDrawable: Drawable?) {
58+
super.onLoadFailed(errorDrawable)
59+
activity?.supportStartPostponedEnterTransition()
60+
}
61+
62+
override fun getSize(cb: SizeReadyCallback) = cb.onSizeReady(SIZE_ORIGINAL, SIZE_ORIGINAL)
63+
64+
override fun removeCallback(cb: SizeReadyCallback) {
5865
imageView = null
5966
activity = null
6067
}
6168

62-
override fun onResourceReady(resource: Drawable, transition: Transition<in Drawable>) {
69+
override fun onResourceReady(resource: Drawable, transition: Transition<in Drawable>?) {
6370
imageView?.setImageDrawable(resource)
6471
activity?.supportStartPostponedEnterTransition()
6572
}
66-
67-
override fun onLoadFailed(errorDrawable: Drawable?) {
68-
super.onLoadFailed(errorDrawable)
69-
activity?.supportStartPostponedEnterTransition()
70-
}
71-
72-
override fun getSize(cb: SizeReadyCallback) = cb.onSizeReady(SIZE_ORIGINAL, SIZE_ORIGINAL)
7373
}

buildSrc/src/main/kotlin/Dependencies.kt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ object AndroidSdk {
2424

2525
object Libraries {
2626
private object Versions {
27-
const val jetpack = "1.1.0"
28-
const val constraintLayout = "1.1.3"
27+
const val appCompat = "1.2.0"
28+
const val constraintLayout = "2.0.2"
29+
const val recyclerView = "1.1.0"
2930
const val cardView = "1.0.0"
30-
const val material = "1.0.0-rc01"
31+
const val material = "1.1.0"
3132
const val lifecycle = "2.2.0"
3233
const val lifecycleExtensions = "2.1.0"
33-
const val ktx = "1.3.0"
34-
const val coroutines = "1.3.7"
35-
const val glide = "4.0.0"
36-
const val retrofit = "2.3.0"
37-
const val okHttpLoggingInterceptor = "3.8.1"
34+
const val annotations = "1.1.0"
35+
const val ktx = "1.3.2"
36+
const val coroutines = "1.3.9"
37+
const val glide = "4.11.0"
38+
const val retrofit = "2.9.0"
39+
const val okHttpLoggingInterceptor = "4.9.0"
3840

3941
//TODO: Legacy -> WIP -> Try Hilt?
4042
const val dagger = "2.11"
@@ -45,17 +47,17 @@ object Libraries {
4547
const val kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
4648
const val kotlinCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.coroutines}"
4749
const val kotlinCoroutinesAndroid = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutines}"
48-
const val appCompat = "androidx.appcompat:appcompat:${Versions.jetpack}"
50+
const val appCompat = "androidx.appcompat:appcompat:${Versions.appCompat}"
4951
const val constraintLayout = "androidx.constraintlayout:constraintlayout:${Versions.constraintLayout}"
5052
const val ktxCore = "androidx.core:core-ktx:${Versions.ktx}"
5153
const val lifecycleCompiler = "androidx.lifecycle:lifecycle-compiler:${Versions.lifecycle}"
5254
const val viewModel = "androidx.lifecycle:lifecycle-viewmodel-ktx:${Versions.lifecycle}"
5355
const val liveData = "androidx.lifecycle:lifecycle-livedata-ktx:${Versions.lifecycle}"
54-
const val lifecycleExtensions = "androidx.lifecycle:lifecycle-extensions:${Versions.lifecycleExtensions}"
56+
const val lifecycleExtensions = "androidx.lifecycle:lifecycle-extensions:${Versions.lifecycleExtensions}" //TODO: Deprecated
5557
const val cardView = "androidx.cardview:cardview:${Versions.cardView}"
56-
const val recyclerView = "androidx.recyclerview:recyclerview:${Versions.jetpack}"
58+
const val recyclerView = "androidx.recyclerview:recyclerview:${Versions.recyclerView}"
5759
const val material = "com.google.android.material:material:${Versions.material}"
58-
const val androidAnnotations = "androidx.annotation:annotation:${Versions.jetpack}"
60+
const val androidAnnotations = "androidx.annotation:annotation:${Versions.annotations}"
5961
const val glide = "com.github.bumptech.glide:glide:${Versions.glide}"
6062
const val dagger = "com.google.dagger:dagger:${Versions.dagger}"
6163
const val retrofit = "com.squareup.retrofit2:converter-gson:${Versions.retrofit}"

0 commit comments

Comments
 (0)