Minesweepers implemented using Compose Multiplatform for Android, iOS and Desktop.

Minesweeper in Compose Multiplatform

License
Contributor Covenant

This is a Minesweepers implementation written using Kotlin Multiplatform and Compose Multiplatform for Android, Desktop and iOS(experimental).

TargetStatus
Android
Debian
iOS
Mac
Windows

This project was started by using the following resources as reference:

AndroidDesktopiOS

Android

To run on Android, use the androidApp run configuration in Android Studio or use Gradle:

./gradlew installDebug – install Android application on an Android device (on a real device or on an emulator)

Desktop(Debian/Mac/Windows)

This template contains desktopApp run configuration that you can use to run the desktop target in Android Studio or IntelliJ IDEA.

Useful Gradle tasks:

  • ./gradlew run – run application
  • ./gradlew package – package native distribution into build/compose/binaries

iOS

Make sure you have set up your environment for mobile development with Kotlin Multiplatform. A detailed guide on how to set up your environment is available in the Kotlin Multiplatform documentation.

To work with the iOS target you need:

Before opening the project in Android Studio, make sure that your environment is set up for iOS and Kotlin Multiplatform development. Use kdoctor to ensure your development environment is configured correctly.

Running on an iOS simulator

Once you have configured your environment correctly, you will be able to select which iOS simulator to run your application in Android Studio on by modifying the iosApp run configuration.

Select “Run” | “Edit Configurations…” and navigate to the “iOS Application” | “iosApp” run configuration. In the “Execution target” drop-down, select your target device.

Running on a real iOS device

For instructions please refer to the JetBrains instructions in the template repo.

GitHub

View Github

Leave a Reply

Your email address will not be published. Required fields are marked *