Skip to content

Commit

Permalink
version: upgrade AGP to 8.3.1 and Kotlin to 1.9.23
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbarrossilva committed Apr 2, 2024
1 parent 8cd1aa0 commit 5deabad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
[versions]
android-activity = "1.7.0"
android-compose = "1.6.0-rc01"
android-compose-compiler = "1.5.7"
android-compose-compiler = "1.5.11"
android-fragment = "1.6.2"
android-lifecycle = "2.7.0"
android-plugin = "8.3.0"
android-plugin = "8.3.1"
android-room = "2.6.1"
android-sdk-min = "28"
android-sdk-target = "34"
android-test-espresso = "3.5.0"
java = "17"
kotlin = "1.9.21"
kotlin-coroutines = "1.7.2"
kotlin-symbolProcessor = "1.9.20-1.0.13"
kotlin = "1.9.23"
kotlin-coroutines = "1.8.0"
kotlin-symbolProcessor = "1.9.23-1.0.19"
ktor = "2.3.2"
loadable = "1.6.9"
spotless = "6.22.0"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ import android.widget.ImageView
import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.toBitmap
import br.com.orcinus.orca.ext.reflection.access
import br.com.orcinus.orca.platform.testing.context
import kotlin.reflect.KProperty1
import kotlin.reflect.full.declaredMemberProperties
import org.hamcrest.BaseMatcher
import org.hamcrest.Description
import org.hamcrest.Matcher
Expand Down Expand Up @@ -59,6 +62,11 @@ private class WithDrawableMatcher(
override fun matches(item: Any?): Boolean {
return item is ImageView &&
(((resource == Resources.ID_NULL && item.drawable == null) ||
ImageView::class
.declaredMemberProperties
.filterIsInstance<KProperty1<ImageView, Int>>()
.single { it.name == "mResource" }
.access { get(item) } == resource ||
drawable?.constantState == item.drawable?.constantState ||
drawable?.toBitmap()?.sameAs(item.drawable?.toBitmap()) ?: false))
}
Expand Down

0 comments on commit 5deabad

Please sign in to comment.