HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
swiftlang
swift-android-examples
C2025–2025
swiftlang / swift-android-examples

swift-android-examples

Discover this repository through its Hacker News conversations.

2Distinct people
2Mentions
0Explicit recommenders
571GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2025-10-25 00:22:53 UTC to 2025-10-25 01:27:55 UTC.

012025-10-25 00:00:00 UTC to 2025-10-25 01:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 25, 00:002025-10-25 01:00:00 UTC to 2025-10-25 02:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 25, 01:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Oct 25, 00:002025-10-25 00:00:00 UTC2025-10-25 01:00:00 UTC101
Oct 25, 01:002025-10-25 01:00:00 UTC2025-10-25 02:00:00 UTC101

What Hacker News says

2 sources
It's worth pointing out that the example you linked with the cdecl is not showcasing the swift-java interoperability but using "raw" JNI patterns as if you would do it with C. This example does showcase the interoperability: https://github.com/swiftlang/swift-android-examples/tree/mai... you don't have to annotate or write any "weird" cdecls or really touch JNI details yourself when using the swift-java interop support https://github.com/swiftlang/swift-java
In The Swift SDK for Android
IMO the implementation (for me at least) is ... terrible. Why reach for this when it's, at the end of the day, just the exact same as NDK work in C++ but in Swift. You have to use Kotlin / Other UI setup anyways (or their fully-native example, use OpenGL to draw the screen[0]), and on top of that statically assign the package path and class name in the Swift code, while making it an external func in the kotlin code[1]. You then also get to deal with the annoyances that come up with native libs. kotlin side: /* * A native method that is implemented by the 'helloswift' native library, * which is packaged with this application. */ external fun stringFromSwift(): String swift side: @_cdecl("Java_org_example_helloswift_MainActivity_stringFromSwift") [0]: https://github.com/swiftlang/swift-android-
Read the rest
In The Swift SDK for Android

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.