Skip to content

Commit 5603736

Browse files
committedJan 21, 2023
Merge commit '890805db9cc639846c93edc0e13eddbf67dbc7af' into 71merge
2 parents 952f398 + 890805d commit 5603736

File tree

2,679 files changed

+126832
-146649
lines changed

Some content is hidden

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

2,679 files changed

+126832
-146649
lines changed
 

‎.buckconfig

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
[android]
33
target = android-31
44

5+
[kotlin]
6+
compile_against_abis = True
7+
kotlin_version = 1.6.10
8+
59
[download]
610
max_number_of_retries = 3
711

‎.circleci/Dockerfiles/Dockerfile.android

+6-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
# Disabling this is okay because per (Github#774) this test, which is redundant to Azure Devops test,
2525
# fails in the fork because of Microsoft's V8 upgrade to Android
2626
#
27-
#FROM reactnativecommunity/react-native-android:5.2
27+
#FROM reactnativecommunity/react-native-android:6.0
2828

2929
LABEL Description="React Native Android Test Image"
3030
LABEL maintainer="Héctor Ramos <hector@fb.com>"
3131

3232
ARG BUCK_BUILD
3333
# set default environment variables
3434
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=\"-Xmx512m -XX:+HeapDumpOnOutOfMemoryError\""
35-
ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
35+
ENV KOTLIN_HOME="third-party/kotlin"
3636

3737
ADD .buckconfig /app/.buckconfig
3838
ADD .buckjavaargs /app/.buckjavaargs
@@ -44,6 +44,7 @@ ADD React /app/React
4444
ADD keystores /app/keystores
4545
ADD packages/react-native-codegen /app/packages/react-native-codegen
4646
ADD tools /app/tools
47+
add scripts /app/scripts
4748

4849
# add third party dependencies
4950
ADD Folly /app/Folly
@@ -54,6 +55,8 @@ ADD jsc /app/jsc
5455
# set workdir
5556
WORKDIR /app
5657

58+
RUN scripts/download-kotlin-compiler-with-buck.sh
59+
5760
RUN buck fetch ReactAndroid/src/test/java/com/facebook/react/modules
5861
RUN buck fetch ReactAndroid/src/main/java/com/facebook/react
5962
RUN buck fetch ReactAndroid/src/main/java/com/facebook/react/shell
@@ -80,6 +83,4 @@ ADD . /app
8083

8184
RUN yarn
8285

83-
RUN ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog
84-
85-
RUN ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1
86+
RUN ./gradlew :ReactAndroid:assembleDebug

0 commit comments

Comments
 (0)
Please sign in to comment.