r/FlutterDev • u/JadeLuxe • Oct 25 '25
Article [ Removed by moderator ]
/r/FlutterDev/comments/1ofidnw/removed_by_moderator/[removed] — view removed post
0
u/merokotos Oct 25 '25
What’s the core idea allowing this to work ?
4
u/timsneath Oct 25 '25
This combines Swift (with the underlying LLVM toolchain) with the Android NDK, which allows native compilation, and a wrapper package that binds Swift through JNI without you having to do any manual work.
This is a good example to showcase how easy it is: https://github.com/swiftlang/swift-android-examples/tree/main/swift-java-hashing-example
3
u/4udiofeel Oct 25 '25
That Gradle file for the Swift module looks so scary. So many strings. They need to make it 50 lines max, not 200.
3
u/timsneath Oct 25 '25
Yeah, that’s Android’s build system…
0
u/4udiofeel Oct 25 '25
Not really. Nowadays there are convention plugins and version catalogs, to make things cleaner.
What I meant, they should do whatever is necessary to hide most of that build logic behind Gradle tasks or a plugin, create sane defaults etc.
•
u/FlutterDev-ModTeam Oct 25 '25
Hi,
Your post was removed, because your post has no direct or obvious relation with flutter or r/FlutterDev.
Please refer to the sidebar for related subreddits that might fit your content better.
the r/FlutterDev moderation team.
The violated rule was: Rule 1: Must be related to Flutter