Skip to content

[0.72] Backport changes to help set platform versions in podspecs #2044

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

Merged
merged 3 commits into from
Jan 20, 2024

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Jan 19, 2024

This change is a back port of #2042 to 0.72-stable.

In order to do so, I also had to back port facebook@1b78da8 and facebook@8fa1127 (both changes I made upstream to make it easier to add new platforms to React Native pod specs for React Native macOS 0.73+)

…39570)

Summary:
While merging new commits into React Native macOS, I noticed facebook#39478

I would like to also set `MACOS_DEPLOYMENT_TARGET` in our fork, and thought this slight rename would be something I can do upstream

[Internal] - updateIphoneOSDeploymentTarget -> updateOSDeploymentTarget

Pull Request resolved: facebook#39570

Test Plan: CI should pass

Reviewed By: NickGerleman

Differential Revision: D49514693

Pulled By: ryancat

fbshipit-source-id: b4dafb1f9736d2977510712652cb8097263c489d
Summary:

One of the most common diffs we have in React Native macOS is simply extending the `platforms` key Inside every pod spec to include macOS. React Native tvOS does the same to add tvOS. In the future, React Native may support visionOS, at which point we do the same thing again. Let's define a `min_supported_versions` hash that can be overridden at one place that is extensible to more platforms, instead of just specifying `min_ios_version_supported`.

Note: In doing this change, I have set it that `React-Hermes.podspec` doesn't build for macOS anymore. I think this is safe, since anyone using Hermes on macOS was probably using React Native macOS where we already have a diff to add macOS back?

[IOS] [CHANGED] - Add min_supported_versions helper to cocoa pods scripts

Pull Request resolved: facebook#39310

Test Plan: CI should pass.

Reviewed By: NickGerleman

Differential Revision: D49014109

Pulled By: dmytrorykun

fbshipit-source-id: d44fc7b750c70cc263a2c89502c022a0db9a4771
@Saadnajmi Saadnajmi requested a review from a team as a code owner January 19, 2024 23:22
@Saadnajmi Saadnajmi changed the title [0.72] Backport changes to help set platform versions in pod specs [0.72] Backport changes to help set platform versions in podspecs Jan 20, 2024
@Saadnajmi Saadnajmi merged commit 0619af5 into microsoft:0.72-stable Jan 20, 2024
@Saadnajmi Saadnajmi deleted the fix-typos-72 branch January 20, 2024 00:20
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.

2 participants