2025-01-15 11:09:59 +00:00
|
|
|
name: Cake Wallet Android
|
2022-11-27 20:10:21 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
on: [push]
|
2022-11-27 20:10:21 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2022-11-27 20:10:21 +00:00
|
|
|
jobs:
|
2023-03-01 03:12:36 +00:00
|
|
|
PR_test_build:
|
2025-01-15 11:09:59 +00:00
|
|
|
runs-on: linux-amd64
|
|
|
|
container:
|
|
|
|
image: ghcr.io/cake-tech/cake_wallet:main-linux
|
|
|
|
env:
|
|
|
|
STORE_PASS: test@cake_wallet
|
|
|
|
KEY_PASS: test@cake_wallet
|
|
|
|
MONEROC_CACHE_DIR_ROOT: /opt/generic_cache
|
|
|
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
|
|
|
ANDROID_AVD_HOME: /root/.android/avd
|
|
|
|
volumes:
|
|
|
|
- /opt/cw_cache_android/root/.cache:/root/.cache
|
|
|
|
- /opt/cw_cache_android/root/.android/avd/:/root/.android/avd
|
|
|
|
- /opt/cw_cache_android/root/.ccache:/root/.ccache
|
|
|
|
- /opt/cw_cache_android/root/.pub-cache/:/root/.pub-cache
|
|
|
|
- /opt/cw_cache_android/root/.gradle/:/root/.gradle
|
|
|
|
- /opt/cw_cache_android/root/.android/:/root/.android
|
|
|
|
- /opt/cw_cache_android/root/go/pkg:/root/go/pkg
|
|
|
|
- /opt/cw_cache_android/opt/generic_cache:/opt/generic_cache
|
|
|
|
- /dev/kvm:/dev/kvm
|
2024-09-22 02:46:51 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
api-level: [29]
|
2022-11-27 20:10:21 +00:00
|
|
|
|
|
|
|
steps:
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Fix github actions messing up $HOME...
|
|
|
|
run: 'echo HOME=/root | sudo tee -a $GITHUB_ENV'
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: configure git
|
2022-11-29 13:19:51 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
git config --global user.email "ci@cakewallet.com"
|
|
|
|
git config --global user.name "CakeWallet CI"
|
2022-11-29 13:19:51 +00:00
|
|
|
- name: Add secrets
|
|
|
|
run: |
|
|
|
|
touch lib/.secrets.g.dart
|
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains
* chore: Cleanup pubspec and add core evm dependencies
* feat: Replicated core evm chain files, time to start fixing the issues
* feat: Setup evm central package to handle all evm chains
* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance
* feat: Setup and adjust configs to reflect new evm configurations
* Remove unneeded file
* fix: Changes done while re-reviewing entire structure and refactor
* fix: Add evm chain wallet path to imports in configure file
* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes
* fix: Make EVMChainWallet a central abstract class and adjust accordingly
* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file
* fix: Testing issues
* fix: Add localization for nft tile and details page texts and add dashes for null responses
* fix: merge conflicts
* Minor fixes for building Monero.com
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 18:01:48 +00:00
|
|
|
touch cw_evm/lib/.secrets.g.dart
|
CW-555-Add-Solana-Wallet (#1272)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 13:39:19 +00:00
|
|
|
touch cw_solana/lib/.secrets.g.dart
|
2024-07-04 19:44:08 +00:00
|
|
|
touch cw_core/lib/.secrets.g.dart
|
|
|
|
touch cw_nano/lib/.secrets.g.dart
|
CW-525-Add-Tron-Wallet (#1327)
* chore: Initial setup for Tron Wallet
* feat: Create Tron Wallet base flow implemented, keys, address, receive, restore and proxy classes all setup
* feat: Display seed and key within the app
* feat: Activate restore from key and seed for Tron wallet
* feat: Add icon for tron wallet in wallet listing page
* feat: Activate display of receive address for tron
* feat: Fetch and display tron balance, sending transaction flow setup, fee limit calculation setup
* feat: Implement sending of native tron, setup sending of trc20 tokens
* chore: Rename function
* Delete lib/tron/tron.dart
* feat: Activate exchange for tron and its tokens, implement balance display for trc20 tokens and setup secrets configuration for tron
* feat: Implement tron token management, add, remove, delete, and get tokens in home settings view, also minor cleanup
* feat: Activate buy and sell for tron
* feat: Implement restore from QR, transactions history listing for both native transactions and trc20 transactions
* feat: Activate send all and do some minor cleanups
* chore: Fix some lint infos and warnings
* chore: Adjust configurations
* ci: Modify CI to create and add secrets for node
* fix: Fixes made while self reviewing the PR for this feature
* feat: Add guide for adding new wallet types, and add fixes to requested changes
* fix: Handle exceptions gracefully
* fix: Alternative for trc20 estimated fee
* fix: Fixes to display of amount and fee, removing clashes
* fix: Fee calculation WIP
* fix: Fix issue with handling of send all flow and display of amount and fee values before broadcasting transaction
* fix: PR review fixes and fix merge conflicts
* fix: Modify fetching assetOfTransaction [skip ci]
* fix: Move tron settings migration to 33
2024-05-03 18:00:05 +00:00
|
|
|
touch cw_tron/lib/.secrets.g.dart
|
2025-01-15 11:09:59 +00:00
|
|
|
if [[ "x${{ secrets.SALT }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const salt = '954f787f12622067f7e548d9450c3832';" > lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const salt = '${{ secrets.SALT }}';" > lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.KEY_CHAIN_SALT }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const keychainSalt = '2d2beba777dbf7dff7013b7a';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const keychainSalt = '${{ secrets.KEY_CHAIN_SALT }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.KEY }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const key = '638e98820ec10a2945e968435c9397a3';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const key = '${{ secrets.KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.WALLET_SALT }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const walletSalt = '8f7f1b70';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const walletSalt = '${{ secrets.WALLET_SALT }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.SHORT_KEY }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const shortKey = '653f270c2c152bc7ec864afe';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const shortKey = '${{ secrets.SHORT_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.BACKUP_SALT }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const backupSalt = 'bf630d24ff0b6f60';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const backupSalt = '${{ secrets.BACKUP_SALT }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
|
|
|
if [[ "x${{ secrets.BACKUP_KEY_CHAIN_SALT }}" == "x" ]];
|
|
|
|
then
|
|
|
|
echo "const backupKeychainSalt = 'bf630d24ff0b6f60';" >> lib/.secrets.g.dart
|
|
|
|
else
|
|
|
|
echo "const backupKeychainSalt = '${{ secrets.BACKUP_KEY_CHAIN_SALT }}';" >> lib/.secrets.g.dart
|
|
|
|
fi
|
2022-11-29 13:19:51 +00:00
|
|
|
echo "const changeNowApiKey = '${{ secrets.CHANGE_NOW_API_KEY }}';" >> lib/.secrets.g.dart
|
2023-04-14 04:39:08 +00:00
|
|
|
echo "const changeNowApiKeyDesktop = '${{ secrets.CHANGE_NOW_API_KEY_DESKTOP }}';" >> lib/.secrets.g.dart
|
2022-11-29 13:19:51 +00:00
|
|
|
echo "const wyreSecretKey = '${{ secrets.WYRE_SECRET_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const wyreApiKey = '${{ secrets.WYRE_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const wyreAccountId = '${{ secrets.WYRE_ACCOUNT_ID }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const moonPayApiKey = '${{ secrets.MOON_PAY_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const moonPaySecretKey = '${{ secrets.MOON_PAY_SECRET_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const sideShiftAffiliateId = '${{ secrets.SIDE_SHIFT_AFFILIATE_ID }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const simpleSwapApiKey = '${{ secrets.SIMPLE_SWAP_API_KEY }}';" >> lib/.secrets.g.dart
|
2023-04-14 04:39:08 +00:00
|
|
|
echo "const simpleSwapApiKeyDesktop = '${{ secrets.SIMPLE_SWAP_API_KEY_DESKTOP }}';" >> lib/.secrets.g.dart
|
2022-11-29 13:19:51 +00:00
|
|
|
echo "const onramperApiKey = '${{ secrets.ONRAMPER_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const anypayToken = '${{ secrets.ANY_PAY_TOKEN }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const ioniaClientId = '${{ secrets.IONIA_CLIENT_ID }}';" >> lib/.secrets.g.dart
|
2023-01-26 18:20:01 +00:00
|
|
|
echo "const twitterBearerToken = '${{ secrets.TWITTER_BEARER_TOKEN }}';" >> lib/.secrets.g.dart
|
2023-02-06 20:20:46 +00:00
|
|
|
echo "const trocadorApiKey = '${{ secrets.TROCADOR_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const trocadorExchangeMarkup = '${{ secrets.TROCADOR_EXCHANGE_MARKUP }}';" >> lib/.secrets.g.dart
|
2023-03-24 15:26:42 +00:00
|
|
|
echo "const anonPayReferralCode = '${{ secrets.ANON_PAY_REFERRAL_CODE }}';" >> lib/.secrets.g.dart
|
2023-03-31 18:22:51 +00:00
|
|
|
echo "const fiatApiKey = '${{ secrets.FIAT_API_KEY }}';" >> lib/.secrets.g.dart
|
CW-584-WalletConnect-For-Solana (#1362)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
* fix: Still trying to figure out what's wrong
* Sync with remote
* feat: First run for walletconnect for solana
* chore: Add ankr api key to secrets
* remove duplicate transaction [skip ci]
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-04-09 00:26:11 +00:00
|
|
|
echo "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';" >> lib/.secrets.g.dart
|
2024-12-26 22:42:36 +00:00
|
|
|
echo "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';" >> lib/.secrets.g.dart
|
2024-09-11 21:19:47 +00:00
|
|
|
echo "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const polygonScanApiKey = '${{ secrets.POLYGON_SCAN_API_KEY }}';" >> lib/.secrets.g.dart
|
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains
* chore: Cleanup pubspec and add core evm dependencies
* feat: Replicated core evm chain files, time to start fixing the issues
* feat: Setup evm central package to handle all evm chains
* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance
* feat: Setup and adjust configs to reflect new evm configurations
* Remove unneeded file
* fix: Changes done while re-reviewing entire structure and refactor
* fix: Add evm chain wallet path to imports in configure file
* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes
* fix: Make EVMChainWallet a central abstract class and adjust accordingly
* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file
* fix: Testing issues
* fix: Add localization for nft tile and details page texts and add dashes for null responses
* fix: merge conflicts
* Minor fixes for building Monero.com
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 18:01:48 +00:00
|
|
|
echo "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';" >> cw_evm/lib/.secrets.g.dart
|
2024-04-08 22:53:14 +00:00
|
|
|
echo "const moralisApiKey = '${{ secrets.MORALIS_API_KEY }}';" >> cw_evm/lib/.secrets.g.dart
|
2024-12-11 14:45:15 +00:00
|
|
|
echo "const nowNodesApiKey = '${{ secrets.EVM_NOWNODES_API_KEY }}';" >> cw_evm/lib/.secrets.g.dart
|
2023-08-15 00:47:25 +00:00
|
|
|
echo "const chatwootWebsiteToken = '${{ secrets.CHATWOOT_WEBSITE_TOKEN }}';" >> lib/.secrets.g.dart
|
2023-10-12 00:20:19 +00:00
|
|
|
echo "const exolixApiKey = '${{ secrets.EXOLIX_API_KEY }}';" >> lib/.secrets.g.dart
|
2023-09-14 19:14:49 +00:00
|
|
|
echo "const robinhoodApplicationId = '${{ secrets.ROBINHOOD_APPLICATION_ID }}';" >> lib/.secrets.g.dart
|
2024-03-25 18:16:57 +00:00
|
|
|
echo "const exchangeHelperApiKey = '${{ secrets.ROBINHOOD_CID_CLIENT_SECRET }}';" >> lib/.secrets.g.dart
|
2023-10-03 14:56:10 +00:00
|
|
|
echo "const walletConnectProjectId = '${{ secrets.WALLET_CONNECT_PROJECT_ID }}';" >> lib/.secrets.g.dart
|
2023-11-22 17:43:26 +00:00
|
|
|
echo "const moralisApiKey = '${{ secrets.MORALIS_API_KEY }}';" >> lib/.secrets.g.dart
|
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains
* chore: Cleanup pubspec and add core evm dependencies
* feat: Replicated core evm chain files, time to start fixing the issues
* feat: Setup evm central package to handle all evm chains
* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance
* feat: Setup and adjust configs to reflect new evm configurations
* Remove unneeded file
* fix: Changes done while re-reviewing entire structure and refactor
* fix: Add evm chain wallet path to imports in configure file
* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes
* fix: Make EVMChainWallet a central abstract class and adjust accordingly
* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file
* fix: Testing issues
* fix: Add localization for nft tile and details page texts and add dashes for null responses
* fix: merge conflicts
* Minor fixes for building Monero.com
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 18:01:48 +00:00
|
|
|
echo "const polygonScanApiKey = '${{ secrets.POLYGON_SCAN_API_KEY }}';" >> cw_evm/lib/.secrets.g.dart
|
CW-555-Add-Solana-Wallet (#1272)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 13:39:19 +00:00
|
|
|
echo "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';" >> cw_solana/lib/.secrets.g.dart
|
2024-12-26 22:42:36 +00:00
|
|
|
echo "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';" >> cw_solana/lib/.secrets.g.dart
|
2024-06-06 04:51:22 +00:00
|
|
|
echo "const testCakePayApiKey = '${{ secrets.TEST_CAKE_PAY_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const cakePayApiKey = '${{ secrets.CAKE_PAY_API_KEY }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const authorization = '${{ secrets.CAKE_PAY_AUTHORIZATION }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const CSRFToken = '${{ secrets.CSRF_TOKEN }}';" >> lib/.secrets.g.dart
|
2024-05-14 02:07:16 +00:00
|
|
|
echo "const quantexExchangeMarkup = '${{ secrets.QUANTEX_EXCHANGE_MARKUP }}';" >> lib/.secrets.g.dart
|
2024-05-08 00:00:01 +00:00
|
|
|
echo "const nano2ApiKey = '${{ secrets.NANO2_API_KEY }}';" >> cw_nano/lib/.secrets.g.dart
|
2024-07-04 19:44:08 +00:00
|
|
|
echo "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';" >> cw_nano/lib/.secrets.g.dart
|
CW-525-Add-Tron-Wallet (#1327)
* chore: Initial setup for Tron Wallet
* feat: Create Tron Wallet base flow implemented, keys, address, receive, restore and proxy classes all setup
* feat: Display seed and key within the app
* feat: Activate restore from key and seed for Tron wallet
* feat: Add icon for tron wallet in wallet listing page
* feat: Activate display of receive address for tron
* feat: Fetch and display tron balance, sending transaction flow setup, fee limit calculation setup
* feat: Implement sending of native tron, setup sending of trc20 tokens
* chore: Rename function
* Delete lib/tron/tron.dart
* feat: Activate exchange for tron and its tokens, implement balance display for trc20 tokens and setup secrets configuration for tron
* feat: Implement tron token management, add, remove, delete, and get tokens in home settings view, also minor cleanup
* feat: Activate buy and sell for tron
* feat: Implement restore from QR, transactions history listing for both native transactions and trc20 transactions
* feat: Activate send all and do some minor cleanups
* chore: Fix some lint infos and warnings
* chore: Adjust configurations
* ci: Modify CI to create and add secrets for node
* fix: Fixes made while self reviewing the PR for this feature
* feat: Add guide for adding new wallet types, and add fixes to requested changes
* fix: Handle exceptions gracefully
* fix: Alternative for trc20 estimated fee
* fix: Fixes to display of amount and fee, removing clashes
* fix: Fee calculation WIP
* fix: Fix issue with handling of send all flow and display of amount and fee values before broadcasting transaction
* fix: PR review fixes and fix merge conflicts
* fix: Modify fetching assetOfTransaction [skip ci]
* fix: Move tron settings migration to 33
2024-05-03 18:00:05 +00:00
|
|
|
echo "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
|
2024-06-28 21:36:12 +00:00
|
|
|
echo "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';" >> cw_tron/lib/.secrets.g.dart
|
2024-11-09 19:00:56 +00:00
|
|
|
echo "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';" >> lib/.secrets.g.dart
|
2024-12-13 19:45:41 +00:00
|
|
|
echo "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY}}';" >> lib/.secrets.g.dart
|
2024-09-11 02:14:17 +00:00
|
|
|
echo "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';" >> lib/.secrets.g.dart
|
2024-09-06 13:03:18 +00:00
|
|
|
echo "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const stealthExAdditionalFeePercent = '${{ secrets.STEALTH_EX_ADDITIONAL_FEE_PERCENT }}';" >> lib/.secrets.g.dart
|
2025-01-15 11:09:59 +00:00
|
|
|
# for tests
|
|
|
|
echo "const moneroTestWalletSeeds ='${{ secrets.MONERO_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const moneroLegacyTestWalletSeeds = '${{ secrets.MONERO_LEGACY_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const bitcoinTestWalletSeeds = '${{ secrets.BITCOIN_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const ethereumTestWalletSeeds = '${{ secrets.ETHEREUM_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const litecoinTestWalletSeeds = '${{ secrets.LITECOIN_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const bitcoinCashTestWalletSeeds = '${{ secrets.BITCOIN_CASH_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const polygonTestWalletSeeds = '${{ secrets.POLYGON_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const solanaTestWalletSeeds = '${{ secrets.SOLANA_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const tronTestWalletSeeds = '${{ secrets.TRON_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const nanoTestWalletSeeds = '${{ secrets.NANO_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const wowneroTestWalletSeeds = '${{ secrets.WOWNERO_TEST_WALLET_SEEDS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const moneroTestWalletReceiveAddress = '${{ secrets.MONERO_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const bitcoinTestWalletReceiveAddress = '${{ secrets.BITCOIN_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const ethereumTestWalletReceiveAddress = '${{ secrets.ETHEREUM_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const litecoinTestWalletReceiveAddress = '${{ secrets.LITECOIN_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const bitcoinCashTestWalletReceiveAddress = '${{ secrets.BITCOIN_CASH_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const polygonTestWalletReceiveAddress = '${{ secrets.POLYGON_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const solanaTestWalletReceiveAddress = '${{ secrets.SOLANA_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const tronTestWalletReceiveAddress = '${{ secrets.TRON_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const nanoTestWalletReceiveAddress = '${{ secrets.NANO_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const wowneroTestWalletReceiveAddress = '${{ secrets.WOWNERO_TEST_WALLET_RECEIVE_ADDRESS }}';" >> lib/.secrets.g.dart
|
|
|
|
echo "const moneroTestWalletBlockHeight = '${{ secrets.MONERO_TEST_WALLET_BLOCK_HEIGHT }}';" >> lib/.secrets.g.dart
|
|
|
|
- name: prepare monero_c and cache
|
|
|
|
run: |
|
|
|
|
export MONEROC_HASH=$(cat scripts/prepare_moneroc.sh | grep 'git checkout' | xargs | awk '{ print $3 }')
|
|
|
|
echo MONEROC_HASH=$MONEROC_HASH >> /etc/environment
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
|
|
pushd scripts
|
|
|
|
ln -s "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
|
|
./prepare_moneroc.sh
|
|
|
|
popd
|
|
|
|
pushd scripts/monero_c
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" || true
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" || true
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" || true
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" || true
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" || true
|
|
|
|
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" || true
|
|
|
|
|
|
|
|
rm -rf "$PWD/contrib/depends/built" "$PWD/monero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
|
|
rm -rf "$PWD/contrib/depends/sources" "$PWD/monero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
|
|
mkdir -p contrib/depends || true
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" "$PWD/contrib/depends/built"
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" "$PWD/monero/contrib/depends/built"
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" "$PWD/contrib/depends/sources"
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" "$PWD/monero/contrib/depends/sources"
|
|
|
|
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
|
|
popd
|
2022-11-29 13:19:51 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Generate KeyStore
|
2024-03-04 17:32:10 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
pushd /opt/generic_cache
|
|
|
|
if [[ ! -f key.jks ]];
|
|
|
|
then
|
|
|
|
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
|
|
|
|
else
|
|
|
|
echo "$PWD/key.jks exist, not generating"
|
|
|
|
fi
|
|
|
|
popd
|
|
|
|
cp /opt/generic_cache/key.jks android/app
|
2022-11-29 13:49:24 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Execute Build and Setup Commands
|
2024-11-09 19:07:17 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
pushd scripts/android
|
|
|
|
source ./app_env.sh cakewallet
|
|
|
|
./app_config.sh
|
|
|
|
popd
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Build monero_c
|
2024-11-09 19:07:17 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
pushd scripts/android/
|
|
|
|
source ./app_env.sh cakewallet
|
|
|
|
./build_monero_all.sh
|
|
|
|
popd
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Install Flutter dependencies
|
|
|
|
run: |
|
|
|
|
flutter pub get
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Build mwebd
|
|
|
|
run: |
|
|
|
|
set -x -e
|
|
|
|
export MWEBD_HASH=$(cat scripts/android/build_mwebd.sh | grep 'git reset --hard' | xargs | awk '{ print $4 }')
|
|
|
|
echo MWEBD_HASH=$MWEBD_HASH >> /etc/environment
|
|
|
|
pushd scripts/android
|
|
|
|
gomobile init;
|
|
|
|
./build_mwebd.sh --dont-install
|
|
|
|
popd
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Build generated code
|
2024-11-09 19:07:17 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
./model_generator.sh async
|
|
|
|
|
|
|
|
- name: Generate key properties
|
|
|
|
run: |
|
|
|
|
dart run tool/generate_android_key_properties.dart keyAlias=testKey storeFile=key.jks storePassword=$STORE_PASS keyPassword=$KEY_PASS
|
|
|
|
|
|
|
|
- name: Generate localization
|
|
|
|
run: |
|
|
|
|
dart run tool/generate_localization.dart
|
|
|
|
|
|
|
|
- name: Rename app
|
|
|
|
run: |
|
|
|
|
sanitized_branch_name=${BRANCH_NAME#origin/} # Remove 'origin/' prefix if it exists
|
|
|
|
sanitized_branch_name=${sanitized_branch_name:0:16} # Take only the first 16 characters
|
|
|
|
sanitized_branch_name=$(echo "$sanitized_branch_name" | tr '[:upper:]' '[:lower:]') # Convert to lowercase
|
|
|
|
sanitized_branch_name=$(echo "$sanitized_branch_name" | sed 's/[^a-z0-9]//g') # Remove all special characters
|
|
|
|
|
|
|
|
echo -e "id=com.cakewallet.test_${sanitized_branch_name}\nname=${BRANCH_NAME}" > android/app.properties
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2022-11-29 13:19:51 +00:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-03-04 17:32:10 +00:00
|
|
|
flutter build apk --release --split-per-abi
|
2022-11-27 20:10:21 +00:00
|
|
|
|
2022-11-29 13:49:24 +00:00
|
|
|
- name: Rename apk file
|
2022-11-29 12:16:04 +00:00
|
|
|
run: |
|
2025-01-15 11:09:59 +00:00
|
|
|
cd build/app/outputs/flutter-apk
|
2022-11-29 12:23:58 +00:00
|
|
|
mkdir test-apk
|
2025-01-15 11:09:59 +00:00
|
|
|
cp app-arm64-v8a-release.apk test-apk/${BRANCH_NAME}.apk
|
|
|
|
cp app-x86_64-release.apk test-apk/${BRANCH_NAME}_x86.apk
|
|
|
|
cd test-apk
|
|
|
|
cp ${BRANCH_NAME}.apk ${BRANCH_NAME}_slack.apk
|
2022-12-19 17:41:00 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: Find APK file
|
|
|
|
id: find_apk
|
|
|
|
run: |
|
|
|
|
set -x
|
|
|
|
apk_file=$(ls build/app/outputs/flutter-apk/test-apk/*_slack.apk || exit 1)
|
|
|
|
echo "APK_FILE=$apk_file" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Upload artifact to slack
|
|
|
|
if: ${{ !contains(github.event.head_commit.message, 'skip slack') }}
|
2022-12-28 20:20:37 +00:00
|
|
|
continue-on-error: true
|
2023-08-31 17:09:10 +00:00
|
|
|
uses: adrey/slack-file-upload-action@1.0.5
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.SLACK_APP_TOKEN }}
|
2025-01-15 11:09:59 +00:00
|
|
|
path: ${{ env.APK_FILE }}
|
2023-08-31 17:09:10 +00:00
|
|
|
channel: ${{ secrets.SLACK_APK_CHANNEL }}
|
|
|
|
initial_comment: ${{ github.event.head_commit.message }}
|
2024-11-09 19:07:17 +00:00
|
|
|
|
2025-01-15 11:09:59 +00:00
|
|
|
- name: cleanup
|
|
|
|
run: rm -rf build/app/outputs/flutter-apk/test-apk/
|
|
|
|
|
|
|
|
- name: Upload Artifact to github
|
2025-01-15 13:24:29 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2025-01-15 11:09:59 +00:00
|
|
|
with:
|
2025-01-15 13:24:29 +00:00
|
|
|
path: ${{ github.workspace }}/build/app/outputs/flutter-apk
|
|
|
|
name: "android apk"
|