diff options
author | Torsten Grote <t@grobox.de> | 2020-07-21 14:58:44 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-07-21 15:06:54 -0300 |
commit | 18f311512aec7b828c87c3b297135482abd389a2 (patch) | |
tree | 7f355da971ba91f11aeb89ddb4c12062cc908d2f /wallet/.gitlab-ci.yml | |
parent | 5d3d85fa7190a70eea8fa67866c343005b9922b0 (diff) | |
download | taler-android-18f311512aec7b828c87c3b297135482abd389a2.tar.gz taler-android-18f311512aec7b828c87c3b297135482abd389a2.tar.bz2 taler-android-18f311512aec7b828c87c3b297135482abd389a2.zip |
[wallet] introduce build flavors for distribution channels
(google play, fdroid, nightly)
and show flavor name in dev settings
Diffstat (limited to 'wallet/.gitlab-ci.yml')
-rw-r--r-- | wallet/.gitlab-ci.yml | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/wallet/.gitlab-ci.yml b/wallet/.gitlab-ci.yml index 8845aa4..56768f7 100644 --- a/wallet/.gitlab-ci.yml +++ b/wallet/.gitlab-ci.yml @@ -23,20 +23,8 @@ wallet_deploy_nightly: script: # Ensure that key exists - test -z "$DEBUG_KEYSTORE" && exit 0 - # Rename nightly app - - sed -i - 's,<string name="app_name">.*</string>,<string name="app_name">Taler Wallet Nightly</string>,' - wallet/src/main/res/values*/strings.xml - # Set time-based version code - - export versionCode=$(date '+%s') - - sed -i "s,^\(\s*versionCode\) *[0-9].*,\1 $versionCode," wallet/build.gradle - # Add commit to version name - - export versionName=$(git rev-parse --short=7 HEAD) - - sed -i "s,^\(\s*versionName\ *\"[0-9].*\)\",\1 ($versionName)\"," wallet/build.gradle - # Set nightly application ID - - sed -i "s,^\(\s*applicationId\) \"*[a-z\.].*\",\1 \"net.taler.wallet.nightly\"," wallet/build.gradle # Build the APK - - ./gradlew :wallet:assembleDebug + - ./gradlew :wallet:assembleNightlyDebug # START only needed while patch not accepted/released upstream - apt update && apt install patch - patch -b /usr/lib/python3/dist-packages/fdroidserver/nightly.py nightly-stats.patch |