Rename package along with app name in app.properties

This commit is contained in:
OmarHatem 2023-03-01 16:57:55 +02:00
parent bfaf5d11d1
commit 1219cd2c14

View file

@ -36,10 +36,6 @@ jobs:
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
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
@ -117,9 +113,7 @@ jobs:
echo "const twitterBearerToken = '${{ secrets.TWITTER_BEARER_TOKEN }}';" >> lib/.secrets.g.dart echo "const twitterBearerToken = '${{ secrets.TWITTER_BEARER_TOKEN }}';" >> lib/.secrets.g.dart
- name: Rename app - name: Rename app
run: | run: echo -e "id=com.cakewallet.test\nname=$GITHUB_HEAD_REF" > /opt/android/cake_wallet/android/app.properties
sed -i -e "s/\${APP_NAME}/$GITHUB_HEAD_REF/g" /opt/android/cake_wallet/android/app/src/main/AndroidManifest.xml
sed -i -e "s/com.cakewallet.cake_wallet/com.cakewallet.test/g" /opt/android/cake_wallet/android/app/src/main/AndroidManifest.xml
- name: Build - name: Build
run: | run: |