mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-07 13:59:06 +00:00
Add versioning to Android app
This commit is contained in:
parent
5d5d4d1c09
commit
01bcb03aff
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -23,11 +23,12 @@ jobs:
|
|||||||
read -ra semverArray <<< $semver
|
read -ra semverArray <<< $semver
|
||||||
tagV=$(echo ${semverArray[0]} | sed 's/v//')
|
tagV=$(echo ${semverArray[0]} | sed 's/v//')
|
||||||
clientV=$(jq -r .version frontend/package.json)
|
clientV=$(jq -r .version frontend/package.json)
|
||||||
|
androidV=$(grep -oP '(?<=versionName ").*?((?=\-)|$)' mobile/android/app/build.gradle)
|
||||||
coordinatorV=$(jq -r .major version.json).$(jq -r .minor version.json).$(jq -r .patch version.json)
|
coordinatorV=$(jq -r .major version.json).$(jq -r .minor version.json).$(jq -r .patch version.json)
|
||||||
|
|
||||||
printf "Client version: ${clientV}\nCoordinator version: ${coordinatorV}\nGit tag version: ${tagV}\n"
|
printf "Client version: ${clientV}\nCoordinator version: ${coordinatorV}\nGit tag version: ${tagV}\n"
|
||||||
|
|
||||||
if [ "$coordinatorV" = "$clientV" ] && [ "$coordinatorV" = "$tagV" ] ; then
|
if [ "$coordinatorV" = "$clientV" ] && [ "$coordinatorV" = "$tagV" ] && [ "$coordinatorV" = "$androidV" ]; then
|
||||||
echo "Versions match!"
|
echo "Versions match!"
|
||||||
echo '::set-output name=semver::'$semver
|
echo '::set-output name=semver::'$semver
|
||||||
else
|
else
|
||||||
|
@ -149,7 +149,7 @@ android {
|
|||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "0.2.1-alpha"
|
||||||
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
||||||
|
|
||||||
if (isNewArchitectureEnabled()) {
|
if (isNewArchitectureEnabled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user