Apple Previews SDK for Building Android Apps with Swift
Briefly

Apple Previews SDK for Building Android Apps with Swift
"At its core, the Swift SDK for Android consists of a Swift toolchain tailored for the Android platform, i.e., the compiler and an implementation of the Swift standard library running on Android, along with a collection of bindings that provide access to Android APIs from Swift. The Swift toolchain, that uses the swift-java-project for Java/Swift interoperability, can create shared objects that are linked into an .apk archive and accessed through the JNI."
"Instead of committing to a single UI framework, the team behind it will support existing ones, specifically Android's native toolkits like Jetpack Compose and the classical XML-based system, Flutter's UI engine, as well as third-party bridging solutions like Skip. Another possible approach, not explicitly mentioned by the Swift Android team is to implement the UI in Swift using OpenGL, Vulkan, or other rendering engines, and then use a NativeActivity to integrate it in an Android app."
The Swift SDK for Android is available as a nightly preview build that enables porting Swift packages to Android and sharing code across platforms. Over 25% of packages in the Swift Package Index can already be compiled for Android. The SDK includes a Swift toolchain, an implementation of the Swift standard library for Android, and bindings to Android APIs. The toolchain leverages swift-java-project for Java/Swift interoperability and can produce shared objects linked into an .apk and accessed via JNI. UI support is framework-agnostic, with planned compatibility for Jetpack Compose, XML layouts, Flutter's engine, bridging solutions like Skip, and alternatives such as SwiftCrossUI.
Read at InfoQ
Unable to calculate read time
[
|
]