3 ms·
You can't just take a Swift app for iOS and compile it for Android, sure. But this could be useful for people who enjoy Swift, and want to reuse blocks of logi
by sspiff 12y ago
You can't just take a Swift app for iOS and compile it for Android, sure.
But this could be useful for people who enjoy Swift, and want to reuse blocks of logic from their iOS app to an Android port.
I'm wondering though, I thought Swift compiled down to code that uses things like the Foundation framework (NSString etc), which would also be missing on Android. It would be hard to do anything without these classes, wouldn't it?
- pavlov 12y agoThere are several independent open-source implementations of Foundation like GNUStep and Cocotron. Once you have the Obj-C runtime and cross-compiler working, porting either of those to Android should be fairly simple... But I suspect that Swift may have dependencies on new or recent Foundation features which could be missing from the open-source versions (for understandable reasons, they lag behind Apple by several years).
- WoodenChair 12y agoThese guys already did port those frameworks to Android: http://www.apportable.com http://www.apportable.com
- pjmlp 12y agoIn what concerns GNUStep, has it improved the situation of a partially supported NeXTStep and Cocoa around 10.4?