Skip to content

Commit 8437121

Browse files
committed
Merge remote-tracking branch 'origin/main' into realize-last-focused
2 parents 65517fe + b66db7a commit 8437121

File tree

620 files changed

+12157
-5619
lines changed

Some content is hidden

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

620 files changed

+12157
-5619
lines changed

.circleci/config.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,21 @@ jobs:
677677
executor: reactnativeios
678678
environment:
679679
- PROJECT_NAME: "iOSTemplateProject"
680+
- HERMES_WS_DIR: *hermes_workspace_root
680681

681682
steps:
682683
- checkout_code_with_cache
683684
- run_yarn
684685
- attach_workspace:
685686
at: .
686-
687+
- *attach_hermes_workspace
688+
- run:
689+
name: Set USE_HERMES=1
690+
command: echo "export USE_HERMES=1" >> $BASH_ENV
691+
- run:
692+
name: Set HERMES_ENGINE_TARBALL_PATH
693+
command: |
694+
echo "export HERMES_ENGINE_TARBALL_PATH=$(ls -AU $HERMES_WS_DIR/hermes-runtime-darwin/hermes-runtime-darwin-*.tar.gz | head -1)" >> $BASH_ENV
687695
- run:
688696
name: Create iOS template project
689697
command: |
@@ -693,8 +701,7 @@ jobs:
693701
node ./scripts/set-rn-template-version.js "file:$PATH_TO_PACKAGE"
694702
mkdir -p ~/tmp
695703
cd ~/tmp
696-
node "$REPO_ROOT/cli.js" init "$PROJECT_NAME" --template "$REPO_ROOT"
697-
704+
node "$REPO_ROOT/cli.js" init "$PROJECT_NAME" --template "$REPO_ROOT" --verbose
698705
- run:
699706
name: Build template project
700707
command: |
@@ -992,6 +999,9 @@ jobs:
992999
cp LICENSE /tmp/cocoapods-package-root
9931000
9941001
tar -C /tmp/cocoapods-package-root/ -czvf /tmp/hermes/output/hermes-runtime-darwin-v$(get_release_version).tar.gz .
1002+
1003+
mkdir -p /tmp/hermes/hermes-runtime-darwin
1004+
cp /tmp/hermes/output/hermes-runtime-darwin-v$(get_release_version).tar.gz /tmp/hermes/hermes-runtime-darwin/.
9951005
- save_cache:
9961006
key: *hermes_cache_key
9971007
paths:
@@ -1002,12 +1012,13 @@ jobs:
10021012
- ~/react-native/hermes/build_macosx
10031013
- ~/react-native/hermes/destroot
10041014
- store_artifacts:
1005-
path: /tmp/hermes/output/
1015+
path: /tmp/hermes/hermes-runtime-darwin/
10061016
- store_artifacts:
10071017
path: /tmp/hermes/osx-bin/
10081018
- persist_to_workspace:
10091019
root: /tmp/hermes/
10101020
paths:
1021+
- hermes-runtime-darwin
10111022
- osx-bin
10121023

10131024
build_hermesc_windows:
@@ -1206,6 +1217,14 @@ jobs:
12061217
-H "Accept: application/vnd.github.v3+json" \
12071218
-u "$PAT_USERNAME:$PAT_TOKEN" \
12081219
-d "{\"event_type\": \"publish\", \"client_payload\": { \"version\": \"${CIRCLE_TAG:1}\" }}"
1220+
- run:
1221+
name: Install dependencies
1222+
command: apt update && apt install -y jq jo
1223+
- run:
1224+
name: Create draft GitHub Release and upload Hermes binaries
1225+
command: |
1226+
ARTIFACTS=("$HERMES_WS_DIR/hermes-runtime-darwin/hermes-runtime-darwin-$CIRCLE_TAG.tar.gz")
1227+
./scripts/circleci/create_github_release.sh $CIRCLE_TAG $CIRCLE_PROJECT_USERNAME $CIRCLE_PROJECT_REPONAME $GITHUB_TOKEN "${ARTIFACTS[@]}"
12091228
# END: Stable releases
12101229

12111230
# -------------------------

.eslintrc

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

.eslintrc.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @format
8+
*/
9+
10+
'use strict';
11+
12+
module.exports = {
13+
root: true,
14+
15+
extends: ['./packages/eslint-config-react-native-community/index.js'],
16+
17+
plugins: ['@react-native/eslint-plugin-specs'],
18+
19+
overrides: [
20+
// overriding the JS config from eslint-config-react-native-community config to ensure
21+
// that we use hermes-eslint for all js files
22+
{
23+
files: ['*.js'],
24+
parser: 'hermes-eslint',
25+
rules: {
26+
// These rules are not required with hermes-eslint
27+
'ft-flow/define-flow-type': 0,
28+
'ft-flow/use-flow-type': 0,
29+
// flow handles this check for us, so it's not required
30+
'no-undef': 0,
31+
},
32+
},
33+
34+
{
35+
files: ['Libraries/**/*.js'],
36+
rules: {
37+
'@react-native-community/no-haste-imports': 2,
38+
'@react-native-community/error-subclass-name': 2,
39+
'@react-native-community/platform-colors': 2,
40+
'@react-native/specs/react-native-modules': 2,
41+
},
42+
},
43+
{
44+
files: ['flow-typed/**/*.js'],
45+
rules: {
46+
quotes: 0,
47+
},
48+
},
49+
{
50+
files: [
51+
'**/__fixtures__/**/*.js',
52+
'**/__mocks__/**/*.js',
53+
'**/__tests__/**/*.js',
54+
'jest/**/*.js',
55+
'packages/rn-tester/**/*.js',
56+
],
57+
globals: {
58+
// Expose some Jest globals for test helpers
59+
afterAll: true,
60+
afterEach: true,
61+
beforeAll: true,
62+
beforeEach: true,
63+
expect: true,
64+
jest: true,
65+
},
66+
},
67+
{
68+
files: ['**/__tests__/**/*-test.js'],
69+
env: {
70+
jasmine: true,
71+
jest: true,
72+
},
73+
},
74+
],
75+
};

.flowconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ flow/
3232
emoji=true
3333

3434
exact_by_default=true
35+
exact_empty_objects=true
3536

3637
format.bracket_spacing=false
3738

@@ -73,4 +74,4 @@ untyped-import
7374
untyped-type-import
7475

7576
[version]
76-
^0.179.0
77+
^0.182.0

.flowconfig.android

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ flow/
3232
emoji=true
3333

3434
exact_by_default=true
35+
exact_empty_objects=true
3536

3637
format.bracket_spacing=false
3738

@@ -73,4 +74,4 @@ untyped-import
7374
untyped-type-import
7475

7576
[version]
76-
^0.179.0
77+
^0.182.0

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Changelog
88

99
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
10-
https://github.com/facebook/react-native/wiki/Changelog
10+
https://reactnative.dev/contributing/changelogs-in-pull-requests
1111
-->
1212

1313
[CATEGORY] [TYPE] - Message

.github/RELEASE_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- Template for pre-release GitHub release -->
2+
3+
<!-- TODO Post about this release to https://github.com/reactwg/react-native-releases/discussions) -->
4+
5+
- <!-- TODO List out notable picks for this patch -->
6+
7+
---
8+
9+
To test it, run:
10+
11+
npx react-native init RN__SHORT_VERSION__ --version __VERSION__
12+
13+
---
14+
15+
You can participate in the conversation on the status of this release in the [working group](https://github.com/reactwg/react-native-releases/discussions).
16+
17+
---
18+
19+
To help you upgrade to this version, you can use the [upgrade helper](https://react-native-community.github.io/upgrade-helper/) ⚛️
20+
21+
---
22+
23+
See changes from this release in the [changelog PR](https://github.com/facebook/react-native/labels/%F0%9F%93%9D%20Changelog)

.github/workflows/apply-version-label-issue.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
issues:
55
types: [opened, edited]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
add-version-label-issue:
12+
permissions:
13+
issues: write # for react-native-community/actions-apply-version-label to label issues
914
runs-on: ubuntu-latest
1015
continue-on-error: true
1116

.github/workflows/danger_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, edited, reopened, synchronize]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
danger:
912
runs-on: ubuntu-latest

.github/workflows/needs-attention.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
issue_comment:
55
types: created
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
applyNeedsAttentionLabel:
12+
permissions:
13+
contents: read # for actions/checkout to fetch code
14+
issues: write # for hramos/needs-attention to label issues
915
name: Apply Needs Attention Label
1016
runs-on: ubuntu-latest
1117
steps:

0 commit comments

Comments
 (0)