Skip to content

Add basic platform support for Android. #653

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Aug 29, 2024

This PR seeks out all the nooks and crannies where we have platform-specific code or logic and adds Android. In most cases, it's as simple as changing os(Linux) to os(Linux) || os(Android) but there are a few spots where they diverge. The PR should be mostly self-explanatory.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Co-authored-by: Saleem Abdulrasool compnerd@compnerd.org

This PR seeks out all the nooks and crannies where we have platform-specific
code or logic and adds Android. In most cases, it's as simple as changing
`os(Linux)` to `os(Linux) || os(Android)` but there are a few spots where they
diverge. The PR should be _mostly_ self-explanatory.

Co-authored by: Saleem Abdulrasool <compnerd@compnerd.org>
@grynspan grynspan added enhancement New feature or request linux 🐧 Linux support (all distros) build 🧱 Affects the project's build configuration or process swift-6.1 android 🤖 Android support labels Aug 29, 2024
@grynspan grynspan self-assigned this Aug 29, 2024
@grynspan grynspan requested a review from compnerd August 29, 2024 20:48
@grynspan
Copy link
Contributor Author

@swift-ci test

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Should see what the requirements for backtrace are I suppose.

@grynspan
Copy link
Contributor Author

Would be great if you can confirm this builds and (ideally) runs before I merge it. I am not set up to verify it on Android at this time.

@grynspan
Copy link
Contributor Author

@finagolfin We could use your input as well!

@finagolfin
Copy link
Member

I've never built this repo for Android, in part because it didn't have any snapshot tags till a couple days ago, so don't know anything about it. If and when I do build it, I'll chime in then.

@grynspan
Copy link
Contributor Author

We'll go ahead and move forward with this PR—if you run into issues, please let us know and we can open subsequent PRs to resolve them.

(Waiting for core team review as well.)

@grynspan grynspan merged commit f2c8ee1 into main Aug 30, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/android-all-the-things branch August 30, 2024 17:19
@grynspan grynspan added this to the Swift 6.1 milestone Sep 10, 2024
@grynspan
Copy link
Contributor Author

@compnerd Note if you need this fix in Swift 6.0.1, please clone the PR and nominate it using the procedure outlined here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
android 🤖 Android support build 🧱 Affects the project's build configuration or process enhancement New feature or request linux 🐧 Linux support (all distros)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants