-
Notifications
You must be signed in to change notification settings - Fork 40
feat: integrate react-native-brownfield #271
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
23 commits
Select commit
Hold shift + click to select a range
46249ab
static pod linkage and target settings
atlj 5226a15
add rn brownfield dependency
atlj 409efa2
replace swift impl with rn brownfield example
atlj dd3ab93
mode -> configuration
atlj 26d0651
enlist brownfield plugin again
atlj 21c534b
upgrade rn brownfield version
atlj 49f445b
add brownfield template to tsconfig
atlj dd51377
copy hermes and better logging
atlj 1fe07d4
expose ReactNativeBundle through the template
atlj 3a079b1
changesets
atlj 5ebb535
update docs
atlj baf9d90
remove the todo from podfile
atlj 21475a8
cleanup, format, sync fs
thymikee 9e6e9cf
Update website/docs/docs/brownfield/ios.mdx
thymikee 9d8e482
mention podfile changes
thymikee c37a9f8
support setting USE_FRAMEWORKS with brownfield option in pod install
thymikee f2bcd50
avoid calling xcode info twice, update swift file
thymikee 31eaf42
add comment
thymikee 5aabc51
update, simplify, add images
thymikee 0d23f24
typo
thymikee 0499d80
use relative paths
thymikee 9910f8d
fix test
thymikee 94950d2
fix: make e2e tests run in non-interactive mode
thymikee 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 @@ | ||
| --- | ||
| '@rnef/plugin-brownfield-ios': patch | ||
| --- | ||
|
|
||
| Implement [react-native-brownfield](https://github.com/callstack/react-native-brownfield) to iOS brownfield template. |
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 @@ | ||
| --- | ||
| '@rnef/create-app': patch | ||
| --- | ||
|
|
||
| List the `brownfield-ios` plugin on the plugins list shown while creating an app. |
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
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
32 changes: 32 additions & 0 deletions
32
packages/plugin-brownfield-ios/src/lib/copyHermesXcframework.ts
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,32 @@ | ||
| import fs, { existsSync } from 'node:fs'; | ||
| import path from 'node:path'; | ||
| import { color, logger, spinner } from '@rnef/tools'; | ||
|
|
||
| export function copyHermesXcframework({ | ||
| sourceDir, | ||
| destinationDir, | ||
| }: { | ||
| sourceDir: string; | ||
| destinationDir: string; | ||
| }) { | ||
| const loader = spinner(); | ||
|
|
||
| loader.start(`Copying ${color.bold('hermes.xcframework')}`); | ||
| const hermesDestination = path.join(destinationDir, 'hermes.xcframework'); | ||
|
|
||
| if (existsSync(hermesDestination)) { | ||
| logger.debug(`Removing old hermes copy`); | ||
| fs.rmSync(hermesDestination, { recursive: true, force: true }); | ||
| } | ||
|
|
||
| fs.cpSync( | ||
| path.join( | ||
| sourceDir, | ||
| 'Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework' | ||
| ), | ||
| hermesDestination, | ||
| { recursive: true, force: true } | ||
| ); | ||
|
|
||
| loader.stop(`Copied ${color.bold('hermes.xcframework')}`); | ||
| } |
63 changes: 15 additions & 48 deletions
63
packages/plugin-brownfield-ios/src/lib/mergeFrameworks.ts
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.
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.
Perhaps we should have unified browfield (iOS + Android) template?
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.
we should have both specified as optional plugins, that's it