diff --git a/sample/composeApp/src/androidMain/kotlin/dev/darkokoa/datetimewheelpicker/App.android.kt b/sample/composeApp/src/androidMain/kotlin/dev/darkokoa/datetimewheelpicker/App.android.kt index 18e850b..aad08da 100644 --- a/sample/composeApp/src/androidMain/kotlin/dev/darkokoa/datetimewheelpicker/App.android.kt +++ b/sample/composeApp/src/androidMain/kotlin/dev/darkokoa/datetimewheelpicker/App.android.kt @@ -26,13 +26,3 @@ class AppActivity : ComponentActivity() { } } } - -internal actual fun openUrl(url: String?) { - val uri = url?.let { Uri.parse(it) } ?: return - val intent = Intent().apply { - action = Intent.ACTION_VIEW - data = uri - addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - } - AndroidApp.INSTANCE.startActivity(intent) -} \ No newline at end of file diff --git a/sample/composeApp/src/commonMain/kotlin/dev/darkokoa/datetimewheelpicker/App.kt b/sample/composeApp/src/commonMain/kotlin/dev/darkokoa/datetimewheelpicker/App.kt index f3c4644..7c5de84 100644 --- a/sample/composeApp/src/commonMain/kotlin/dev/darkokoa/datetimewheelpicker/App.kt +++ b/sample/composeApp/src/commonMain/kotlin/dev/darkokoa/datetimewheelpicker/App.kt @@ -67,5 +67,3 @@ internal fun App() = AppTheme { } } } - -internal expect fun openUrl(url: String?) \ No newline at end of file diff --git a/sample/composeApp/src/iosMain/kotlin/dev/darkokoa/datetimewheelpicker/App.ios.kt b/sample/composeApp/src/iosMain/kotlin/dev/darkokoa/datetimewheelpicker/App.ios.kt deleted file mode 100644 index 740b3c1..0000000 --- a/sample/composeApp/src/iosMain/kotlin/dev/darkokoa/datetimewheelpicker/App.ios.kt +++ /dev/null @@ -1,9 +0,0 @@ -package dev.darkokoa.datetimewheelpicker - -import platform.Foundation.NSURL -import platform.UIKit.UIApplication - -internal actual fun openUrl(url: String?) { - val nsUrl = url?.let { NSURL.URLWithString(it) } ?: return - UIApplication.sharedApplication.openURL(nsUrl) -} \ No newline at end of file diff --git a/sample/composeApp/src/jsMain/kotlin/dev/darkokoa/datetimewheelpicker/App.js.kt b/sample/composeApp/src/jsMain/kotlin/dev/darkokoa/datetimewheelpicker/App.js.kt deleted file mode 100644 index 9a3fafa..0000000 --- a/sample/composeApp/src/jsMain/kotlin/dev/darkokoa/datetimewheelpicker/App.js.kt +++ /dev/null @@ -1,7 +0,0 @@ -package dev.darkokoa.datetimewheelpicker - -import kotlinx.browser.window - -internal actual fun openUrl(url: String?) { - url?.let { window.open(it) } -} \ No newline at end of file diff --git a/sample/composeApp/src/jvmMain/kotlin/dev/darkokoa/datetimewheelpicker/App.jvm.kt b/sample/composeApp/src/jvmMain/kotlin/dev/darkokoa/datetimewheelpicker/App.jvm.kt deleted file mode 100644 index 96e2cd2..0000000 --- a/sample/composeApp/src/jvmMain/kotlin/dev/darkokoa/datetimewheelpicker/App.jvm.kt +++ /dev/null @@ -1,9 +0,0 @@ -package dev.darkokoa.datetimewheelpicker - -import java.awt.Desktop -import java.net.URI - -internal actual fun openUrl(url: String?) { - val uri = url?.let { URI.create(it) } ?: return - Desktop.getDesktop().browse(uri) -} \ No newline at end of file