Skip to content

Commit

Permalink
Update dependency androidx.core:core-ktx to v1.13.0 (#193)
Browse files Browse the repository at this point in the history
* Update dependency androidx.core:core-ktx to v1.13.0

* Fix generic for Pool<T>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Chris Banes <chris@banes.me>
  • Loading branch information
renovate[bot] and chrisbanes committed Apr 26, 2024
1 parent 0ff9d87 commit 123c4c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mavenpublish = { id = "com.vanniktech.maven.publish", version = "0.28.0" }

[libraries]
androidx-benchmark-macro = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "androidx-benchmark" }
androidx-core = "androidx.core:core-ktx:1.12.0"
androidx-core = "androidx.core:core-ktx:1.13.0"
androidx-collection = "androidx.collection:collection:1.4.0"
androidx-activity-compose = "androidx.activity:activity-compose:1.9.0"
androidx-compose-ui-test-manifest = "androidx.compose.ui:ui-test-manifest:1.6.6"
Expand Down
2 changes: 1 addition & 1 deletion haze/src/androidMain/kotlin/dev/chrisbanes/haze/Pool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package dev.chrisbanes.haze
import androidx.compose.ui.graphics.Path
import androidx.core.util.Pools

internal inline fun <T> Pools.Pool<T>.acquireOrCreate(block: () -> T): T = acquire() ?: block()
internal inline fun <T : Any> Pools.Pool<T>.acquireOrCreate(block: () -> T): T = acquire() ?: block()

internal fun Pools.Pool<Path>.acquireOrCreate(): Path = acquireOrCreate(::Path)

Expand Down

0 comments on commit 123c4c8

Please sign in to comment.