Skip to content

Commit

Permalink
Compose 1.3-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Jan 13, 2023
1 parent 48419b7 commit 11e36d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ internal class ComposableDILazyDelegate<V>(private val base: LazyDelegate<V>) :
* @return A Lazy delegate for the [T] instance.
*/
@Composable
public inline fun <reified T : Any> rememberDI(block: @DisallowComposableCalls DI.() -> LazyDelegate<T>): LazyDelegate<T> = with(localDI()) {
public inline fun <reified T : Any> rememberDI(
crossinline block: @DisallowComposableCalls DI.() -> LazyDelegate<T>
): LazyDelegate<T> = with(localDI()) {
remember { ComposableDILazyDelegate(block()) }
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ androidx-appcompat-version = "1.5.1"
androidx-fragment-version = "1.5.4"
androidx-lifecycle-version = "2.5.1"
# Compose
compose-version = "1.3.0-rc01" # Not yet compatible with Kotlin 1.8
compose-version = "1.3.0-rc02"
# KSP
kotlinpoet-version = "1.12.0"
ksp-version = "1.8.0-1.0.8"
Expand Down
7 changes: 3 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ framework("tfx").include(
":framework:tornadofx:kodein-di-framework-tornadofx-jvm"
)

// Compose is not yet compatible with Kotlin 1.8
//framework("compose").include(
// ":framework:compose:kodein-di-framework-compose"
//)
framework("compose").include(
":framework:compose:kodein-di-framework-compose"
)

0 comments on commit 11e36d0

Please sign in to comment.