Specify use_frameworks within OneSignalNotificationServiceExtension target in iOS Podfile #128
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Within
OneSignalNotificationServiceExtension
target, adduse_frameworks
line conditional onios.useFrameworks
property existingDetails
The BuildProperties Plugin gives an
useFrameworks
option for iOS which enablesuse_frameworks
in the iOSPodfile
application target. When specified in the expo app, the OneSignal expo plugin creates aOneSignalNotificationServiceExtension
target in thePodfile
that does not specifyuse_frameworks
in the target. The build will fail with this inconsistency:This change updates the OneSignal Expo Plugin to specify
use_frameworks
in theOneSignalNotificationServiceExtension
target when also specified in the app's target. The line was pulled from the standarduse_frameworks
line that is used on the application target. It relies on a property that may or may not exist within thePodfile.properties.json
file.Motivation
Fixes #127
Scope
There is no runtime changes expected, this change is limited to the building of the iOS app generated by Expo.
Testing
Manual testing
After the change was made, a sample application with the following variations were confirmed to build and start up on iOS:
useFrameworks
option not specified.useFrameworks
option specified.As this is iOS build specific, android build/run was not evaluated.
Checklist
Overview
Testing
Final pass