Skip to content

Commit e5101ee

Browse files
committed
Merge main and regenerate strict transform types
Preserve the conic gradient and transform type checks. The API snapshot is generated against the current upstream tree. Conflict resolution and validation assisted by gpt-6.2-sol.
2 parents 16ea9f8 + eab46c6 commit e5101ee

1,640 files changed

Lines changed: 57574 additions & 16892 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.

‎.babelrc‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"presets": [
33
"module:@react-native/babel-preset"
4-
],
5-
"plugins": [
6-
"babel-plugin-transform-flow-enums"
74
]
85
}

‎.eslintrc.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ module.exports = {
6161
files: ['package.json'],
6262
parser: 'jsonc-eslint-parser',
6363
},
64+
{
65+
// Generated bundles carry `@nolint`, which this lint run does not honor.
66+
files: ['private/eslint-plugin-monorepo/rules/sort-imports.js'],
67+
rules: {
68+
'ft-flow/require-valid-file-annotation': 'off',
69+
},
70+
},
6471
{
6572
files: ['flow-typed/**/*.js', 'packages/react-native/flow/**/*'],
6673
rules: {

‎.expo-code-review/shared.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ and native-component specifications generate native counterparts. Treat the
3232
specification or configuration as the source of truth. Do not ask an author to
3333
hand-edit generated output, and do not report a filtered generated file as missing.
3434

35-
Use the repository's test topology to validate a suspected defect. Jest covers
36-
local JavaScript behavior. Fantom covers integrated runtime behavior. Android and
35+
Use the repository's test topology to validate a suspected defect. Fantom covers
36+
runtime logic, the JavaScript that runs in apps. Jest covers iOS-specific logic
37+
and code that runs in Node.js, such as build tools and scripts. Android and
3738
Apple have native build and test lanes. A missing test alone is not a warning;
3839
report the concrete behavior that fails.
3940

‎.flowconfig‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ packages/react-native/sdks/**
55
; Ignore fb_internal modules
66
packages/react-native/src/fb_internal/**
77

8+
; Ignore files excluded from the open-source repository
9+
**/*.fb.*
10+
811
; Ignore the codegen e2e tests
912
packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
1013

@@ -40,6 +43,7 @@ flow-typed/
4043
packages/react-native/flow/
4144

4245
[options]
46+
experimental.tslib_syntax=true
4347
builtin_lib=core-only
4448

4549
emoji=true
@@ -68,14 +72,27 @@ module.name_mapper='^react-native/src/fb_internal/\(.*\)$' -> '<PROJECT_ROOT>/pa
6872
# `src/fb_internal/*` stay importable.
6973
module.name_mapper='^react-native/\(Libraries\|src/private\|src/types\)/.*$' -> 'react-native-deep-import-is-not-part-of-the-public-api'
7074
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/packages/dev-middleware'
71-
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\|ktx\|heic\|heif\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
75+
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\|ktx\|heic\|ttf\|heif\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
7276

7377
module.system.haste.module_ref_prefix=m#
7478

7579
react.runtime=automatic
7680

7781
ban_spread_key_props=true
7882

83+
experimental.strict_es6_import_export=true
84+
experimental.export_star_excludes_default=true
85+
86+
unsuppressable_error_codes=invalid-type-cast-syntax
87+
unsuppressable_error_codes=deprecated-utility
88+
unsuppressable_error_codes=missing-function-type-param-name
89+
unsuppressable_error_codes=missing-dictionary-key-label
90+
unsuppressable_error_codes=unsupported-exact-object-type
91+
unsuppressable_error_codes=react-rule-hook-naming-convention
92+
unsuppressable_error_codes=react-rule-hook-definitely-not-in-component-or-hook
93+
unsuppressable_error_codes=react-rule-hook-mixed-with-non-hook
94+
unsuppressable_error_codes=react-rule-hook-non-hook-syntax
95+
7996
[lints]
8097
sketchy-null-number=warn
8198
sketchy-null-mixed=warn
@@ -97,4 +114,4 @@ untyped-import
97114
untyped-type-import
98115

99116
[version]
100-
^0.337.0
117+
^0.342.0

‎.github/actions/build-fantom-runner/action.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ runs:
5454
env:
5555
CC: clang
5656
CXX: clang++
57+
- name: Upload Fantom build logs
58+
if: ${{ always() }}
59+
uses: ./.github/actions/upload-artifact
60+
with:
61+
name: build-fantom-results
62+
compression-level: 1
63+
if-no-files-found: ignore
64+
path: private/react-native-fantom/build/reports
5765
- name: Save Fantom ccache
5866
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, '-stable') }}
5967
uses: actions/cache/save@v5

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,34 @@ inputs:
2626
required: false
2727
default: ''
2828
description: Maestro device OS name, such as iOS-26-2
29+
test-state-path:
30+
required: false
31+
default: ''
32+
description: The path used to persist per-flow test results between retries
33+
exclude-tags:
34+
required: false
35+
default: ''
36+
description: Comma-separated flow tags to exclude from the test run
2937

3038
runs:
3139
using: composite
40+
# Expects Node.js to be set up by the calling job.
3241
steps:
42+
# Booting takes a couple of minutes; it finishes while the next steps run.
43+
- name: Boot simulator
44+
shell: bash
45+
run: |
46+
node .github/workflow-scripts/maestro-ios.js boot \
47+
"${{ inputs.device-model }}" \
48+
"${{ inputs.device-os }}"
3349
- name: Installing Maestro
3450
shell: bash
3551
run: export MAESTRO_VERSION=2.6.1; curl -Ls "https://get.maestro.mobile.dev" | bash
36-
- name: Installing Maestro dependencies
37-
shell: bash
38-
run: |
39-
brew tap facebook/fb
40-
brew install facebook/fb/idb-companion
4152
- name: Set up JDK 17
4253
uses: actions/setup-java@v5
4354
with:
4455
java-version: '17'
4556
distribution: 'zulu'
46-
- name: Setup node.js
47-
uses: ./.github/actions/setup-node
4857
- name: Run yarn install
4958
uses: ./.github/actions/yarn-install
5059
- name: Start Metro in Debug
@@ -73,24 +82,15 @@ runs:
7382
"${{ inputs.flavor }}" \
7483
"${{ inputs.working-directory }}" \
7584
"${{ inputs.device-model }}" \
76-
"${{ inputs.device-os }}"
77-
- name: Store video record
78-
if: always()
79-
uses: ./.github/actions/upload-artifact
80-
with:
81-
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.flavor }}_NewArch
82-
overwrite: true
83-
path: |
84-
video_record_1.mov
85-
video_record_2.mov
86-
video_record_3.mov
87-
video_record_4.mov
88-
video_record_5.mov
89-
report.xml
85+
"${{ inputs.device-os }}" \
86+
"${{ inputs.test-state-path }}" \
87+
"${{ inputs.exclude-tags }}"
9088
- name: Store Logs
91-
if: failure() && steps.run-tests.outcome == 'failure'
89+
if: always()
9290
uses: ./.github/actions/upload-artifact
9391
with:
9492
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.flavor }}-NewArch
9593
overwrite: true
94+
if-no-files-found: ignore
95+
# Only failed runs leave their report, debug output and recording here
9696
path: /tmp/MaestroLogs

‎.github/actions/run-fantom-tests/action.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
run: |
2828
for attempt in 1 2 3; do
2929
echo "Attempt $attempt of 3"
30-
if yarn fantom; then
30+
if yarn fantom --ci; then
3131
exit 0
3232
fi
3333
if [ "$attempt" -lt 3 ]; then
@@ -38,6 +38,14 @@ runs:
3838
exit 1
3939
env:
4040
LD_LIBRARY_PATH: ${{ github.workspace }}/private/react-native-fantom/build/tester
41+
- name: Upload failed screenshot comparisons
42+
if: ${{ always() }}
43+
uses: ./.github/actions/upload-artifact
44+
with:
45+
name: fantom-screenshot-failures
46+
compression-level: 1
47+
if-no-files-found: ignore
48+
path: private/react-native-fantom/build/screenshot-failures
4149
- name: Upload test results
4250
if: ${{ always() }}
4351
uses: ./.github/actions/upload-artifact
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: setup-spm-artifacts
2+
description: >-
3+
Downloads the ReactCore and ReactNativeDependencies XCFrameworks built in this
4+
run, in both flavors, into the SwiftPM artifact root /tmp/spm-artifacts. Pass
5+
`--artifacts /tmp/spm-artifacts --download skip` to the `react-native spm`
6+
command that follows.
7+
inputs:
8+
working-directory:
9+
description: The app directory that `npx react-native spm download` runs from.
10+
required: true
11+
runs:
12+
using: composite
13+
steps:
14+
# Both flavors are needed by every build, not just the one it builds:
15+
# `spm` stages both flavor framework trees and lets a per-configuration
16+
# build setting pick one at build time, so it validates the debug/ and
17+
# release/ artifact slots together (and `--download skip` refuses an
18+
# incomplete slot). Please don't "optimise" this down to one flavor.
19+
- name: Download ReactCore (Debug)
20+
uses: ./.github/actions/download-artifact
21+
with:
22+
name: ReactCoreDebug.xcframework.tar.gz
23+
path: /tmp/rc-debug
24+
- name: Download ReactCore (Release)
25+
uses: ./.github/actions/download-artifact
26+
with:
27+
name: ReactCoreRelease.xcframework.tar.gz
28+
path: /tmp/rc-release
29+
- name: Download ReactNativeDependencies (Debug)
30+
uses: ./.github/actions/download-artifact
31+
with:
32+
name: ReactNativeDependenciesDebug.xcframework.tar.gz
33+
path: /tmp/deps-debug
34+
- name: Download ReactNativeDependencies (Release)
35+
uses: ./.github/actions/download-artifact
36+
with:
37+
name: ReactNativeDependenciesRelease.xcframework.tar.gz
38+
path: /tmp/deps-release
39+
# The ordinary `spm download`, pointed at the XCFrameworks this run just
40+
# built rather than at the published nightly (RN_CORE_TARBALL_PATH /
41+
# RN_DEPS_TARBALL_PATH are overrides download-spm-artifacts.js already
42+
# supports). It fills both flavor slots per call and skips any slot that
43+
# already validates, so it runs twice: the first pass fills both slots
44+
# from the Release tarballs, then debug/ is dropped and refilled from the
45+
# Debug tarballs while release/ is left alone. hermes-engine is fetched
46+
# from Maven by the command itself.
47+
- name: Stage the XCFrameworks for SwiftPM (Debug + Release)
48+
shell: bash
49+
working-directory: ${{ inputs.working-directory }}
50+
run: |
51+
RN_CORE_TARBALL_PATH=/tmp/rc-release/ReactCoreRelease.xcframework.tar.gz \
52+
RN_DEPS_TARBALL_PATH=/tmp/deps-release/ReactNativeDependenciesRelease.xcframework.tar.gz \
53+
npx react-native spm download --artifacts /tmp/spm-artifacts
54+
rm -rf /tmp/spm-artifacts/debug
55+
RN_CORE_TARBALL_PATH=/tmp/rc-debug/ReactCoreDebug.xcframework.tar.gz \
56+
RN_DEPS_TARBALL_PATH=/tmp/deps-debug/ReactNativeDependenciesDebug.xcframework.tar.gz \
57+
npx react-native spm download --artifacts /tmp/spm-artifacts

‎.github/actions/setup-xcode/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
xcode-version:
55
description: 'The xcode version to use'
66
required: false
7-
default: '16.4.0'
7+
default: '27.2.0'
88
runs:
99
using: 'composite'
1010
steps:

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

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: test-ios-helloworld
22
description: Test iOS Hello World
33
inputs:
4-
use-frameworks:
5-
description: Whether to build with dynamic frameworks.
6-
default: false
7-
ruby-version:
8-
description: The version of ruby that must be used
9-
default: 2.6.10
104
flavor:
115
description: The flavor of the build. Must be one of "Debug", "Release".
126
default: Debug
7+
dependency-manager:
8+
description: 'How the app gets its native dependencies: swiftpm or cocoapods'
9+
default: swiftpm
1310
runs:
1411
using: composite
1512
steps:
@@ -19,46 +16,64 @@ runs:
1916
uses: ./.github/actions/setup-node
2017
- name: Run yarn install
2118
uses: ./.github/actions/yarn-install
22-
- name: Setup ruby
23-
uses: ruby/setup-ruby@v1
24-
with:
25-
ruby-version: ${{ inputs.ruby-version }}
2619
- name: Set Hermes prebuilt version
2720
shell: bash
2821
run: |
2922
node ./scripts/releases/use-hermes-prebuilt.js
3023
- name: Run yarn install again, with the correct hermes version
3124
uses: ./.github/actions/yarn-install
25+
- name: Setup ruby
26+
if: ${{ inputs.dependency-manager == 'cocoapods' }}
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 2.6.10
3230
- name: Download ReactNativeDependencies
31+
if: ${{ inputs.dependency-manager == 'cocoapods' }}
3332
uses: ./.github/actions/download-artifact
3433
with:
3534
name: ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz
3635
path: /tmp/third-party
37-
- name: Print third-party folder
38-
shell: bash
39-
run: ls -lR /tmp/third-party
4036
- name: Download React Native Prebuilds
37+
if: ${{ inputs.dependency-manager == 'cocoapods' }}
4138
uses: ./.github/actions/download-artifact
4239
with:
4340
name: ReactCore${{ inputs.flavor }}.xcframework.tar.gz
4441
path: /tmp/ReactCore
45-
- name: Print ReactCore folder
46-
shell: bash
47-
run: ls -lR /tmp/ReactCore
48-
- name: Install iOS dependencies - Configuration ${{ inputs.flavor }};
42+
- name: Install iOS dependencies - Configuration ${{ inputs.flavor }}
43+
if: ${{ inputs.dependency-manager == 'cocoapods' }}
4944
shell: bash
5045
run: |
5146
cd private/helloworld
52-
args=()
53-
54-
if [[ "${{ inputs.use-frameworks }}" == "true" ]]; then
55-
args+=(--frameworks dynamic)
56-
fi
5747
5848
export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
5949
export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz"
6050
61-
yarn bootstrap ios "${args[@]}" | cat
51+
yarn bootstrap ios | cat
52+
- name: Download the XCFrameworks built in this run
53+
if: ${{ inputs.dependency-manager == 'swiftpm' }}
54+
uses: ./.github/actions/setup-spm-artifacts
55+
with:
56+
working-directory: private/helloworld/ios
57+
# HelloWorld is a CocoaPods project in git. CI converts it to SwiftPM on every run.
58+
- name: Convert HelloWorld to SwiftPM
59+
if: ${{ inputs.dependency-manager == 'swiftpm' }}
60+
shell: bash
61+
working-directory: private/helloworld/ios
62+
run: RN_STRICT_API=1 npx react-native spm add --deintegrate --artifacts /tmp/spm-artifacts --download skip
63+
- name: Assert HelloWorld is on SwiftPM
64+
if: ${{ inputs.dependency-manager == 'swiftpm' }}
65+
shell: bash
66+
working-directory: private/helloworld/ios
67+
run: |
68+
if [[ ! -f HelloWorld.xcodeproj/.spm-injected.json ]]; then
69+
echo "::error::spm add did not inject SwiftPM: HelloWorld.xcodeproj/.spm-injected.json is missing"
70+
exit 1
71+
fi
72+
if grep -q 'Pods-' HelloWorld.xcodeproj/project.pbxproj; then
73+
echo "::error::spm add --deintegrate left CocoaPods references in HelloWorld.xcodeproj"
74+
exit 1
75+
fi
76+
echo "SwiftPM injected in place; CocoaPods de-integrated."
6277
6378
- name: Run Helloworld tests
6479
shell: bash

0 commit comments

Comments
 (0)