-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Install test for RN >= 0.73 (#6189)
- Loading branch information
Showing
7 changed files
with
73 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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 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,18 @@ | ||
# How To Use | ||
|
||
There are two commands for the cli tool: | ||
`init` and `test` | ||
|
||
The most common usage is the following: | ||
|
||
`npm run init -- --react-native-version next --realm-version latest` | ||
|
||
This will create the template for latest release candidate of React Native, install the latest publish `realm` package | ||
and patch the install test code necessary for the next step. | ||
|
||
`npm run test -- --platform ios` | ||
`npm run test -- --platform android` | ||
|
||
This will run test for `ios` and `android` respectively. The `init` step is required first (without failures). | ||
This will spawn the app and a server which will be waiting for the application to post a message to. | ||
When the message has been sent, the test will shutdown and return a success code. |
This file contains 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
18 changes: 18 additions & 0 deletions
18
install-tests/react-native/patches/ccache-Podfile-pre-73.patch
This file contains 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,18 @@ | ||
--- app/ios/Podfile | ||
+++ app/ios/Podfile | ||
@@ -39,5 +39,15 @@ | ||
:mac_catalyst_enabled => false | ||
) | ||
__apply_Xcode_12_5_M1_post_install_workaround(installer) | ||
+ # Using ccache when building | ||
+ installer.pods_project.targets.each do |target| | ||
+ target.build_configurations.each do |config| | ||
+ # Using the un-qualified names means you can swap in different implementations, for example ccache | ||
+ config.build_settings["CC"] = "clang" | ||
+ config.build_settings["LD"] = "clang" | ||
+ config.build_settings["CXX"] = "clang++" | ||
+ config.build_settings["LDPLUSPLUS"] = "clang++" | ||
+ end | ||
+ end | ||
end | ||
end |
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.