Skip to content

Instantly share code, notes, and snippets.

View drilonrecica's full-sized avatar

Drilon Reçica drilonrecica

View GitHub Profile
@drilonrecica
drilonrecica / android-version-and-tag-automation.sh
Last active October 17, 2023 17:31
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