Skip to content

Instantly share code, notes, and snippets.

View ananthrajsingh's full-sized avatar
🏗️

Ananth Raj Singh ananthrajsingh

🏗️
View GitHub Profile
@ananthrajsingh
ananthrajsingh / android-version-and-tag-automation.sh
Created January 31, 2022 08:36 — forked from drilonrecica/android-version-and-tag-automation.sh
Bash script for automating versioning (versionCode & versionName) and setting git Tag in an android project
# Proccess:
# 1. Go into app directory
# 2. Get current versionCode and print it
# 3. Increment versionCode by one and print it
# 4. Get current versionName and print it
# 5. Ask user for new versionName and set it then print it
# 6. Stage changes to build.gradle
# 7. Go back one directory to project root
# 8. Commit version update with message Bumped up version
# 9. Tag with versionName