mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
Separate test build apk from overriding the original app
This commit is contained in:
parent
9b173f4fc8
commit
23128dbe3c
2 changed files with 12 additions and 3 deletions
3
.github/workflows/pr_test_build.yml
vendored
3
.github/workflows/pr_test_build.yml
vendored
|
@ -35,8 +35,7 @@ jobs:
|
|||
git clone https://github.com/cake-tech/cake_wallet.git --branch $GITHUB_HEAD_REF
|
||||
cd cake_wallet/scripts/android/
|
||||
./install_ndk.sh
|
||||
source ./app_env.sh cakewallet
|
||||
export APP_ANDROID_PACKAGE="com.cakewallet.cake_wallet.test"
|
||||
source ./app_env.sh cakewallet.test
|
||||
./app_config.sh
|
||||
|
||||
- name: Cache Externals
|
||||
|
|
|
@ -9,8 +9,9 @@ APP_ANDROID_PACKAGE=""
|
|||
MONERO_COM="monero.com"
|
||||
CAKEWALLET="cakewallet"
|
||||
HAVEN="haven"
|
||||
CAKEWALLET_TEST="cakewallet.test"
|
||||
|
||||
TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
|
||||
TYPES=($MONERO_COM $CAKEWALLET $HAVEN $CAKEWALLET_TEST)
|
||||
APP_ANDROID_TYPE=$1
|
||||
|
||||
MONERO_COM_NAME="Monero.com"
|
||||
|
@ -31,6 +32,8 @@ HAVEN_BUILD_NUMBER=1
|
|||
HAVEN_BUNDLE_ID="com.cakewallet.haven"
|
||||
HAVEN_PACKAGE="com.cakewallet.haven"
|
||||
|
||||
CAKEWALLET_TEST_PACKAGE="com.cakewallet.cake_wallet.test"
|
||||
|
||||
if ! [[ " ${TYPES[*]} " =~ " ${APP_ANDROID_TYPE} " ]]; then
|
||||
echo "Wrong app type."
|
||||
return 1 2>/dev/null
|
||||
|
@ -59,6 +62,13 @@ case $APP_ANDROID_TYPE in
|
|||
APP_ANDROID_BUNDLE_ID=$HAVEN_BUNDLE_ID
|
||||
APP_ANDROID_PACKAGE=$HAVEN_PACKAGE
|
||||
;;
|
||||
$CAKEWALLET_TEST)
|
||||
APP_ANDROID_NAME=$CAKEWALLET_NAME
|
||||
APP_ANDROID_VERSION=$CAKEWALLET_VERSION
|
||||
APP_ANDROID_BUILD_NUMBER=$CAKEWALLET_BUILD_NUMBER
|
||||
APP_ANDROID_BUNDLE_ID=$CAKEWALLET_BUNDLE_ID
|
||||
APP_ANDROID_PACKAGE=CAKEWALLET_TEST_PACKAGE
|
||||
;;
|
||||
esac
|
||||
|
||||
export APP_ANDROID_TYPE
|
||||
|
|
Loading…
Reference in a new issue