Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alialbaali committed Oct 23, 2021
1 parent b2820d6 commit 28a064b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ private object Versions {
const val Kotlin = "1.5.31"
const val Ktor = "1.6.3"
const val Coroutines = "1.5.2"
const val Compose = "1.0.0-alpha4-build385"
const val AGP = "7.0.2"
const val Compose = "1.0.0-beta1"
const val AGP = "7.0.3"

object Android {
const val Appcompat = "1.3.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ public inline fun lazyPainterResource(

var painterResource by remember(key) { mutableStateOf<Resource<Painter>>(Resource.Loading(0F)) }
val kamelConfig = LocalKamelConfig.current
val density = LocalDensity.current

val resourceConfig = remember(key, density) {
ResourceConfigBuilder()
.apply { this.density = density }
.apply(block)
.build()
}
val density = LocalDensity.current
val resourceConfig = remember(key, density) {
ResourceConfigBuilder()
.apply { this.density = density }
.apply(block)
.build()
}

val painterFlow = when (data.toString().substringAfterLast(".")) {
"svg" -> kamelConfig.loadSvgResource(data, resourceConfig)
Expand Down
1 change: 1 addition & 0 deletions kamel-samples/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:exported="true"
android:theme="@style/Theme.MyApplication">
<activity
android:name=".AndroidSample"
Expand Down

0 comments on commit 28a064b

Please sign in to comment.