Skip to content

Commit 8ec3967

Browse files
committed
Merge branch 'main' into improve-lineheight-calc-ios
2 parents b361acb + d631ec9 commit 8ec3967

713 files changed

Lines changed: 14298 additions & 8372 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7+
* @noflow
78
* @format
89
*/
910

@@ -27,6 +28,9 @@ module.exports = {
2728
files: ['*.js', '*.js.flow', '*.jsx'],
2829
parser: 'hermes-eslint',
2930
rules: {
31+
'ft-flow/require-valid-file-annotation': [2, 'always'],
32+
'no-extra-boolean-cast': 0,
33+
'no-void': 0,
3034
// These rules are not required with hermes-eslint
3135
'ft-flow/define-flow-type': 0,
3236
'ft-flow/use-flow-type': 0,
@@ -66,6 +70,7 @@ module.exports = {
6670
{
6771
files: ['flow-typed/**/*.js', 'packages/react-native/flow/**/*'],
6872
rules: {
73+
'ft-flow/require-valid-file-annotation': 0,
6974
'lint/valid-flow-typed-signature': 2,
7075
'no-shadow': 0,
7176
'no-unused-vars': 0,

.flowconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-nat
6969
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/packages/dev-middleware'
7070
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
7171

72+
module.system.haste.module_ref_prefix=m#
73+
7274
react.runtime=automatic
7375

7476
suppress_type=$FlowIssue
@@ -100,4 +102,4 @@ untyped-import
100102
untyped-type-import
101103

102104
[version]
103-
^0.272.1
105+
^0.272.2

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

Lines changed: 2 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\
@@ -63,7 +63,7 @@ runs:
6363
$Env:PATH += ";$Env:CMAKE_DIR;$Env:MSBUILD_DIR"
6464
$Env:ICU_ROOT = "$Env:HERMES_WS_DIR\icu"
6565
66-
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
6767
if (-not $?) { throw "Failed to configure Hermes" }
6868
echo "Running windows build..."
6969
cd build_release

.github/actions/maestro-android/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ inputs:
2222
required: false
2323
default: "."
2424
description: The directory from which metro should be started
25-
architecture:
26-
required: false
27-
default: "NewArch"
28-
description: The react native architecture to test
2925

3026
runs:
3127
using: composite
@@ -76,13 +72,13 @@ runs:
7672
uses: actions/upload-artifact@v4.3.4
7773
if: always()
7874
with:
79-
name: e2e_android_${{ steps.normalize-app-id.outputs.app-id }}_report_${{ inputs.flavor }}_${{ inputs.architecture }}
75+
name: e2e_android_${{ steps.normalize-app-id.outputs.app-id }}_report_${{ inputs.flavor }}_NewArch
8076
path: |
8177
report.xml
8278
screen.mp4
8379
- name: Store Logs
8480
if: steps.run-tests.outcome == 'failure'
8581
uses: actions/upload-artifact@v4.3.4
8682
with:
87-
name: maestro-logs-android-${{ steps.normalize-app-id.outputs.app-id }}-${{ inputs.flavor }}-${{ inputs.architecture }}
83+
name: maestro-logs-android-${{ steps.normalize-app-id.outputs.app-id }}-${{ inputs.flavor }}-NewArch
8884
path: /tmp/MaestroLogs

.github/actions/maestro-ios/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ inputs:
1818
required: false
1919
default: "."
2020
description: The directory from which metro should be started
21-
architecture:
22-
required: false
23-
default: "NewArch"
24-
description: The react native architecture to test
2521

2622
runs:
2723
using: composite
@@ -70,7 +66,7 @@ runs:
7066
if: always()
7167
uses: actions/upload-artifact@v4.3.4
7268
with:
73-
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.flavor }}_${{ inputs.architecture }}
69+
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.flavor }}_NewArch
7470
path: |
7571
video_record_1.mov
7672
video_record_2.mov
@@ -82,5 +78,5 @@ runs:
8278
if: failure() && steps.run-tests.outcome == 'failure'
8379
uses: actions/upload-artifact@v4.3.4
8480
with:
85-
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.flavor }}-${{ inputs.architecture }}
81+
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.flavor }}-NewArch
8682
path: /tmp/MaestroLogs

.github/actions/setup-xcode-build-cache/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ inputs:
77
flavor:
88
description: The flavor that is going to be built
99
default: Debug
10-
architecture:
11-
description: The architecture that is going to be built
12-
default: NewArch
1310
use-frameworks:
1411
description: Whether we are bulding with DynamicFrameworks or StaticLibraries
1512
default: StaticLibraries
@@ -27,9 +24,9 @@ runs:
2724
uses: actions/cache@v4
2825
with:
2926
path: packages/rn-tester/Podfile.lock
30-
key: v13-podfilelock-${{ github.job }}-${{ inputs.architecture }}-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version }}
27+
key: v13-podfilelock-${{ github.job }}-NewArch-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version }}
3128
- name: Cache cocoapods
3229
uses: actions/cache@v4
3330
with:
3431
path: packages/rn-tester/Pods
35-
key: v15-cocoapods-${{ github.job }}-${{ inputs.architecture }}-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile.lock') }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version}}
32+
key: v15-cocoapods-${{ github.job }}-NewArch-${{ inputs.flavor }}-${{ inputs.use-frameworks }}-${{ inputs.ruby-version }}-${{ hashfiles('packages/rn-tester/Podfile.lock') }}-${{ hashfiles('packages/rn-tester/Podfile') }}-${{ inputs.hermes-version}}

.github/actions/test-ios-helloworld/action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ inputs:
44
use-frameworks:
55
description: The dependency building and linking strategy to use. Must be one of "StaticLibraries", "DynamicFrameworks"
66
default: StaticLibraries
7-
architecture:
8-
description: The React Native architecture to Test. RNTester has always Fabric enabled, but we want to run integration test with the old arch setup. Must be one of "OldArch" or "NewArch"
9-
default: OldArch
107
ruby-version:
118
description: The version of ruby that must be used
129
default: 2.6.10
@@ -51,16 +48,12 @@ runs:
5148
- name: Print third-party folder
5249
shell: bash
5350
run: ls -lR /tmp/third-party
54-
- name: Install iOS dependencies - Configuration ${{ inputs.flavor }}; New Architecture ${{ inputs.architecture }}
51+
- name: Install iOS dependencies - Configuration ${{ inputs.flavor }};
5552
shell: bash
5653
run: |
5754
cd packages/helloworld
5855
args=()
5956
60-
if [[ ${{ inputs.architecture }} == "OldArch" ]]; then
61-
args+=(--arch old)
62-
fi
63-
6457
if [[ ${{ inputs.use-frameworks }} == "DynamicFrameworks" ]]; then
6558
args+=(--frameworks dynamic)
6659
fi

.github/actions/test-ios-rntester/action.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ inputs:
44
use-frameworks:
55
description: The dependency building and linking strategy to use. Must be one of "StaticLibraries", "DynamicFrameworks"
66
default: StaticLibraries
7-
architecture:
8-
description: The React Native architecture to Test. RNTester has always Fabric enabled, but we want to run integration test with the old arch setup
9-
default: NewArch
107
ruby-version:
118
description: The version of ruby that must be used
129
default: 2.6.10
@@ -101,7 +98,6 @@ runs:
10198
uses: ./.github/actions/setup-xcode-build-cache
10299
with:
103100
hermes-version: ${{ inputs.hermes-version }}
104-
architecture: ${{ inputs.architecture }}
105101
use-frameworks: ${{ inputs.use-frameworks }}
106102
flavor: ${{ inputs.flavor }}
107103
ruby-version: ${{ inputs.ruby-version }}
@@ -114,10 +110,6 @@ runs:
114110
export USE_FRAMEWORKS=dynamic
115111
fi
116112
117-
if [[ ${{ inputs.architecture }} == "OldArch" ]]; then
118-
export RCT_NEW_ARCH_ENABLED=0
119-
fi
120-
121113
export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
122114
cd packages/rn-tester
123115
@@ -162,7 +154,7 @@ runs:
162154
if: ${{ inputs.use-frameworks == 'StaticLibraries' && inputs.ruby-version == '2.6.10' }} # This is needed to avoid conflicts with the artifacts
163155
uses: actions/upload-artifact@v4.3.4
164156
with:
165-
name: RNTesterApp-${{ inputs.architecture }}-${{ inputs.flavor }}
157+
name: RNTesterApp-NewArch-${{ inputs.flavor }}
166158
path: ${{ env.app-path }}
167159
- name: Store test results
168160
if: ${{ inputs.run-unit-tests == 'true' }}

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
121121

122122
build_hermesc_windows:
123-
runs-on: windows-2019
123+
runs-on: windows-2025
124124
needs: prepare_hermes_workspace
125125
env:
126126
HERMES_WS_DIR: 'D:\tmp\hermes'

.github/workflows/publish-release.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'

0 commit comments

Comments
 (0)