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

Removed core RCTConvert CoreLocation Libraries as well as reference i… #28300

Conversation

maschad
Copy link
Contributor

@maschad maschad commented Mar 13, 2020

Summary

This PR is to address #28200

Even though GeoLocation was extracted from the Core, there are still libraries i.e. the CoreLocation.h library included which cause Apple to reject Apps, as mentioned here.

This removed all references to the CoreLocation library that where remaining.

Changelog

[iOS] [Removed] - Message

Test Plan

  • Flow check passes.
  • RNTest built successfully.

@maschad maschad requested a review from shergin as a code owner March 13, 2020 03:09
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 13, 2020
@analysis-bot
Copy link

analysis-bot commented Mar 13, 2020

RNTester.app (iOS): 10727424 bytes

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@shergin
Copy link
Contributor

shergin commented Mar 14, 2020

This file is still being used by some deps. One of them (which is blocking landing internally) is this one: https://github.com/react-native-community/react-native-maps/blob/72b0f77e31d18959e91acb036d5f91ab46e11ef2/lib/ios/AirMaps/AIRMapCircleManager.m#L14

I think we should copy the functionally/code there. And then try to remove it from here one more time.

@maschad Can you do it?

@maschad
Copy link
Contributor Author

maschad commented Mar 14, 2020

Thanks for the recommendation @shergin I re-added them, but my only concern is that Apple's static analyzer may still pick up the CoreLocation files and then trigger a warning.

@shergin
Copy link
Contributor

shergin commented Mar 16, 2020

@maschad Nonono, I meant we need to move/copy those files to that library to break the dependency the core in this regard. After we do that, we can safely remove them from the core.

I will land this one as is. But I would appreciate if you can fix that library and then open another PR that will finally delete the files from the core. 🙏

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @maschad in bcf2a71.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 16, 2020
@maschad
Copy link
Contributor Author

maschad commented Mar 16, 2020

@shergin silly me, I should have realized that 😅. Thanks for clarifying anyways, I can definitely do that 👍🏿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications. Type: Removal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants