diff --git a/examples/imageviewer/iosApp/Configuration/Config.xcconfig b/examples/imageviewer/iosApp/Configuration/Config.xcconfig index 98f7be4528..6234dc9e5b 100644 --- a/examples/imageviewer/iosApp/Configuration/Config.xcconfig +++ b/examples/imageviewer/iosApp/Configuration/Config.xcconfig @@ -1,3 +1,3 @@ TEAM_ID= BUNDLE_ID=org.jetbrains.Imageviewer -APP_NAME=Imageviewer +APP_NAME=My Memories diff --git a/examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt b/examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt index f196de35cf..10b3af0a2a 100644 --- a/examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt +++ b/examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt @@ -1,3 +1,5 @@ package example.imageviewer actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN + +actual fun getCurrentPlatform(): String = "Android" \ No newline at end of file diff --git a/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt b/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt index 535d77b4cf..bac76aaad3 100644 --- a/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt +++ b/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt @@ -7,6 +7,8 @@ enum class AvailableLanguages { expect fun getCurrentLanguage(): AvailableLanguages +expect fun getCurrentPlatform(): String + private object EnglishLocalization : Localization { override val appName = "My Memories" override val picture = "Picture:" @@ -15,8 +17,9 @@ private object EnglishLocalization : Localization { override val addPhoto = "Add a photo" override val kotlinConfName = "KotlinConf 2023 🎉" override val kotlinConfDescription = """ - This photo was taken during KotlinConf 2023! 🎊 - Have a fun with Kotlin and Compose Multiplatform 🥳 + This photo was taken during KotlinConf 2023 using #ComposeMultiplatform running on ${getCurrentPlatform()}! 🎊 + Let's build some stunning UIs! 🥳 + https://jb.gg/compose """.trimIndent() override val newPhotoName = "New Memory" override val newPhotoDescription = "May amazing things happen to you! 🙂" diff --git a/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt b/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt index a1b305074e..20924c3b7d 100644 --- a/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt +++ b/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt @@ -5,3 +5,5 @@ actual fun getCurrentLanguage(): AvailableLanguages = "de" -> AvailableLanguages.DE else -> AvailableLanguages.EN } + +actual fun getCurrentPlatform(): String = "Desktop" diff --git a/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt b/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt index f196de35cf..a342d5c3fa 100644 --- a/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt +++ b/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt @@ -1,3 +1,5 @@ package example.imageviewer actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN + +actual fun getCurrentPlatform(): String = "iOS"