Skip to content

Commit 0820933

Browse files
committed
Merge branch 'main' into feat/scene-delegate
2 parents a0b8944 + 1790c61 commit 0820933

605 files changed

Lines changed: 15325 additions & 8420 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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ module.exports = {
6161
files: ['package.json'],
6262
parser: 'jsonc-eslint-parser',
6363
},
64-
{
65-
files: ['package.json'],
66-
rules: {
67-
'@react-native/monorepo/react-native-manifest': 'error',
68-
},
69-
},
7064
{
7165
files: ['flow-typed/**/*.js', 'packages/react-native/flow/**/*'],
7266
rules: {

.flowconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ experimental.multi_platform.extensions=.android
5656
munge_underscores=true
5757

5858
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/packages/react-native/index.js'
59+
module.name_mapper='^react-native/react-private-interface$' -> '<PROJECT_ROOT>/packages/react-native/src/react-private-interface.js'
60+
module.name_mapper='^react-native/setup-env$' -> '<PROJECT_ROOT>/packages/react-native/src/setup-env.js'
5961
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native/\1'
6062
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/packages/dev-middleware'
6163
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'
@@ -64,11 +66,6 @@ module.system.haste.module_ref_prefix=m#
6466

6567
react.runtime=automatic
6668

67-
experimental.deprecated_utilities.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
68-
experimental.deprecated_utilities.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
69-
experimental.deprecated_colon_extends.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
70-
experimental.deprecated_variance_sigils.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
71-
7269
ban_spread_key_props=true
7370

7471
[lints]

.github/workflow-scripts/lint_files.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflow-scripts/maestro-android.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ async function executeFlowInFolder(flowFolder) {
6060
const filePath = `${flowFolder}/${file}`;
6161
if (fs.lstatSync(filePath).isDirectory()) {
6262
await executeFlowInFolder(filePath);
63-
} else {
63+
} else if (file.endsWith('.yml') || file.endsWith('.yaml')) {
6464
await executeFlowWithRetries(filePath, 0);
6565
}
66+
// Skip non-flow files (e.g. screenshot baselines under screenshots/).
6667
}
6768
}
6869

.github/workflows/e2e-android-rntester.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
test:
19-
runs-on: ubuntu-latest
19+
runs-on: 4-core-ubuntu
2020
outputs:
2121
status: ${{ steps.report-status.outputs.status }}
2222
strategy:

.github/workflows/e2e-android-templateapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
test:
19-
runs-on: ubuntu-latest
19+
runs-on: 4-core-ubuntu
2020
outputs:
2121
status: ${{ steps.report-status.outputs.status }}
2222
strategy:

.github/workflows/fantom-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
test:
19-
runs-on: ubuntu-latest
19+
runs-on: 8-core-ubuntu
2020
outputs:
2121
status: ${{ steps.report-status.outputs.status }}
2222
container:

.github/workflows/publish-npm.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,15 @@ jobs:
201201
post_publish:
202202
runs-on: ubuntu-latest
203203
needs: [determine_mode, publish_react_native]
204-
if: needs.determine_mode.outputs.mode == 'release'
204+
# Use always() so this job still runs in release mode even though some
205+
# upstream jobs (e.g. build_android) are skipped and would otherwise
206+
# poison the implicit success() gate. The explicit result checks below
207+
# handle the real gating: only run for a successful release publish.
208+
if: |
209+
always() &&
210+
needs.determine_mode.result == 'success' &&
211+
needs.publish_react_native.result == 'success' &&
212+
needs.determine_mode.outputs.mode == 'release'
205213
env:
206214
REACT_NATIVE_BOT_GITHUB_TOKEN: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }}
207215
steps:
@@ -256,19 +264,38 @@ jobs:
256264
# ─── Release-only: changelog, podfile bump, draft release ────────
257265
generate_changelog:
258266
needs: [determine_mode, publish_react_native]
259-
if: needs.determine_mode.outputs.mode == 'release'
267+
# always() + explicit result checks: run for a successful release publish
268+
# even when skipped upstream jobs would trip the implicit success() gate.
269+
if: |
270+
always() &&
271+
needs.determine_mode.result == 'success' &&
272+
needs.publish_react_native.result == 'success' &&
273+
needs.determine_mode.outputs.mode == 'release'
260274
uses: ./.github/workflows/generate-changelog.yml
261275
secrets: inherit
262276

263277
bump_podfile_lock:
264278
needs: [determine_mode, publish_react_native]
265-
if: needs.determine_mode.outputs.mode == 'release'
279+
# always() + explicit result checks: run for a successful release publish
280+
# even when skipped upstream jobs would trip the implicit success() gate.
281+
if: |
282+
always() &&
283+
needs.determine_mode.result == 'success' &&
284+
needs.publish_react_native.result == 'success' &&
285+
needs.determine_mode.outputs.mode == 'release'
266286
uses: ./.github/workflows/bump-podfile-lock.yml
267287
secrets: inherit
268288

269289
create_draft_release:
270290
needs: [determine_mode, generate_changelog, set_hermes_version]
271-
if: needs.determine_mode.outputs.mode == 'release'
291+
# always() + explicit result checks: run for a successful release even when
292+
# skipped upstream jobs would trip the implicit success() gate.
293+
if: |
294+
always() &&
295+
needs.determine_mode.result == 'success' &&
296+
needs.generate_changelog.result == 'success' &&
297+
needs.set_hermes_version.result == 'success' &&
298+
needs.determine_mode.outputs.mode == 'release'
272299
uses: ./.github/workflows/create-draft-release.yml
273300
secrets: inherit
274301
with:

.github/workflows/test-all.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
secrets: inherit
219219

220220
build_fantom_runner:
221-
runs-on: ubuntu-latest
221+
runs-on: 8-core-ubuntu
222222
needs: [set_release_type, check_code_changes, lint]
223223
if: needs.check_code_changes.outputs.any_code_change == 'true'
224224
container:
@@ -261,7 +261,7 @@ jobs:
261261
secrets: inherit
262262

263263
build_android:
264-
runs-on: ubuntu-latest
264+
runs-on: 8-core-ubuntu
265265
needs: [set_release_type, check_code_changes]
266266
if: |
267267
needs.check_code_changes.outputs.any_code_change == 'true' &&
@@ -307,7 +307,7 @@ jobs:
307307
secrets: inherit
308308

309309
build_npm_package:
310-
runs-on: ubuntu-latest
310+
runs-on: 8-core-ubuntu
311311
needs:
312312
[
313313
set_release_type,
@@ -340,7 +340,7 @@ jobs:
340340
skip-apple-prebuilts: ${{ needs.check_code_changes.outputs.should_test_ios == 'false' }}
341341

342342
test_android_helloworld:
343-
runs-on: ubuntu-latest
343+
runs-on: 4-core-ubuntu
344344
needs: [build_npm_package, build_android]
345345
if: ${{ always() && needs.build_android.result == 'success' && needs.build_npm_package.result == 'success' }}
346346
container:
@@ -453,9 +453,6 @@ jobs:
453453
uses: ./.github/actions/setup-node
454454
- name: Install dependencies
455455
uses: ./.github/actions/yarn-install
456-
- name: Lint file structure
457-
shell: bash
458-
run: ./.github/workflow-scripts/lint_files.sh
459456
- name: Run shellcheck
460457
shell: bash
461458
run: ./.github/workflow-scripts/analyze_scripts.sh
@@ -471,9 +468,9 @@ jobs:
471468
- name: Flow
472469
shell: bash
473470
run: yarn flow-check
474-
- name: TypeScript
471+
- name: TypeScript (legacy deep imports / manual types)
475472
shell: bash
476-
run: yarn test-typescript
473+
run: yarn test-typescript-legacy
477474

478475
test_js:
479476
runs-on: ubuntu-latest
@@ -510,7 +507,7 @@ jobs:
510507
run: yarn test-generated-typescript
511508

512509
build_debugger_shell:
513-
runs-on: ubuntu-latest
510+
runs-on: macos-26
514511
needs: check_code_changes
515512
if: needs.check_code_changes.outputs.debugger_shell == 'true'
516513
steps:

0 commit comments

Comments
 (0)