flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
598 stars 40 forks source link

Build Swift for x86 Android (also to support Android Emulator) #250

Closed ephemer closed 4 years ago

ephemer commented 6 years ago

Motivation

At the moment we can only build for armv7a. While this covers the great proportion of Swift devices on the market today, it'd be great to build for x86 devices as well for two main reasons:

Proposed solution

"Somebody" needs to make a PR on Apple's Swift repo adding support for Android x86. I suspect this won't be anywhere near as involved as the original port, but it would be a non-trivial piece of work that as far as I know has not been attempted yet.

Potential alternatives

ephemer commented 5 years ago

An update on this: x86 support is "done". We currently have a toolchain that builds for x86_64 at least, which is enough to support the Android Emulator at full speed. I will leave this Issue open until we update swift-android-toolchain with updated instructions