mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Separate test build apk from overriding the original app
This commit is contained in:
parent
1481ebc229
commit
4ab7edf90b
2 changed files with 7 additions and 13 deletions
6
.github/workflows/pr_test_build.yml
vendored
6
.github/workflows/pr_test_build.yml
vendored
|
@ -35,7 +35,11 @@ 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.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
|
./app_config.sh
|
||||||
|
|
||||||
- name: Cache Externals
|
- name: Cache Externals
|
||||||
|
|
|
@ -9,9 +9,8 @@ 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 $CAKEWALLET_TEST)
|
TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
|
||||||
APP_ANDROID_TYPE=$1
|
APP_ANDROID_TYPE=$1
|
||||||
|
|
||||||
MONERO_COM_NAME="Monero.com"
|
MONERO_COM_NAME="Monero.com"
|
||||||
|
@ -32,8 +31,6 @@ 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.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
|
||||||
|
@ -62,13 +59,6 @@ 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
|
||||||
|
@ -76,4 +66,4 @@ export APP_ANDROID_NAME
|
||||||
export APP_ANDROID_VERSION
|
export APP_ANDROID_VERSION
|
||||||
export APP_ANDROID_BUILD_NUMBER
|
export APP_ANDROID_BUILD_NUMBER
|
||||||
export APP_ANDROID_BUNDLE_ID
|
export APP_ANDROID_BUNDLE_ID
|
||||||
export APP_ANDROID_PACKAGE
|
export APP_ANDROID_PACKAGE
|
Loading…
Reference in a new issue