Kotlin and Objective-C use different memory management strategies. Kotlin has a tracing garbage collector, while Objective-C relies on automatic reference counting (ARC). The integration between these ...
Kotlin/Native enables you to consume C and Objective-C libraries, allowing you to use their functionality in Kotlin. A special tool called cinterop takes a C or an Objective-C library and generates ...
You can integrate a Kotlin Multiplatform shared module into your iOS app. For that, you generate an iOS framework from the shared module and then add it as a dependency to the iOS project: It's ...
In this tutorial, you'll learn how to integrate a Kotlin framework from a Kotlin Multiplatform project into a local package using the Swift package manager (SPM). This is a local integration method ...
Lets-Plot for Kotlin (LPK) is a multiplatform plotting library that ports the R's ggplot2 library to Kotlin. LPK brings the feature-rich ggplot2 API to the Kotlin ecosystem, making it suitable for ...
This tutorial demonstrates how to use IntelliJ IDEA to create a command-line application. You'll learn how to create a simple HTTP client that can run natively on specified platforms using ...
In the panel on the left, select New Project. Name the new project and change its location if necessary. Select the Create Git repository checkbox to place the new project under version control. You ...
This tutorial shows you how to write a simple unit test and run it with the Gradle build tool. The example in the tutorial has the kotlin.test library under the hood and runs the test using JUnit.
Kotlin Multiplatform projects support hierarchical source set structures. This means you can arrange a hierarchy of intermediate source sets for sharing the common code among some, but not all, ...
Ranges, Progressions and related top-level and extension functions. Represents a range of floating point numbers. Extends ClosedRange interface providing custom operation lessThanOrEquals for ...
Null safety is a Kotlin feature designed to significantly reduce the risk of null references, also known as The Billion-Dollar Mistake. One of the most common pitfalls in many programming languages, ...