Skip to content

Commit 7fbbfe2

Browse files
authored
fix android build (keybase#23444)
1 parent 6efce52 commit 7fbbfe2

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎packaging/android/build_and_publish.sh‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ cd "$shared_dir"
5151

5252
if [ ! "$cache_npm" = "1" ]; then
5353
echo "Cleaning up main node_modules from previous runs"
54-
rm -rf "$shared_dir/node_modules"
55-
56-
yarn install --frozen-lockfile --prefer-offline
57-
yarn global add react-native-cli
54+
yarn install --pure-lockfile --ignore-optional --prefer-offline --check-files
5855
fi
5956

6057

@@ -73,6 +70,7 @@ echo "Packager running with PID $rn_packager_pid"
7370
# Build and publish the apk
7471
cd "$android_dir"
7572
./gradlew clean
73+
yarn jetify
7674
./gradlew publishReleaseBundle
7775

7876
"$client_dir/packaging/slack/send.sh" "Finished releasing android"

‎packaging/ios/build_and_publish.sh‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ cd "$shared_dir"
7171

7272
if [ ! "$cache_npm" = "1" ]; then
7373
echo "Cleaning up main node_modules from previous runs"
74-
rm -rf "$shared_dir/node_modules"
75-
76-
yarn install --frozen-lockfile --prefer-offline
77-
yarn global add react-native-cli
74+
yarn install --pure-lockfile --ignore-optional --prefer-offline --check-files
7875
fi
7976

8077

0 commit comments

Comments
 (0)