Separate test build apk from overriding the original app

This commit is contained in:
OmarHatem 2023-03-01 05:40:52 +02:00
parent 9b173f4fc8
commit 23128dbe3c
2 changed files with 12 additions and 3 deletions

View file

@ -35,8 +35,7 @@ jobs:
git clone https://github.com/cake-tech/cake_wallet.git --branch $GITHUB_HEAD_REF git clone https://github.com/cake-tech/cake_wallet.git --branch $GITHUB_HEAD_REF
cd cake_wallet/scripts/android/ cd cake_wallet/scripts/android/
./install_ndk.sh ./install_ndk.sh
source ./app_env.sh cakewallet source ./app_env.sh cakewallet.test
export APP_ANDROID_PACKAGE="com.cakewallet.cake_wallet.test"
./app_config.sh ./app_config.sh
- name: Cache Externals - name: Cache Externals

View file

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