This project is for learning purposes about how to build a basic "Note" application
using Kotlin Multiplatform Project (Android / iOS).
To be able to compile and run the project, you must check you have the necessary tools installed. Also, to write iOS-specific code and run an iOS application on a simulated or real device, you'll need a Mac with macOS.
- Android Studio
- XCode 1
- JDK (version 11 minimum), check with
java -version
command (Terminal) - Kotlin Multiplatform Mobile plugin installed (inside Android Studio)2
- Kotlin plugin (inside Android Studio)3
- Command line (Terminal) : Make sure you have all the necessary tools installed:
- command not found: brew — install Homebrew.
- command not found: java — install Java.
(Homebrew is required)
- Install KDoktor using Homebrew
brew install kdoctor
-
call kdoctor fomr the Terminal (console)
-
if KDoctor diagnoses any problems while checking your environment, review the output for issues and possible solutions
You may ignore KDoctor's warnings regarding the CocoaPods installation :
In this project, you will use a different iOS framework distribution option which does NOT involved CocoaPods usage.
Footnotes
-
Make sure that you have Xcode installed Launch Xcode in a separate window to accept its license terms and allow it to perform some necessary initial tasks. In Xcode, select
Settings/Preferences | Locations
. In the Command Line Tools field, select your Xcode. ↩ -
In Android Studio, select
Settings/Preferences | Plugins
, searchMarketplace for Kotlin Multiplatform Mobile
, and then install it. ↩ -
Should be already installed in Android Studio but you might need to update the plugin : on the Android Studio welcome screen, select
Plugins | Installed
. ClickUpdate
next to Kotlin. You can also check the Kotlin version inTools | Kotlin | Configure Kotlin Plugin Updates
. ↩