File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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'" ,
You can’t perform that action at this time.
0 commit comments