-
Notifications
You must be signed in to change notification settings - Fork 7
Apple link without cocoapods #351
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
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9532c9f
Add dependencies and xcode helpers
kraenhansen 3d3f318
Add command to patch xcode project
kraenhansen fedc119
Copy and sign framework from xcode build phase
kraenhansen 0cbe2ac
Remove incremental linking
kraenhansen 1bb9529
Use bufferred output when converting plists to xml
kraenhansen b382de8
Updated determineFrameworkSlice
kraenhansen 987437b
Add changeset
kraenhansen 218cfb2
Cleaning up
kraenhansen 7adb43e
Fix lint issues
kraenhansen 6687b87
Fixing tests
kraenhansen 9ed4b21
Patch all application targets
kraenhansen 68e45f0
Disregard CODE_SIGNING_REQUIRED when deciding to sign
kraenhansen 0b01fd5
Re-use existing build phase
kraenhansen 2c5c964
Add check for "macos" when traversing FS for an xcode workspace
kraenhansen 4be7486
Use NODE_BINARY and read it off the environment
kraenhansen c7bd14a
Use assignment instead of ||= operator now that it's gated by exit_ho…
kraenhansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "react-native-node-api": minor | ||
| --- | ||
|
|
||
| Modify Xcode project to add a build phase to the main project app to link Node-API frameworks directly |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| unless defined?(@exit_hooks_installed) | ||
| # Setting a flag to avoid running this command on every require | ||
| @exit_hooks_installed = true | ||
|
|
||
| NODE_BINARY = ENV["NODE_BINARY"] || `command -v node`.strip | ||
| CLI_COMMAND = "'#{NODE_BINARY}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'" | ||
| PATCH_XCODE_PROJECT_COMMAND = "#{CLI_COMMAND} patch-xcode-project '#{Pod::Config.instance.installation_root}'" | ||
|
|
||
| # Using an at_exit hook to ensure the command is executed after the pod install is complete | ||
| at_exit do | ||
| system(PATCH_XCODE_PROJECT_COMMAND) or raise "Failed to patch the Xcode project" | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the most important changes of the PR - we no longer have to reference the addon xcframeworks from our podspec.