Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Foundation: Process is unavailable on android #2356

Conversation

compnerd
Copy link
Member

Android does not provide Process (NSTask) like iOS. Do not reference it
in such situations.

@compnerd
Copy link
Member Author

CC: @millenomi

@compnerd
Copy link
Member Author

@swift-ci please test

@finagolfin
Copy link
Member

Or you could get #2228 merged, after which the Android portion of this pull is unnecessary.

(UnitVolume.self, "NSUnitVolume"),
(UnitTemperature.self, "NSUnitTemperature"),
]
#if !(os(iOS) || os(Android)
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing trailing )

Copy link
Member Author

Choose a reason for hiding this comment

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

Clearly pulling changes between two repositories is a great idea 🙄

@drodriguez
Copy link
Contributor

I would prefer for someone to give another review to #2228 instead of merging this. In any case, after the change proposed by Simon, this would work.

@compnerd compnerd force-pushed the i-am-currently-unavailable-please-leave-a-message branch from 109ad30 to df7968e Compare June 16, 2019 18:23
@compnerd
Copy link
Member Author

Well, for the iOS target, this will still be required. I think that if that is finalised and merged first, then I can remove the android clause, otherwise, if this gets merged first, you could just remove the android clause after a rebase.

@compnerd
Copy link
Member Author

@swift-ci please test

(UnitTemperature.self, "NSUnitTemperature"),
]
internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: String)] = {
let map: [(AnyClass, String)] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

I thing the compiler is telling you that you have to change this to var to be able to append later.

Copy link
Member Author

Choose a reason for hiding this comment

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

haha, yeah, oops

Android does not provide Process (NSTask) like iOS.  Do not reference it
in such situations.
@compnerd compnerd force-pushed the i-am-currently-unavailable-please-leave-a-message branch from df7968e to 826a849 Compare June 17, 2019 23:19
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit f2c4df9 into swiftlang:master Jun 18, 2019
@compnerd compnerd deleted the i-am-currently-unavailable-please-leave-a-message branch June 18, 2019 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants