AndroidKit SDK release

I've been maintaining a Swift library at PureSwift/Android since 2018 which uses the Java Native Interface to interact with the Android SDK from Swift and develop Android apps in Swift. With the release of Apple's JavaKit, I've eliminated the manually written JNI boilerplate code, and created a new library target named AndroidKit. AndroidKit is an umbrella framework that exports various components of the Android SDK into Swift (.e.g AndroidOS, AndroidContent, AndroidView, AndroidWidget). The code is partially code generated, with manual fixes applied where necessary. The majority of the Android SDK is exported to Swift, with the exception of hardware components (Camera, Bluetooth, NFC) which will have their own repositories. The repository includes an example app to get up and running with Swift on Android.

37 Likes

It's really great to hear JavaKit's working well for you already! Thank you for your quick adoption and update!

We'll keep an eye on this, thank you for your work and sharing the progress!

10 Likes

Heavy! Great to see looper (and main executor!) and logging support.

PS. Saw that you’d adapted some of my AndroidLooper code, I didn’t check to see how much, it’s totally ok of course – but if you aren’t going to include the original copyright notice please just reach out in advance next time. No worries though :upside_down_face:

1 Like