Port to Android#250
Conversation
|
Nice - thanks for the PR. If we add Android as supported platform, I'd like to add a GitHub workflow for that. |
I ran it in the Termux app on an Android AArch64 tablet, using the packaged Swift 5.6.2 compiler in the app.
You could do that with the Android x86_64 SDK that I provide, which I use to run a daily CI that cross-compiles several Swift packages and runs their tests on the Android x86_64 emulator. While I have my CI download the various Swift compilers and build the SDK from source, you could simply use the Swift release compiler and NDK installed in the github Actions environment and download my SDK instead, as laid out in my doc. I don't think that's necessary, but it is doable. |
|
Anything holding this up? |
|
Merged - Thanks for contributing Android support! |
Changes proposed in this PR
FILEPointertype alias, asFILEis an opaque struct since Android 7.mode_tinFIleManager+ZIPfor Android armv7, wheremode_tis narrower thanst_mode.Tests performed
I ran
swift teston both linux x86_64 and Android AArch64 with this pull and all tests passed.Further info for the reviewer
I used this pull when porting CookCLI as a package for Android, termux/termux-packages#11081. I used a similar typealias when porting swiftlang/swift-tools-support-core#243 for Android last year.
Open Issues
None