Create your 1st cross-platform application with Kotlin
What is JetBrains Fleet?
For this, we'll be using JetBrains Fleet as our code editor. It seeks to provide an improved experience for Kotlin Multiplatform users. As a first step, Fleet brings Kotlin Multiplatform to macOS.
Fleet makes it easy to open and manage multiplatform projects that are intended for desktop, web, iOS, and Android platforms. Fleet's Smart Mode chooses the right code-processing engine for you automatically.
Download JetBrains Fleet, Android, Xcode
Step1: Install JetBrains Toolbox app.
Step2: Click Install next to the Fleet icon.
Step3: Verify the JDK version you are using. Fleet currently needs the Java Development Kit 17.0+ version of Java.
java -version
Step4: Install Android Studio and Xcode so that you can run your app on Android and iOS simulators.
Step5: Verify the Xcode version you are using. Fleet does not currently support Xcode 15.5+. These are recommendations; if your version of Xcode is 15.5 or above, you should be able to run your program. However, certain features may not function properly because of incompatibility.
Create your 1st cross-platform app
Step1: Open the Kotlin Multiplatform wizard.
Step2: Choose "SampleProject" as the project name and "com.example.project" as the project ID under the New project tab.
Step3: Decide which platforms you would like to develop this app for. Choose iOS or Android, for instance.
Step4: For iOS, make sure that the Share UI option is selected.
Step5: Click Download and unpack the resulting archive.
Launch Fleet and run your app
Step1: Launch Fleet
Step2: launch the newly created "SampleProject" in fleet.
Step3: Under the project preflight section, Fleet will automatically verify the setups and requirements and provide the current status.
Step4: Click the play icon at the top of the window.
Comments
Post a Comment