Skip to content

Commit 2fd4b76

Browse files
Saadnajmicortinicocipolleschizhouzh1zhongwuzw
authored
chore(0.77): Merge up to React Native 0.77.3 upstream (#2622)
## Summary: Merge up to upstream React Native 0.77.3. Make sure to update our peer dependency. --------- Co-authored-by: Nicola Corti <[email protected]> Co-authored-by: Riccardo Cipolleschi <[email protected]> Co-authored-by: Zhi Zhou <[email protected]> Co-authored-by: zhongwuzw <[email protected]> Co-authored-by: chrsmys <[email protected]> Co-authored-by: Mateo Guzmán <[email protected]> Co-authored-by: Rob Hogan <[email protected]> Co-authored-by: Phil Pluckthun <[email protected]> Co-authored-by: Christian Falch <[email protected]> Co-authored-by: Rubén Norte <[email protected]> Co-authored-by: Ritesh Shukla <[email protected]> Co-authored-by: Rob Hogan <[email protected]> Co-authored-by: Rob Hogan <[email protected]> Co-authored-by: Nick Gerleman <[email protected]> Co-authored-by: React Native Bot <[email protected]>
1 parent baeda82 commit 2fd4b76

File tree

72 files changed

+825
-535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+825
-535
lines changed

.github/actions/build-hermesc-linux/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ runs:
1414
shell: bash
1515
run: |
1616
sudo apt update
17-
sudo apt install -y git openssh-client cmake build-essential \
17+
sudo apt install -y git openssh-client build-essential \
1818
libreadline-dev libicu-dev jq zip python3
19+
20+
# Install cmake 3.28.3-1build7
21+
sudo apt-get install cmake=3.28.3-1build7
22+
sudo ln -sf /usr/bin/cmake /usr/local/bin/cmake
1923
- name: Restore Hermes workspace
2024
uses: ./.github/actions/restore-hermes-workspace
2125
- name: Linux cache

.github/actions/build-hermesc-windows/action.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ runs:
1414
uses: actions/download-artifact@v4
1515
with:
1616
name: hermes-workspace
17-
path: 'D:\tmp\hermes'
17+
path: 'C:\tmp\hermes'
1818
- name: Set up workspace
1919
shell: powershell
2020
run: |
21-
mkdir -p D:\tmp\hermes\osx-bin
21+
mkdir -p C:\tmp\hermes\osx-bin
2222
mkdir -p .\packages\react-native\sdks\hermes
23-
cp -r -Force D:\tmp\hermes\hermes\* .\packages\react-native\sdks\hermes\.
23+
cp -r -Force C:\tmp\hermes\hermes\* .\packages\react-native\sdks\hermes\.
2424
cp -r -Force .\packages\react-native\sdks\hermes-engine\utils\* .\packages\react-native\sdks\hermes\.
2525
- name: Windows cache
2626
uses: actions/cache@v4
2727
with:
28-
key: v2-hermes-${{ github.job }}-windows-${{ inputs.hermes-version }}-${{ inputs.react-native-version }}
28+
key: v3-hermes-${{ github.job }}-windows-${{ inputs.hermes-version }}-${{ inputs.react-native-version }}
2929
path: |
30-
D:\tmp\hermes\win64-bin\
31-
D:\tmp\hermes\hermes\icu\
32-
D:\tmp\hermes\hermes\deps\
33-
D:\tmp\hermes\hermes\build_release\
30+
C:\tmp\hermes\win64-bin\
31+
C:\tmp\hermes\hermes\icu\
32+
C:\tmp\hermes\hermes\deps\
33+
C:\tmp\hermes\hermes\build_release\
3434
- name: setup-msbuild
3535
uses: microsoft/[email protected]
3636
- name: Set up workspace
@@ -39,6 +39,9 @@ runs:
3939
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\icu
4040
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\deps
4141
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\win64-bin
42+
- name: Downgrade CMake
43+
shell: powershell
44+
run: choco install cmake --version 3.31.6 --force
4245
- name: Build HermesC for Windows
4346
shell: powershell
4447
run: |
@@ -60,7 +63,7 @@ runs:
6063
$Env:PATH += ";$Env:CMAKE_DIR;$Env:MSBUILD_DIR"
6164
$Env:ICU_ROOT = "$Env:HERMES_WS_DIR\icu"
6265
63-
cmake -S hermes -B build_release -G 'Visual Studio 16 2019' -Ax64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=True -DHERMES_ENABLE_WIN10_ICU_FALLBACK=OFF
66+
cmake -S hermes -B build_release -G 'Visual Studio 17 2022' -Ax64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=True -DHERMES_ENABLE_WIN10_ICU_FALLBACK=OFF
6467
if (-not $?) { throw "Failed to configure Hermes" }
6568
echo "Running windows build..."
6669
cd build_release
@@ -80,4 +83,4 @@ runs:
8083
uses: actions/[email protected]
8184
with:
8285
name: hermes-win64-bin
83-
path: D:\tmp\hermes\win64-bin\
86+
path: C:\tmp\hermes\win64-bin\

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ jobs:
116116
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
117117

118118
build_hermesc_windows:
119-
runs-on: windows-2019
119+
runs-on: windows-2025
120120
needs: prepare_hermes_workspace
121121
env:
122-
HERMES_WS_DIR: 'D:\tmp\hermes'
123-
HERMES_TARBALL_ARTIFACTS_DIR: 'D:\tmp\hermes\hermes-runtime-darwin'
124-
HERMES_OSXBIN_ARTIFACTS_DIR: 'D:\tmp\hermes\osx-bin'
122+
HERMES_WS_DIR: 'C:\tmp\hermes'
123+
HERMES_TARBALL_ARTIFACTS_DIR: 'C:\tmp\hermes\hermes-runtime-darwin'
124+
HERMES_OSXBIN_ARTIFACTS_DIR: 'C:\tmp\hermes\osx-bin'
125125
ICU_URL: "https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-Win64-MSVC2017.zip"
126126
MSBUILD_DIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin'
127127
CMAKE_DIR: 'C:\Program Files\CMake\bin'

.github/workflows/publish-release.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ jobs:
113113
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
114114

115115
build_hermesc_windows:
116-
runs-on: windows-2019
116+
runs-on: windows-2025
117117
needs: prepare_hermes_workspace
118118
env:
119-
HERMES_WS_DIR: 'D:\tmp\hermes'
120-
HERMES_TARBALL_ARTIFACTS_DIR: 'D:\tmp\hermes\hermes-runtime-darwin'
121-
HERMES_OSXBIN_ARTIFACTS_DIR: 'D:\tmp\hermes\osx-bin'
119+
HERMES_WS_DIR: 'C:\tmp\hermes'
120+
HERMES_TARBALL_ARTIFACTS_DIR: 'C:\tmp\hermes\hermes-runtime-darwin'
121+
HERMES_OSXBIN_ARTIFACTS_DIR: 'C:\tmp\hermes\osx-bin'
122122
ICU_URL: "https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-Win64-MSVC2017.zip"
123123
MSBUILD_DIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin'
124124
CMAKE_DIR: 'C:\Program Files\CMake\bin'
@@ -131,26 +131,6 @@ jobs:
131131
hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
132132
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
133133

134-
build_android:
135-
runs-on: 8-core-ubuntu
136-
needs: [set_release_type]
137-
container:
138-
image: reactnativecommunity/react-native-android:latest
139-
env:
140-
TERM: "dumb"
141-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
142-
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
143-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
144-
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
145-
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
146-
steps:
147-
- name: Checkout
148-
uses: actions/checkout@v4
149-
- name: Build Android
150-
uses: ./.github/actions/build-android
151-
with:
152-
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
153-
154134
build_npm_package:
155135
runs-on: 8-core-ubuntu
156136
needs:
@@ -160,7 +140,6 @@ jobs:
160140
build_hermes_macos,
161141
build_hermesc_linux,
162142
build_hermesc_windows,
163-
build_android,
164143
]
165144
container:
166145
image: reactnativecommunity/react-native-android:latest

.github/workflows/test-all.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,12 @@ jobs:
397397
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
398398

399399
build_hermesc_windows:
400-
runs-on: windows-2019
400+
runs-on: windows-2025
401401
needs: prepare_hermes_workspace
402402
env:
403-
HERMES_WS_DIR: 'D:\tmp\hermes'
404-
HERMES_TARBALL_ARTIFACTS_DIR: 'D:\tmp\hermes\hermes-runtime-darwin'
405-
HERMES_OSXBIN_ARTIFACTS_DIR: 'D:\tmp\hermes\osx-bin'
403+
HERMES_WS_DIR: 'C:\tmp\hermes'
404+
HERMES_TARBALL_ARTIFACTS_DIR: 'C:\tmp\hermes\hermes-runtime-darwin'
405+
HERMES_OSXBIN_ARTIFACTS_DIR: 'C:\tmp\hermes\osx-bin'
406406
ICU_URL: "https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-Win64-MSVC2017.zip"
407407
MSBUILD_DIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin'
408408
CMAKE_DIR: 'C:\Program Files\CMake\bin'

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ nexusPublishing {
5454
sonatype {
5555
username.set(sonatypeUsername)
5656
password.set(sonatypePassword)
57+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
58+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
5759
}
5860
}
5961
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"@definitelytyped/dtslint": "^0.0.127",
5252
"@jest/create-cache-key-function": "^29.6.3",
5353
"@nx/js": "^21.2.4",
54-
"@react-native/metro-babel-transformer": "0.77.2",
55-
"@react-native/metro-config": "0.77.2",
54+
"@react-native/metro-babel-transformer": "0.77.3",
55+
"@react-native/metro-config": "0.77.3",
5656
"@tsconfig/node18": "1.0.1",
5757
"@types/react": "^18.2.6",
5858
"@typescript-eslint/parser": "^7.1.1",
@@ -89,9 +89,9 @@
8989
"jest": "^29.6.3",
9090
"jest-junit": "^10.0.0",
9191
"jscodeshift": "^0.14.0",
92-
"metro-babel-register": "^0.81.3",
93-
"metro-memory-fs": "^0.81.3",
94-
"metro-transform-plugins": "^0.81.3",
92+
"metro-babel-register": "^0.81.5",
93+
"metro-memory-fs": "^0.81.5",
94+
"metro-transform-plugins": "^0.81.5",
9595
"micromatch": "^4.0.4",
9696
"node-fetch": "^2.2.0",
9797
"nullthrows": "^1.1.1",

packages/assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/assets-registry",
3-
"version": "0.77.2",
3+
"version": "0.77.3",
44
"description": "Asset support code for React Native.",
55
"license": "MIT",
66
"repository": {

packages/babel-plugin-codegen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/babel-plugin-codegen",
3-
"version": "0.77.2",
3+
"version": "0.77.3",
44
"description": "Babel plugin to generate native module and view manager code for React Native.",
55
"license": "MIT",
66
"repository": {
@@ -26,7 +26,7 @@
2626
],
2727
"dependencies": {
2828
"@babel/traverse": "^7.25.3",
29-
"@react-native/codegen": "0.77.2"
29+
"@react-native/codegen": "0.77.3"
3030
},
3131
"devDependencies": {
3232
"@babel/core": "^7.25.2"

packages/community-cli-plugin/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/community-cli-plugin",
3-
"version": "0.77.2",
3+
"version": "0.77.3",
44
"description": "Core CLI commands for React Native",
55
"keywords": [
66
"react-native",
@@ -22,19 +22,19 @@
2222
"dist"
2323
],
2424
"dependencies": {
25-
"@react-native/dev-middleware": "0.77.2",
26-
"@react-native/metro-babel-transformer": "0.77.2",
25+
"@react-native/dev-middleware": "0.77.3",
26+
"@react-native/metro-babel-transformer": "0.77.3",
2727
"chalk": "^4.0.0",
2828
"debug": "^2.2.0",
2929
"invariant": "^2.2.4",
30-
"metro": "^0.81.3",
31-
"metro-config": "^0.81.3",
32-
"metro-core": "^0.81.3",
30+
"metro": "^0.81.5",
31+
"metro-config": "^0.81.5",
32+
"metro-core": "^0.81.5",
3333
"readline": "^1.3.0",
3434
"semver": "^7.1.3"
3535
},
3636
"devDependencies": {
37-
"metro-resolver": "^0.81.3"
37+
"metro-resolver": "^0.81.5"
3838
},
3939
"peerDependencies": {
4040
"@react-native-community/cli": "*"

0 commit comments

Comments
 (0)