-
Couldn't load subscription status.
- Fork 4
MacOS test app and fix hermes vendoring from react-native-macos
#297
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
Draft
kraenhansen
wants to merge
28
commits into
main
Choose a base branch
from
kh/macos-test-app
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5b89deb
Add script to init a MacOS test app
kraenhansen b4c7469
Update Podspec to detect React Native package name
kraenhansen e67510a
Add changeset
kraenhansen 4f1711e
Add job in the check workflow to initialize and build the MacOS test app
kraenhansen 1f23c01
Fall-back on non-universal libraries when getting path for weak-node-…
kraenhansen afb5f61
Enable Hermes and Fabric
kraenhansen 17ff79e
No need to Setup Android SDK
kraenhansen e1b3cea
Debugging with Copilot
kraenhansen 4b9faf2
Pass --mode when building from CLI
kraenhansen 44609d5
Don't pod install when initializing
kraenhansen d589923
Moved patching of JSI headers to a separate function
kraenhansen 0f98a0e
Patch react_native_post_install to pass react native path
kraenhansen ab26a44
Install CMake 3.22
kraenhansen df8f1a0
Fix bootstrap issue
kraenhansen f52a402
Trying a higher CMake version
kraenhansen 18c9857
Set up files in private packages
kraenhansen 723f7b9
Patch macos app with scripts and source files
kraenhansen f660946
Remove platform restriction from host package's podspec
kraenhansen c23325b
Commit update from bootstrapping
kraenhansen 838e783
Reconstruct missing symbolic links if needed
kraenhansen 070e61f
Remove debug info from workflow
kraenhansen eaaef56
Moved "ios" into a shared "apple" directory
kraenhansen 46e731b
Simplify Apple host module provider
kraenhansen 012d85f
Restore weak-node-api symlinks
kraenhansen 4cf9011
Re-arm the init script
kraenhansen 77ed18d
Build universal Darwin libraries
kraenhansen 5080c23
Add missing x86_64-apple-darwin Rust target to macOS CI job (#298)
Copilot 395409a
Move linked deps into install command to make --install-links effective
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": patch | ||
| --- | ||
|
|
||
| Detects "pod install" from React Native MacOS apps and vendors Hermes accordingly |
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 |
|---|---|---|
|
|
@@ -4,3 +4,6 @@ node_modules/ | |
| dist/ | ||
|
|
||
| *.tsbuildinfo | ||
|
|
||
| # Treading the MacOS app as ephemeral | ||
| apps/macos-test-app | ||
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
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,21 @@ | ||
| #import "CxxNodeApiHostModule.hpp" | ||
| #import "WeakNodeApiInjector.hpp" | ||
|
|
||
| #import <ReactCommon/CxxTurboModuleUtils.h> | ||
| @interface NodeApiHost : NSObject | ||
|
|
||
| @end | ||
|
|
||
| @implementation NodeApiHost | ||
| + (void)load { | ||
| callstack::nodeapihost::injectIntoWeakNodeApi(); | ||
|
|
||
| facebook::react::registerCxxModuleToGlobalModuleMap( | ||
| callstack::nodeapihost::CxxNodeApiHostModule::kModuleName, | ||
| [](std::shared_ptr<facebook::react::CallInvoker> jsInvoker) { | ||
| return std::make_shared<callstack::nodeapihost::CxxNodeApiHostModule>( | ||
| jsInvoker); | ||
| }); | ||
| } | ||
|
|
||
| @end |
This file was deleted.
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
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.
Corrected spelling of 'jod' to 'iron'. The Node.js LTS codename should be 'iron'.