From 7913a8f21b706bc6d909eb5e63166982cf5114c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Fri, 25 Jul 2025 11:55:36 +0200 Subject: [PATCH 1/3] Create README.md --- Fruitties/README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Fruitties/README.md diff --git a/Fruitties/README.md b/Fruitties/README.md new file mode 100644 index 0000000..a6d0ab7 --- /dev/null +++ b/Fruitties/README.md @@ -0,0 +1,65 @@ +# Fruitties +Fruitties is a sample app using Kotlin Multiplatform built for Android with Jetpack Compose and iOS with SwiftUI. + +iOS screenshot +Android  screenshot + +## Multiplatform Jetpack Libraries +This project integrates several Jetpack libraries that are KMP compatible: + +- [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel) +- [Room](https://developer.android.com/kotlin/multiplatform/room) +- [DataStore](https://developer.android.com/kotlin/multiplatform/datastore) + +## Running The app + +We recommend installing the [Kotlin Multiplatform Plugin](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform) to Android Studio. +This plugin offers several features to ease the development experience: + +- **New project wizard**: Create a new multiplatform project within the IDE. +- **Preflight checks**: Preflight checks help you configure your environment. +- **Run configurations**: Run, debug, and test applications on both iOS and + Android directly from the IDE. +- **Basic Swift support in the IDE**: Get basic Swift support in the IDE, + including cross-language debugging tools, navigation and quick + documentation. + +### Android + +1. Open the `Fruitties` project in Android Studio +2. Select the `androidApp` run configuration and run the app image + +### iOS + +With the [Kotlin Multiplatform Plugin](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform) installed, you can run the app from Android Studio. + +1. Open the `Fruitties` project in Android Studio +2. Select the `iosApp` run configuration image + + +#### Run with Xcode +Alternatively to running from Android Studio, you can open this project in Xcode and run it from there: + +1. Locate the `iosApp` within the `Fruitties` folder and open it with Finder image +2. Open the `iosApp.xcodeproj` image +3. Build and run the iOS app from Xcode by clicking the Run icon image + + + +## License + +``` +Copyright 2025 The Android Open Source Project + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +``` From eeef7f9c2706c88151bc11d83502515d3c422b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Fri, 25 Jul 2025 11:58:38 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- Fruitties/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Fruitties/README.md b/Fruitties/README.md index a6d0ab7..ffd9695 100644 --- a/Fruitties/README.md +++ b/Fruitties/README.md @@ -2,16 +2,16 @@ Fruitties is a sample app using Kotlin Multiplatform built for Android with Jetpack Compose and iOS with SwiftUI. iOS screenshot -Android  screenshot +Android screenshot -## Multiplatform Jetpack Libraries +## Multiplatform Jetpack Libraries This project integrates several Jetpack libraries that are KMP compatible: - [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel) - [Room](https://developer.android.com/kotlin/multiplatform/room) - [DataStore](https://developer.android.com/kotlin/multiplatform/datastore) -## Running The app +## Running the app We recommend installing the [Kotlin Multiplatform Plugin](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform) to Android Studio. This plugin offers several features to ease the development experience: @@ -38,9 +38,9 @@ With the [Kotlin Multiplatform Plugin](https://plugins.jetbrains.com/plugin/1493 #### Run with Xcode -Alternatively to running from Android Studio, you can open this project in Xcode and run it from there: +Alternatively, you can open this project in Xcode and run it from there: -1. Locate the `iosApp` within the `Fruitties` folder and open it with Finder image +1. Locate the `iosApp` within the `Fruitties` folder and open it with Finder image 2. Open the `iosApp.xcodeproj` image 3. Build and run the iOS app from Xcode by clicking the Run icon image From fd6e3ce8d2bdb01a0911e0a3c87cd457a9680036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Fri, 25 Jul 2025 11:59:35 +0200 Subject: [PATCH 3/3] Update README.md --- Fruitties/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/Fruitties/README.md b/Fruitties/README.md index ffd9695..137b2a4 100644 --- a/Fruitties/README.md +++ b/Fruitties/README.md @@ -36,7 +36,6 @@ With the [Kotlin Multiplatform Plugin](https://plugins.jetbrains.com/plugin/1493 1. Open the `Fruitties` project in Android Studio 2. Select the `iosApp` run configuration image - #### Run with Xcode Alternatively, you can open this project in Xcode and run it from there: @@ -44,8 +43,6 @@ Alternatively, you can open this project in Xcode and run it from there: 2. Open the `iosApp.xcodeproj` image 3. Build and run the iOS app from Xcode by clicking the Run icon image - - ## License ```