fossasia/pslab-android

Automate the process of updating version name and version code

Closed this issue · 0 comments

Actual Behaviour
Currently, whenever we have to upload a new APK to the Play Store, we have to manually update the version name and version code in the build.gradle.kts file. Examples are such commits -
Screenshot 2024-05-30 195236

Expected Behaviour
We can automate this process by configuring the push pipeline to perform this task automatically each time a new commit is pushed and eliminate such extra commits in our code.
The pipeline would automatically update version name and version code to the next patch version (e.g. version name 3.1.2 to 3.1.3 and version code 26 to 27) each time a new commit is pushed to our development branch.

Steps to reproduce it
N/A

LogCat for the issue
N/A

Screenshots of the issue
N/A

Would you like to work on the issue?
Yes.