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

Make iPhoneDeploymentTarget configurable via plugin props #41

Merged
merged 7 commits into from
Jan 11, 2022
Merged

Conversation

rgomezp
Copy link
Contributor

@rgomezp rgomezp commented Jan 8, 2022

1 line description

Adds the ability to configure the iOS Deployment Target via the Expo plugin props.

Details

As noted in #40 , there is a version mismatch causing problems when attempting to create the Notification Service Extension which was previously hard-set to "10.0". If the project Podfile is set "12.0" for example, the value used by the NSE target should match. These changes introduce a new plugin "prop" that makes this value configurable.

Motivation:
* we aren't using iOSBundleIdentifier at all
* add `iPhoneDeploymentTarget` to add ability to configure the target via plugin props
Motivation: instead of continuing to pass in more and more arguments into the `xcodeProjectAddNSE` function. We can package them instead into `PluginOptions` and pass it as a single arg.
Motivation: we set the NSE target `IPHONEOS_DEPLOYMENT_TARGET` value to the value passed in via plugin props. If undefined, we fallback via `??` to the default `IPHONEOS_DEPLOYMENT_TARGET`.
Motivation: with 3 plugin "props" it's better to include in a table.

* since "devTeam" is optional, it's better to not include it in the example.
* Update the version icon to beta 9
support/iosConstants.ts Show resolved Hide resolved
README.md Show resolved Hide resolved
@rgomezp rgomezp merged commit 6072578 into main Jan 11, 2022
@rgomezp rgomezp deleted the beta9 branch January 11, 2022 01:05
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