You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025-11-21-exploring-the-swift-sdk-for-android.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,15 @@ performance, safety, and usability. To enable that, Swift apps must bundle a nat
19
19
runtime for Android that implements many of its features, including its standard library and
20
20
core libraries like Dispatch and [Foundation](/blog/foundation-preview-now-available/).
21
21
22
-
However, since most Android APIs are only made available through Java and Kotlin
23
-
in the Android Runtime (ART), a version of the Java Virtual Machine (JVM)
24
-
optimized for mobile, we need to use the Java Native Interface (JNI) and write
25
-
bindings both to call Swift from Java and go the other way. That is where the
26
-
swift-java project's `jextract` tool and its [new support for generating such
27
-
JNI bindings for you](/blog/gsoc-2025-showcase-swift-java/) comes in. Please
28
-
watch its author Mads Odgaard's [Server-Side Swift Conference talk from last month](https://www.youtube.com/watch?v=tOH6V1IvTAc)
29
-
and try out the tool for yourself with [this example Android app that he put together](https://github.com/swiftlang/swift-android-examples/tree/main/hello-swift-java).
22
+
However, since most Android APIs are only made available through Java and Kotlin,
23
+
Swift must call into the Android Runtime (ART). That is where the [Java interoperability
24
+
project's](https://github.com/swiftlang/swift-java)`jextract` and `wrap-java`
25
+
tools come in. These tools automatically create bindings that enable you to call
26
+
Swift from Java or go the other way using the Java Native Interface (JNI), which
27
+
allows Swift to seamlessly integrate with the Android platform. The [`jextract`
28
+
tool gained a JNI mode recently](/blog/gsoc-2025-showcase-swift-java/):
29
+
please watch its author Mads Odgaard's [Server Side Swift Conference talk from last month](https://www.youtube.com/watch?v=tOH6V1IvTAc).
30
+
You can also check out [his hello-swift example in the Android examples repository](https://github.com/swiftlang/swift-android-examples/tree/main/hello-swift-java).
0 commit comments