Skip to content

Commit f0ebf53

Browse files
Saadnajmicortinicohuntiecipolleschichrfalch
authored
chore(0.78): Merge up to React Native 0.78.3 upstream (#2621)
## Summary: Merge up to upstream React Native 0.78.3. Make sure to update our peer dependency. --------- Co-authored-by: Nicola Corti <[email protected]> Co-authored-by: Alex Hunt <[email protected]> Co-authored-by: Riccardo Cipolleschi <[email protected]> Co-authored-by: Christian Falch <[email protected]> Co-authored-by: Phil Pluckthun <[email protected]> Co-authored-by: chrsmys <[email protected]> Co-authored-by: Ritesh Shukla <[email protected]> Co-authored-by: zhongwuzw <[email protected]> Co-authored-by: Oskar Kwaśniewski <[email protected]> Co-authored-by: Fabrizio Cucci <[email protected]> Co-authored-by: React Native Bot <[email protected]>
1 parent 184fd28 commit f0ebf53

File tree

55 files changed

+834
-525
lines changed

Some content is hidden

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

55 files changed

+834
-525
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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
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: |
3030
D:\tmp\hermes\win64-bin\
3131
D:\tmp\hermes\hermes\icu\
@@ -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

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ 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:
122122
HERMES_WS_DIR: 'D:\tmp\hermes'

.github/workflows/publish-release.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ 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:
119119
HERMES_WS_DIR: 'D:\tmp\hermes'
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ jobs:
408408
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
409409

410410
build_hermesc_windows:
411-
runs-on: windows-2019
411+
runs-on: windows-2025
412412
needs: prepare_hermes_workspace
413413
env:
414414
HERMES_WS_DIR: 'D:\tmp\hermes'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
__default__: patch
3+
---
4+
5+
Sync to upstream React Native 0.78.3 release

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"@definitelytyped/dtslint": "^0.0.127",
5353
"@jest/create-cache-key-function": "^29.6.3",
5454
"@nx/js": "^21.2.4",
55-
"@react-native/metro-babel-transformer": "0.78.2",
56-
"@react-native/metro-config": "0.78.2",
55+
"@react-native/metro-babel-transformer": "0.78.3",
56+
"@react-native/metro-config": "0.78.3",
5757
"@tsconfig/node18": "1.0.1",
5858
"@types/react": "^19.0.0",
5959
"@typescript-eslint/parser": "^7.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.78.2",
3+
"version": "0.78.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.78.2",
3+
"version": "0.78.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.78.2"
29+
"@react-native/codegen": "0.78.3"
3030
},
3131
"devDependencies": {
3232
"@babel/core": "^7.25.2"

0 commit comments

Comments
 (0)