Skip to content

Commit e57c818

Browse files
committed
Merge branch 'main' of https://github.com/facebook/react-native into realize-last-focused
2 parents 3ab1de1 + 51fe190 commit e57c818

File tree

379 files changed

+6450
-3067
lines changed

Some content is hidden

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

379 files changed

+6450
-3067
lines changed

.buckconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[android]
3-
target = android-30
3+
target = android-31
44

55
[download]
66
max_number_of_retries = 3

.circleci/Dockerfiles/Dockerfile.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# and build a Android application that can be used to run the
1515
# tests specified in the scripts/ directory.
1616
#
17-
FROM reactnativecommunity/react-native-android:5.1
17+
FROM reactnativecommunity/react-native-android:5.2
1818

1919
LABEL Description="React Native Android Test Image"
2020
LABEL maintainer="Héctor Ramos <[email protected]>"

.circleci/config.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ executors:
3636
reactnativeandroid:
3737
<<: *defaults
3838
docker:
39-
- image: reactnativecommunity/react-native-android:5.1
39+
- image: reactnativecommunity/react-native-android:5.2
4040
resource_class: "large"
4141
environment:
4242
- TERM: "dumb"
@@ -92,12 +92,6 @@ commands:
9292
- ~/.cache/yarn
9393
key: v4-yarn-cache-{{ arch }}-{{ checksum "yarn.lock" }}
9494

95-
build_codegen:
96-
steps:
97-
- run:
98-
name: "Codegen: Build react-native-codegen package"
99-
command: cd packages/react-native-codegen && yarn build
100-
10195
install_buck_tooling:
10296
steps:
10397
- restore_cache:
@@ -242,7 +236,7 @@ jobs:
242236
command: |
243237
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
244238
apt update && apt install -y shellcheck jq
245-
apt-get install openssl ca-certificates
239+
apt-get -y install openssl ca-certificates
246240
update-ca-certificates
247241
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
248242
apt update && apt install -y shellcheck jq
@@ -373,7 +367,6 @@ jobs:
373367
- setup_artifacts
374368
- setup_ruby
375369
- run_yarn
376-
- build_codegen
377370

378371
- run: |
379372
cd packages/rn-tester
@@ -649,8 +642,8 @@ jobs:
649642
environment:
650643
- ANDROID_HOME: "C:\\Android\\android-sdk"
651644
- ANDROID_NDK: "C:\\Android\\android-sdk\\ndk\\20.1.5948944"
652-
- ANDROID_BUILD_VERSION: 30
653-
- ANDROID_TOOLS_VERSION: 30.0.2
645+
- ANDROID_BUILD_VERSION: 31
646+
- ANDROID_TOOLS_VERSION: 31.0.0
654647
- GRADLE_OPTS: -Dorg.gradle.daemon=false
655648
- NDK_VERSION: 21.4.7075529
656649
steps:
@@ -749,6 +742,19 @@ jobs:
749742
# -------------------------
750743
# JOBS: Releases
751744
# -------------------------
745+
prepare_package_for_release:
746+
executor: reactnativeios
747+
steps:
748+
- checkout
749+
- run_yarn
750+
- add_ssh_keys:
751+
fingerprints:
752+
- "1c:98:e0:3a:52:79:95:29:12:cd:b4:87:5b:41:e2:bb"
753+
- run:
754+
name: "Set new react-native version and commit changes"
755+
command: |
756+
node ./scripts/prepare-package-for-release.js
757+
752758
build_npm_package:
753759
parameters:
754760
publish_npm_args:
@@ -847,7 +853,6 @@ workflows:
847853
only:
848854
- main
849855
- /^pull\/.*$/
850-
- /^(\d+)\.(\d+)-stable$/
851856
- test_js:
852857
run_disabled_tests: false
853858
filters:
@@ -915,6 +920,15 @@ workflows:
915920

916921
releases:
917922
jobs:
923+
# This job will trigger on pushes to release branch and commit a version tag to trigger `build_npm_package` for release
924+
- prepare_package_for_release:
925+
name: prepare_package_for_release
926+
filters:
927+
branches:
928+
only:
929+
- /^(\d+)\.(\d+)-stable$/
930+
931+
# This job will trigger when a version tag is pushed (by prepare_package_for_release)
918932
- build_npm_package:
919933
name: build_and_publish_npm_package
920934
context: react-native-bot

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77

88
"plugins": [
9-
"@react-native/eslint-plugin-codegen"
9+
"@react-native/eslint-plugin-specs"
1010
],
1111

1212
"overrides": [
@@ -18,7 +18,7 @@
1818
"@react-native-community/no-haste-imports": 2,
1919
"@react-native-community/error-subclass-name": 2,
2020
"@react-native-community/platform-colors": 2,
21-
"@react-native/codegen/react-native-modules": 2
21+
"@react-native/specs/react-native-modules": 2
2222
}
2323
},
2424
{

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ untyped-import
7070
untyped-type-import
7171

7272
[version]
73-
^0.165.0
73+
^0.167.1

.flowconfig.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ untyped-import
7070
untyped-type-import
7171

7272
[version]
73-
^0.165.0
73+
^0.167.1

.github/ISSUE_TEMPLATE/release_blocker_form.yml

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

.github/ISSUE_TEMPLATE/upgrade-regression-form.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Upgrade Regression
2-
description: If you are upgrading to a stable release and encounter a regression.
1+
name: Upgrade - Build Regression
2+
description: If you are upgrading to a new React Native version (stable or pre-release) and encounter a build regression.
33
labels: ["Needs: Triage :mag:", "Type: Upgrade Issue"]
44
body:
55
- type: markdown

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

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

.github/workflows/create-new-tag-version-label.yml

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

0 commit comments

Comments
 (0)