mirror of
https://github.com/react/react-native.git
synced 2026-10-01 01:37:59 +08:00
Summary: Adds a new action that will run every day after the nightly build is published. This action will set up a blank app from the template, enable Hermes V1, and run a simple E2E test on Android and iOS in both Debug and Release configurations. ## Changelog: [INTERNAL] [ADDED] - Added basic E2E tests for Hermes V1 Pull Request resolved: https://github.com/facebook/react-native/pull/54576 Test Plan: I haven't tested the changes since they require larger action runners, but the changes are additive and don't impact existing infra (besides adding an optional parameter). Reviewed By: cortinico Differential Revision: D87331639 Pulled By: j-piasecki fbshipit-source-id: 8d26cb7df66f2588b49f86f01ff0b623501e7f2b
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
diff --git a/android/settings.gradle b/android/settings.gradle
|
|
index 63b5d4e..6359ec3 100644
|
|
--- a/android/settings.gradle
|
|
+++ b/android/settings.gradle
|
|
@@ -4,3 +4,11 @@ extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autoli
|
|
rootProject.name = 'RNApp'
|
|
include ':app'
|
|
includeBuild('../node_modules/@react-native/gradle-plugin')
|
|
+
|
|
+includeBuild('../node_modules/react-native') {
|
|
+ dependencySubstitution {
|
|
+ substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid"))
|
|
+ substitute(module("com.facebook.react:react-native")).using(project(":packages:react-native:ReactAndroid"))
|
|
+ substitute(project(":packages:react-native:ReactAndroid:hermes-engine")).using(module("com.facebook.hermes:hermes-android:$HERMES_V1_VERSION"))
|
|
+ }
|
|
+}
|
|
diff --git a/package.json b/package.json
|
|
index f05d51b..69938af 100644
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -35,6 +35,9 @@
|
|
"react-test-renderer": "19.2.0",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
+ "resolutions": {
|
|
+ "hermes-compiler": "$HERMES_V1_VERSION"
|
|
+ },
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|