![]() Now that you have the project running, it’s helpful to tour some elements of the project. Nice! You’ve just run your first iOS app from Kotlin, without any Objective-C or Swift source code in this project. When the download is done and the build completes, Xcode will start the simulator and you will be greeted by a basic Hello screen. Subsequent builds of the app will be much faster. Depending on your network speed, this can take 5-20 minutes or so. Since this is the first time running the app, the Kotlin/Native compiler, which is named Konan, will download itself. Once you’ve downloaded the materials, open the starter project in Xcode by double-clicking on the MeteoriteFinder.xcodeproj file, and then run the app by clicking on the triangle button, shown below: The available versions may be higher by the time you read this tutorial.Īs a first step, download the materials for this tutorial by clicking the Download materials button at the top or bottom of the page. Prerequisites: This tutorial utilizes Kotlin/Native 0.9.3, Kotlin 1.3.0, Xcode 10.0 (CLI) and iOS 12.0. ![]() We’ll keep the references to iOS classes and frameworks light in this tutorial, giving you just a taste of the possibilities without overwhelming you if you’ve never developed for iOS. The entire app will focus on using Kotlin/Native. In this tutorial, you will build a map-based iOS app that displays where meteorites have fallen to earth. This means that Kotlin developers can transfer their development skills over to creating iOS apps (assuming you have a spare macOS device lying around). Kotlin/Native comes with a friendly API for the iOS platform, giving developers the ability to call pretty much all of the Cocoa Touch frameworks. Kotlin/Native for C and iOS Development.But Java developers are not the only ones who can benefit from the language Kotlin has spread its tentacles outside the JVM with two other variations: Having roughly 100% interoperability with Java allows developers to work without giving up the rich ecosystem of libraries and tools. Kotlin has seen tremendous growth on the Java Virtual Machine (JVM).
0 Comments
Leave a Reply. |