Files
KeyPass/scripts/masterVersion.sh
Yogesh Choudhary Paliyal 9fef76a3f4 Migration from gradle groovy to kotlin kts (#525)
* versions improvements

* improvements

* remove navigatio  plugin

* migrated gradle files from grovvy to kts
2023-05-10 14:43:22 +05:30

14 lines
484 B
Bash

#!/bin/bash
# Read the current versionCode and versionName from the build.gradle.kts.kts file
VERSION_NAME=$(grep "versionName" app/build.gradle | awk '{print $2}' | tr -d '\r''"')
NEW_VERSION_NAME="$VERSION_NAME-master"
# Update the build.gradle.kts.kts file with the new versionCode and versionName values
sed -i "s/versionName \"$VERSION_NAME\"/versionName \"$NEW_VERSION_NAME\"/" app/build.gradle
# Output the new versionCode and versionName values
echo "v$NEW_VERSION_NAME"