Skip to content

Commit 9c996ab

Browse files
committed
library: Add support ios BackHandler
1 parent 36aa9f2 commit 9c996ab

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composeApp/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ compose.desktop {
168168

169169
buildTypes.release.proguard {
170170
configurationFiles.from("proguard-rules-jvm.pro")
171-
version.set("7.6.0")
171+
version.set("7.6.1")
172172
optimize.set(false)
173173
}
174174

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ android-compileSdk = "35"
44
android-targetSdk = "35"
55

66
androidGradlePlugin = "8.8.0"
7-
androidx-activity-compose = "1.9.3"
7+
androidx-activity-compose = "1.10.0"
88
androidx-window = "1.3.0"
9-
compose-plugin = "1.7.3"
9+
compose-plugin = "1.8.0-alpha03"
1010
dokka = "2.0.0"
1111
kotlin = "2.1.10"
1212

miuix/src/iosMain/kotlin/top/yukonga/miuix/kmp/utils/Utils.ios.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package top.yukonga.miuix.kmp.utils
22

33
import androidx.compose.runtime.Composable
4+
import androidx.compose.ui.ExperimentalComposeUiApi
45
import androidx.compose.ui.platform.LocalDensity
56
import androidx.compose.ui.unit.Dp
67
import androidx.compose.ui.unit.dp
@@ -24,9 +25,11 @@ actual fun platform(): Platform = Platform.IOS
2425
@Composable
2526
actual fun getRoundedCorner(): Dp = 0.dp
2627

28+
@OptIn(ExperimentalComposeUiApi::class)
2729
@Composable
2830
actual fun BackHandler(
2931
enabled: Boolean,
3032
onBack: () -> Unit
3133
) {
34+
androidx.compose.ui.backhandler.BackHandler(enabled, onBack)
3235
}

0 commit comments

Comments
 (0)