Skip to content

Commit 1653d6b

Browse files
committed
Merge branch 'main' into tts-span
2 parents 3d4e662 + 1e6945e commit 1653d6b

File tree

326 files changed

+3812
-6424
lines changed

Some content is hidden

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

326 files changed

+3812
-6424
lines changed

.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.4
17+
FROM reactnativecommunity/react-native-android:6.0
1818

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

.circleci/config.yml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ executors:
102102
reactnativeandroid:
103103
<<: *defaults
104104
docker:
105-
- image: reactnativecommunity/react-native-android:5.4
105+
- image: reactnativecommunity/react-native-android:6.0
106106
resource_class: "xlarge"
107107
environment:
108108
- TERM: "dumb"
@@ -669,10 +669,6 @@ jobs:
669669
buck build ReactAndroid/src/main/java/com/facebook/react
670670
buck build ReactAndroid/src/main/java/com/facebook/react/shell
671671
672-
- run:
673-
name: Validate Android Test Environment
674-
command: ./scripts/validate-android-test-env.sh
675-
676672
- run:
677673
name: Run Tests - Android Unit Tests with Buck
678674
command: buck test ReactAndroid/src/test/... --config build.threads=$BUILD_THREADS --xml ./reports/buck/all-results-raw.xml
@@ -718,10 +714,6 @@ jobs:
718714
- setup_artifacts
719715
- run_yarn
720716

721-
- run:
722-
name: Validate Android SDK Install
723-
command: ./scripts/validate-android-sdk.sh
724-
725717
# Starting emulator in advance as it takes some time to boot.
726718
- run:
727719
name: Create Android Virtual Device
@@ -768,9 +760,11 @@ jobs:
768760
description: The Android build type. Must be one of "Debug", "Release".
769761
type: enum
770762
enum: ["Debug", "Release"]
771-
newarchitecture:
772-
type: boolean
773-
default: false
763+
architecture:
764+
default: "OldArch"
765+
description: Which React Native architecture to use. Must be one of "NewArch", "OldArch".
766+
type: enum
767+
enum: [ "NewArch", "OldArch" ]
774768
jsengine:
775769
default: "Hermes"
776770
description: Which JavaScript engine to use. Must be one of "Hermes", "JSC".
@@ -783,17 +777,6 @@ jobs:
783777
- run_yarn
784778
- attach_workspace:
785779
at: .
786-
- when:
787-
condition:
788-
equal: ["JSC", << parameters.jsengine >>]
789-
steps:
790-
- run:
791-
name: Set enableHermes in buld.gradle to false
792-
command: |
793-
node ./scripts/set-rn-engine.js -e jsc
794-
echo "Hermes disabled."
795-
grep enableHermes: template/android/app/build.gradle
796-
797780
- run:
798781
name: Create Android template project
799782
command: |
@@ -804,8 +787,20 @@ jobs:
804787
yarn
805788
806789
- run:
807-
name: Build the template application for << parameters.flavor >> with New Architecture set to << parameters.newarchitecture >>, and using the << parameters.jsengine>> JS engine.
808-
command: cd /tmp/$PROJECT_NAME/android/ && ./gradlew assemble<< parameters.flavor >> -PnewArchEnabled=<< parameters.newarchitecture >>
790+
name: Build the template application for << parameters.flavor >> with Architecture set to << parameters.architecture >>, and using the << parameters.jsengine>> JS engine.
791+
command: |
792+
cd /tmp/$PROJECT_NAME/android/
793+
if [[ << parameters.architecture >> == "NewArch" ]]; then
794+
export ORG_GRADLE_PROJECT_newArchEnabled=true
795+
else
796+
export ORG_GRADLE_PROJECT_newArchEnabled=false
797+
fi
798+
if [[ << parameters.jsengine >> == "Hermes" ]]; then
799+
export ORG_GRADLE_PROJECT_hermesEnabled=true
800+
else
801+
export ORG_GRADLE_PROJECT_hermesEnabled=false
802+
fi
803+
./gradlew assemble<< parameters.flavor >> -PREACT_NATIVE_MAVEN_LOCAL_REPO=/root/react-native/maven-local
809804
810805
# -------------------------
811806
# JOBS: Test iOS Template
@@ -1443,6 +1438,15 @@ jobs:
14431438
command: zip -r /tmp/hermes-native-symbols.zip ~/react-native/ReactAndroid/hermes-engine/build/intermediates/cmake/
14441439
- store_artifacts:
14451440
path: /tmp/hermes-native-symbols.zip
1441+
- run:
1442+
name: Zip Maven Artifacts from /tmp/maven-local
1443+
command: zip -r /tmp/maven-local.zip /tmp/maven-local
1444+
- store_artifacts:
1445+
path: /tmp/maven-local.zip
1446+
- persist_to_workspace:
1447+
root: /tmp
1448+
paths:
1449+
- maven-local
14461450

14471451
# START: Commitlies
14481452
# Provide a react-native package for this commit as a Circle CI release artifact.
@@ -1599,7 +1603,7 @@ workflows:
15991603
- build_npm_package
16001604
matrix:
16011605
parameters:
1602-
newarchitecture: [true, false]
1606+
architecture: ["NewArch", "OldArch"]
16031607
jsengine: ["Hermes", "JSC"]
16041608
flavor: ["Debug", "Release"]
16051609
- test_buck

.flowconfig

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

3434
exact_by_default=true
35-
exact_empty_objects=true
3635

3736
format.bracket_spacing=false
3837

@@ -74,4 +73,4 @@ untyped-import
7473
untyped-type-import
7574

7675
[version]
77-
^0.190.1
76+
^0.191.0

.flowconfig.android

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

3434
exact_by_default=true
35-
exact_empty_objects=true
3635

3736
format.bracket_spacing=false
3837

@@ -74,4 +73,4 @@ untyped-import
7473
untyped-type-import
7574

7675
[version]
77-
^0.190.1
76+
^0.191.0

BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ rn_xplat_cxx_library2(
197197
visibility = ["PUBLIC"],
198198
deps = [
199199
"//xplat/folly:dynamic",
200-
react_native_xplat_target("jserrorhandler:jserrorhandler"),
201200
],
202201
)
203202

@@ -743,6 +742,7 @@ rn_library(
743742
"//xplat/js:node_modules__abort_19controller",
744743
"//xplat/js:node_modules__anser",
745744
"//xplat/js:node_modules__base64_19js",
745+
"//xplat/js:node_modules__deprecated_19react_19native_19prop_19types",
746746
"//xplat/js:node_modules__event_19target_19shim",
747747
"//xplat/js:node_modules__invariant",
748748
"//xplat/js:node_modules__memoize_19one",

0 commit comments

Comments
 (0)