diff --git a/sample/src/androidMain/kotlin/Platform.android.kt b/sample/src/androidMain/kotlin/Platform.android.kt index 4f3ea05..1d3e065 100644 --- a/sample/src/androidMain/kotlin/Platform.android.kt +++ b/sample/src/androidMain/kotlin/Platform.android.kt @@ -1,6 +1,6 @@ import android.os.Build -class AndroidPlatform : Platform { +private class AndroidPlatform : Platform { override val name: String = "Android ${Build.VERSION.SDK_INT}" } diff --git a/sample/src/androidMain/kotlin/be/digitalia/compose/htmlconverter/sample/MainActivity.kt b/sample/src/androidMain/kotlin/be/digitalia/compose/htmlconverter/sample/MainActivity.kt index b625d49..a913c02 100644 --- a/sample/src/androidMain/kotlin/be/digitalia/compose/htmlconverter/sample/MainActivity.kt +++ b/sample/src/androidMain/kotlin/be/digitalia/compose/htmlconverter/sample/MainActivity.kt @@ -21,6 +21,6 @@ class MainActivity : ComponentActivity() { @Preview(showSystemUi = true) @Composable -fun AppAndroidPreview() { +private fun AppAndroidPreview() { App() } \ No newline at end of file diff --git a/sample/src/desktopMain/kotlin/Platform.jvm.kt b/sample/src/desktopMain/kotlin/Platform.jvm.kt index f5e7e49..75bfd3f 100644 --- a/sample/src/desktopMain/kotlin/Platform.jvm.kt +++ b/sample/src/desktopMain/kotlin/Platform.jvm.kt @@ -1,4 +1,4 @@ -class JVMPlatform: Platform { +private class JVMPlatform: Platform { override val name: String = "Java ${System.getProperty("java.version")}" } diff --git a/sample/src/desktopMain/kotlin/main.kt b/sample/src/desktopMain/kotlin/main.kt index 97fb974..8152bd8 100644 --- a/sample/src/desktopMain/kotlin/main.kt +++ b/sample/src/desktopMain/kotlin/main.kt @@ -11,6 +11,6 @@ fun main() = application { @Preview @Composable -fun AppDesktopPreview() { +private fun AppDesktopPreview() { App() } \ No newline at end of file diff --git a/sample/src/iosMain/kotlin/Platform.ios.kt b/sample/src/iosMain/kotlin/Platform.ios.kt index 6b9f070..5f4464b 100644 --- a/sample/src/iosMain/kotlin/Platform.ios.kt +++ b/sample/src/iosMain/kotlin/Platform.ios.kt @@ -1,6 +1,6 @@ import platform.UIKit.UIDevice -class IOSPlatform: Platform { +private class IOSPlatform: Platform { override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion }