Skip to content

Commit 3b4df45

Browse files
authored
Merge branch 'main' into main
2 parents 47a4f94 + ff5fbd7 commit 3b4df45

File tree

184 files changed

+8463
-1171
lines changed

Some content is hidden

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

184 files changed

+8463
-1171
lines changed

.github/workflows/cache_dependencies.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,22 @@ jobs:
6262
/opt/android/cake_wallet/cw_haven/android/.cxx
6363
/opt/android/cake_wallet/scripts/monero_c/release
6464
key: ${{ hashFiles('**/prepare_moneroc.sh' ,'**/build_monero_all.sh' ,'**/cache_dependencies.yml') }}
65-
6665
- if: ${{ steps.cache-externals.outputs.cache-hit != 'true' }}
6766
name: Generate Externals
6867
run: |
6968
cd /opt/android/cake_wallet/scripts/android/
7069
source ./app_env.sh cakewallet
7170
./build_monero_all.sh
71+
72+
- name: Cache Keystore
73+
id: cache-keystore
74+
uses: actions/cache@v3
75+
with:
76+
path: /opt/android/cake_wallet/android/app/key.jks
77+
key: $STORE_PASS
78+
79+
- if: ${{ steps.cache-keystore.outputs.cache-hit != 'true' }}
80+
name: Generate KeyStore
81+
run: |
82+
cd /opt/android/cake_wallet/android/app
83+
keytool -genkey -v -keystore key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias testKey -noprompt -dname "CN=CakeWallet, OU=CakeWallet, O=CakeWallet, L=Florida, S=America, C=USA" -storepass $STORE_PASS -keypass $KEY_PASS

.github/workflows/pr_test_build_android.yml

+48
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ jobs:
115115
cd /opt/android/cake_wallet/scripts/android/
116116
./build_mwebd.sh --dont-install
117117
118+
# - name: Cache Keystore
119+
# id: cache-keystore
120+
# uses: actions/cache@v3
121+
# with:
122+
# path: /opt/android/cake_wallet/android/app/key.jks
123+
# key: $STORE_PASS
124+
#
125+
# - if: ${{ steps.cache-keystore.outputs.cache-hit != 'true' }}
118126
- name: Generate KeyStore
119127
run: |
120128
cd /opt/android/cake_wallet/android/app
@@ -192,6 +200,8 @@ jobs:
192200
echo "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';" >> cw_nano/lib/.secrets.g.dart
193201
echo "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
194202
echo "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
203+
echo "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';" >> lib/.secrets.g.dart
204+
echo "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY}}';" >> lib/.secrets.g.dar
195205
echo "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';" >> lib/.secrets.g.dart
196206
echo "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';" >> lib/.secrets.g.dart
197207
echo "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';" >> lib/.secrets.g.dart
@@ -201,6 +211,36 @@ jobs:
201211
run: |
202212
echo -e "id=com.cakewallet.test_${{ env.PR_NUMBER }}\nname=${{ env.BRANCH_NAME }}" > /opt/android/cake_wallet/android/app.properties
203213
214+
# Step 3: Download previous build number
215+
- name: Download previous build number
216+
id: download-build-number
217+
run: |
218+
# Download the artifact if it exists
219+
if [[ ! -f build_number.txt ]]; then
220+
echo "1" > build_number.txt
221+
fi
222+
223+
# Step 4: Read and Increment Build Number
224+
- name: Increment Build Number
225+
id: increment-build-number
226+
run: |
227+
# Read current build number from file
228+
BUILD_NUMBER=$(cat build_number.txt)
229+
BUILD_NUMBER=$((BUILD_NUMBER + 1))
230+
echo "New build number: $BUILD_NUMBER"
231+
232+
# Save the incremented build number
233+
echo "$BUILD_NUMBER" > build_number.txt
234+
235+
# Export the build number to use in later steps
236+
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
237+
238+
# Step 5: Update pubspec.yaml with new build number
239+
- name: Update build number
240+
run: |
241+
cd /opt/android/cake_wallet
242+
sed -i "s/^version: .*/version: 1.0.$BUILD_NUMBER/" pubspec.yaml
243+
204244
- name: Build
205245
run: |
206246
cd /opt/android/cake_wallet
@@ -231,6 +271,13 @@ jobs:
231271
with:
232272
path: /opt/android/cake_wallet/build/app/outputs/flutter-apk/test-apk/
233273

274+
# Re-upload updated build number for the next run
275+
- name: Upload updated build number
276+
uses: actions/upload-artifact@v3
277+
with:
278+
name: build_number
279+
path: build_number.txt
280+
234281
- name: Send Test APK
235282
continue-on-error: true
236283
uses: adrey/[email protected]
@@ -241,3 +288,4 @@ jobs:
241288
title: "${{ env.BRANCH_NAME }}.apk"
242289
filename: ${{ env.BRANCH_NAME }}.apk
243290
initial_comment: ${{ github.event.head_commit.message }}
291+

.github/workflows/pr_test_build_linux.yml

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ jobs:
175175
echo "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';" >> cw_nano/lib/.secrets.g.dart
176176
echo "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
177177
echo "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
178+
echo "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';" >> lib/.secrets.g.dart
179+
echo "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY}}';" >> lib/.secrets.g.dar
178180
echo "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';" >> lib/.secrets.g.dart
179181
echo "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';" >> lib/.secrets.g.dart
180182
echo "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';" >> lib/.secrets.g.dart

android/app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,8 @@ dependencies {
9292
androidTestImplementation 'androidx.test:runner:1.3.0'
9393
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
9494
}
95+
configurations {
96+
implementation.exclude module:'proto-google-common-protos'
97+
implementation.exclude module:'protolite-well-known-types'
98+
implementation.exclude module:'protobuf-javalite'
99+
}

android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx3072M
22
android.enableR8=true
33
android.useAndroidX=true
44
android.enableJetifier=true

assets/images/apple_pay_logo.png

54.7 KB
Loading
+9
Loading
+9
Loading

assets/images/bank.png

1.29 KB
Loading

assets/images/bank_dark.svg

+8
Loading

assets/images/bank_light.svg

+8
Loading

assets/images/buy_sell.png

9.7 KB
Loading

assets/images/card.svg

+1
Loading

assets/images/card_dark.svg

+7
Loading

assets/images/dollar_coin.svg

+12
Loading

assets/images/google_pay_icon.png

12 KB
Loading

assets/images/meld_logo.svg

+30
Loading

assets/images/revolut.png

11.3 KB
Loading

0 commit comments

Comments
 (0)