Skip to content

Commit 9bffa56

Browse files
committed
Cut down code sample and some more tweaks
1 parent 8e75262 commit 9bffa56

File tree

1 file changed

+15
-30
lines changed

1 file changed

+15
-30
lines changed

_posts/2025-12-18-exploring-the-swift-sdk-for-android.md

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ author: android-workgroup
77
category: "Developer Tools"
88
---
99

10-
Since the announcement of [the preview Swift SDK for Android a couple months ago](/blog/nightly-swift-sdk-for-android/),
10+
Since the announcement of [the preview Swift SDK for Android](/blog/nightly-swift-sdk-for-android/),
1111
the Android workgroup has seen a lot of questions about how it works and what's next.
1212
Please read on for some answers to common questions about the technology and its
13-
future.
13+
future, and try out the new Swift 6.3 SDK nightly previews.
1414

1515
## How Swift works on Android
1616

@@ -29,10 +29,10 @@ Swift from Java or go the other way using the Java Native Interface (JNI), which
2929
allows Swift to seamlessly integrate with the Android platform.
3030

3131
The [`jextract` tool gained a JNI mode this summer](/blog/gsoc-2025-showcase-swift-java/):
32-
you can now watch its author Mads Odgaard's [Server Side Swift Conference talk from a couple months ago](https://www.youtube.com/watch?v=tOH6V1IvTAc)
33-
and try out [his new weather example app in the Android examples repository](
32+
you can watch its author Mads Odgaard's [Server Side Swift Conference talk from a couple months ago](https://www.youtube.com/watch?v=tOH6V1IvTAc)
33+
and try out [the new weather example app he submitted in the Android examples repository](
3434
https://github.com/swiftlang/swift-android-examples/pull/25). (editor: linking his pull
35-
for now, we'll swap in the link to the final directory once that example is merged later tonight PST)
35+
for now, we'll swap in the link to the final directory once that example is merged by morning PST)
3636

3737
## Swift on Android in production
3838

@@ -61,7 +61,7 @@ try building your Swift packages with the Swift SDK for Android, and work is und
6161
[run your tests in an Android emulator](https://github.com/swiftlang/github-workflows/pull/215)
6262
too.
6363

64-
We are actively looking to onboard more contributors and have set up [a video call this
64+
We are looking to onboard more contributors and have set up [a video call this
6565
weekend to discuss](https://forums.swift.org/t/swift-on-android-new-contributors-call/83729).
6666
We hope to make these contributor calls a recurring event moving forward, as more people
6767
pitch in to improve these Swift tools themselves.
@@ -76,9 +76,8 @@ curate a list of cross-platform UI tools from the community.
7676

7777
See [our recent post in the Swift forums](https://forums.swift.org/t/swift-gui-toolkits-for-android/83337)
7878
that lists a handful of popular and in-progress options a preliminary search found, but
79-
which we have not yet validated regarding what their authors claim. We will work with
80-
those devs in the coming months to add more info on using their GUI tools with the Swift
81-
SDK for Android.
79+
which we have not yet validated regarding what their authors claim. We plan to add
80+
more info on using compatible GUI tools with the Swift SDK for Android in the coming months.
8281

8382
## Android API versioning
8483

@@ -99,44 +98,30 @@ func backtrace() {
9998
}
10099
}
101100

102-
@available(Android 35, *)
103-
func hello35() {
104-
print("Hello from API 35")
105-
}
106-
107-
@available(Android 27, *)
108-
func hello27() {
109-
print("Hello, world!")
110-
}
111-
112101
@main
113102
struct ExecutableDemo {
114-
115103
static func main() {
116104
#if os(Android)
117-
hello27()
105+
print("Hello from Android API 28 or later")
118106
if #available(Android 33, *) {
107+
// The following code is only run on Android 33+ devices.
119108
backtrace()
120109
print("Hello from Android API 33+")
121-
if #available(Android 35, *) {
122-
hello35()
123-
}
124110
}
125111
#endif
126112
}
127113
}
128114
```
129-
(editor: should we slim this down?)
130-
Try this new feature out on Android and let us know how it is working for you.
115+
Try this new feature on Android and let us know how it works for you.
131116

132117
## Learn from the community
133118

134119
Those using Swift on Android for many years have been sharing their experiences,
135-
as path-breakers like [Readdle](https://readdle.com/blog/swift-for-android-our-experience-and-tools)
120+
as founding contributors like [Readdle](https://readdle.com/blog/swift-for-android-our-experience-and-tools)
136121
and [Flowkey](https://medium.com/@ephemer/why-we-put-an-app-in-the-android-play-store-using-swift-96ac87c88dfc)
137122
have written about their work for the last decade.
138123

139-
The Left Bit's Pierluigi Cifani [wrote about their experiences recently](https://forums.swift.org/t/thoughts-on-swift-for-android/80961),
124+
The Left Bit's Pierluigi Cifani [recently wrote about their experiences](https://forums.swift.org/t/thoughts-on-swift-for-android/80961),
140125
gave [a great talk at NSSpain 2025 a couple months ago](https://youtu.be/EIGl6GOo210),
141126
and was [interviewed by Swift Toolkit last month](https://www.swifttoolkit.dev/posts/dc-pier).
142127

@@ -149,9 +134,9 @@ to Java instead. (editor: not sure we will get this in, but might be a good exam
149134
Finally, we are happy to announce that [an official Swift 6.3 SDK CI](https://ci.swift.org/job/oss-swift-6.3-package-swift-sdk-for-android/)
150135
has been set up, and it is producing [nightly preview releases of the Swift 6.3 SDK for Android](/install/macos/#swift-sdk-buindles-dev).
151136
Please follow the [Getting Started guide](/documentation/articles/swift-sdk-for-android-getting-started.html)
152-
to install and use it. (editor: I will update that guide by 3 AM Thursday PST with 6.3 SDK info)
137+
to install and use it. (editor: I will update that guide by 7 AM Thursday PST with 6.3 SDK info)
153138

154139
Swift on Android has been a community effort for the last decade, growing
155-
from the initial patch to apps in production and an active group of developers.
140+
from that initial patch to apps in production and an active group of developers.
156141
Try out the new preview releases of the Swift 6.3 SDK for Android and help us
157142
make it even better!

0 commit comments

Comments
 (0)