Kotlin klib
When published under the same Maven coordinate, Gradle will automatically choose the right artifact depending on the use case js for the old compiler, klib for the new one. Unlike universal (fat) frameworks, you don't need to remove all unnecessary architectures before publishing the application to the App Store. This means that both klib files with Kotlin IR as well as jar files for the default compiler will be generated. kotlin Build XCFrameworksĪll Kotlin Multiplatform projects can use XCFrameworks as an output to gather logic for all the target platforms and architectures in a single bundle. The following snippet creates two executable binaries: debug and release. RELEASE – produces an optimized binary without debug information Inspect the contents of dist/klib/platform/target of the distribution for the details. On Apple platforms, objc library is provided for interoperability with Objective-C. Currently, two build types are available:ĭEBUG – produces a non-optimized binary with debug information Kotlin/Native distribution provides access to OpenGL, zlib and other popular native libraries on applicable platforms. :native:kotlin-klib-commonizer-embeddable. The simplest version doesn't require any additional parameters and creates one binary for each build type. classpath(:kotlin-build-gradle-plugin:0.0.17).
MacOS, iOS, watchOS, and tvOS targets only
All native targets, except for WebAssembly