Skip to content

Commit dbf37ce

Browse files
chore: added PreactNativeArchitectures flag on build command + added cache in android action
1 parent b9b7739 commit dbf37ce

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/release-android-base.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,23 @@ jobs:
8282
google-services-file: ${{ secrets.google-services-file }}
8383
if: ${{ env.google-services-file != '' }}
8484
run: echo ${{ env.google-services-file }} | base64 --decode >> ${{ inputs.root-path }}/android/app/google-services.json
85-
85+
86+
- name: Optimize Gradle for CI
87+
run: |
88+
echo "org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m" >> ${{ inputs.root-path }}/android/gradle.properties
89+
echo "org.gradle.parallel=true" >> ${{ inputs.root-path }}/android/gradle.properties
90+
echo "org.gradle.caching=true" >> ${{ inputs.root-path }}/android/gradle.properties
91+
92+
- name: Cache Gradle
93+
uses: actions/cache@v3
94+
with:
95+
path: |
96+
~/.gradle/caches
97+
~/.gradle/wrapper
98+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
99+
restore-keys: |
100+
${{ runner.os }}-gradle-
101+
86102
- name: Build APK
87103
run: |
88104
if [ ${{ inputs.release-type }} = 'internal' ]; then

wallets/rn_cli_wallet/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"scripts": {
66
"android": "yarn run copy:debug && react-native run-android --mode=debug --appId com.walletconnect.web3wallet.rnsample.debug",
7-
"android:build": "yarn run copy:production && cd android && ./gradlew clean && ./gradlew assembleRelease",
8-
"android:build:internal": "yarn run copy:internal && cd android && ./gradlew clean && ./gradlew assembleInternal",
7+
"android:build": "yarn run copy:production && cd android && ./gradlew clean && ./gradlew assembleRelease -PreactNativeArchitectures=arm64-v8a",
8+
"android:build:internal": "yarn run copy:internal && cd android && ./gradlew clean && ./gradlew assembleInternal -PreactNativeArchitectures=arm64-v8a",
99
"ios": "react-native run-ios --scheme 'RNWallet-Debug'",
1010
"ios:internal": "react-native run-ios --scheme 'RNWallet-Internal'",
1111
"bundle:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'",

0 commit comments

Comments
 (0)