-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
8,463 additions
and
1,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,14 @@ jobs: | |
cd /opt/android/cake_wallet/scripts/android/ | ||
./build_mwebd.sh --dont-install | ||
# - name: Cache Keystore | ||
# id: cache-keystore | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: /opt/android/cake_wallet/android/app/key.jks | ||
# key: $STORE_PASS | ||
# | ||
# - if: ${{ steps.cache-keystore.outputs.cache-hit != 'true' }} | ||
- name: Generate KeyStore | ||
run: | | ||
cd /opt/android/cake_wallet/android/app | ||
|
@@ -192,6 +200,8 @@ jobs: | |
echo "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';" >> cw_nano/lib/.secrets.g.dart | ||
echo "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart | ||
echo "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart | ||
echo "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';" >> lib/.secrets.g.dart | ||
echo "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY}}';" >> lib/.secrets.g.dar | ||
echo "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';" >> lib/.secrets.g.dart | ||
echo "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';" >> lib/.secrets.g.dart | ||
echo "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';" >> lib/.secrets.g.dart | ||
|
@@ -201,6 +211,36 @@ jobs: | |
run: | | ||
echo -e "id=com.cakewallet.test_${{ env.PR_NUMBER }}\nname=${{ env.BRANCH_NAME }}" > /opt/android/cake_wallet/android/app.properties | ||
# Step 3: Download previous build number | ||
- name: Download previous build number | ||
id: download-build-number | ||
run: | | ||
# Download the artifact if it exists | ||
if [[ ! -f build_number.txt ]]; then | ||
echo "1" > build_number.txt | ||
fi | ||
# Step 4: Read and Increment Build Number | ||
- name: Increment Build Number | ||
id: increment-build-number | ||
run: | | ||
# Read current build number from file | ||
BUILD_NUMBER=$(cat build_number.txt) | ||
BUILD_NUMBER=$((BUILD_NUMBER + 1)) | ||
echo "New build number: $BUILD_NUMBER" | ||
# Save the incremented build number | ||
echo "$BUILD_NUMBER" > build_number.txt | ||
# Export the build number to use in later steps | ||
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV | ||
# Step 5: Update pubspec.yaml with new build number | ||
- name: Update build number | ||
run: | | ||
cd /opt/android/cake_wallet | ||
sed -i "s/^version: .*/version: 1.0.$BUILD_NUMBER/" pubspec.yaml | ||
- name: Build | ||
run: | | ||
cd /opt/android/cake_wallet | ||
|
@@ -231,6 +271,13 @@ jobs: | |
with: | ||
path: /opt/android/cake_wallet/build/app/outputs/flutter-apk/test-apk/ | ||
|
||
# Re-upload updated build number for the next run | ||
- name: Upload updated build number | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build_number | ||
path: build_number.txt | ||
|
||
- name: Send Test APK | ||
continue-on-error: true | ||
uses: adrey/[email protected] | ||
|
@@ -241,3 +288,4 @@ jobs: | |
title: "${{ env.BRANCH_NAME }}.apk" | ||
filename: ${{ env.BRANCH_NAME }}.apk | ||
initial_comment: ${{ github.event.head_commit.message }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
org.gradle.jvmargs=-Xmx3072M | ||
android.enableR8=true | ||
android.useAndroidX=true | ||
android.enableJetifier=true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.