diff --git a/build-logic/project/src/main/kotlin/wwm.core.feature.gradle.kts b/build-logic/project/src/main/kotlin/wwm.core.feature.gradle.kts index 30a7d4b..c4070a4 100644 --- a/build-logic/project/src/main/kotlin/wwm.core.feature.gradle.kts +++ b/build-logic/project/src/main/kotlin/wwm.core.feature.gradle.kts @@ -4,11 +4,6 @@ plugins { kotlin { sourceSets { - all { - languageSettings { - enableLanguageFeature("ContextReceivers") - } - } commonMain { dependencies { implementation(project(":wwm-core-ui")) diff --git a/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsPresenter.kt b/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsPresenter.kt index d95a312..166366d 100644 --- a/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsPresenter.kt +++ b/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsPresenter.kt @@ -16,9 +16,8 @@ import dev.omico.wwm.ui.WwmUiComponent import dev.omico.wwm.ui.rememberUpdatedListState import kotlinx.coroutines.launch -context(WwmUiComponent) @Composable -internal fun produceAchievementsUiState(): AchievementsUiState { +internal fun WwmUiComponent.produceAchievementsUiState(): AchievementsUiState { val scope = rememberCoroutineScope() val achievements by achievementsRepository.achievements.collectAsRetainedState(initial = emptyList()) val achievementCategories diff --git a/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsScreen.kt b/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsScreen.kt index bec114b..e81f346 100644 --- a/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsScreen.kt +++ b/wwm/core/feature/achievements/src/commonMain/kotlin/dev/omico/wwm/feature/achievements/AchievementsScreen.kt @@ -26,9 +26,7 @@ fun Circuit.Builder.addAchievementsFeature(): Circuit.Builder = } addPresenter { _, _, _ -> presenterOf { - with(LocalWwmUiComponent.current) { - produceAchievementsUiState() - } + LocalWwmUiComponent.current.produceAchievementsUiState() } } }