Separate test build apk from overriding the original app

This commit is contained in:
OmarHatem 2023-03-01 07:01:17 +02:00
parent 1481ebc229
commit 4ab7edf90b
2 changed files with 7 additions and 13 deletions

View file

@ -35,7 +35,11 @@ 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.test
source ./app_env.sh cakewallet
APP_ANDROID_PACKAGE="com.cakewallet.test"
export APP_ANDROID_PACKAGE="com.cakewallet.test"
set APP_ANDROID_PACKAGE="com.cakewallet.test"
env APP_ANDROID_PACKAGE="com.cakewallet.test"
./app_config.sh
- name: Cache Externals

View file

@ -9,9 +9,8 @@ APP_ANDROID_PACKAGE=""
MONERO_COM="monero.com"
CAKEWALLET="cakewallet"
HAVEN="haven"
CAKEWALLET_TEST="cakewallet.test"
TYPES=($MONERO_COM $CAKEWALLET $HAVEN $CAKEWALLET_TEST)
TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
APP_ANDROID_TYPE=$1
MONERO_COM_NAME="Monero.com"
@ -32,8 +31,6 @@ HAVEN_BUILD_NUMBER=1
HAVEN_BUNDLE_ID="com.cakewallet.haven"
HAVEN_PACKAGE="com.cakewallet.haven"
CAKEWALLET_TEST_PACKAGE="com.cakewallet.test"
if ! [[ " ${TYPES[*]} " =~ " ${APP_ANDROID_TYPE} " ]]; then
echo "Wrong app type."
return 1 2>/dev/null
@ -62,13 +59,6 @@ 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
@ -76,4 +66,4 @@ export APP_ANDROID_NAME
export APP_ANDROID_VERSION
export APP_ANDROID_BUILD_NUMBER
export APP_ANDROID_BUNDLE_ID
export APP_ANDROID_PACKAGE
export APP_ANDROID_PACKAGE