Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.gradle: Always increase versionCode for Green #4438

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on May 10, 2024

  1. build.gradle: Always increase versionCode for Green

    Due to Android (and the F-Droid) upgrade process, `versionCode` should always increase in order to trigger the update process. 
    
    Use a dedicated `versionCode` for Green releases, time base, which will always increase (beware of time zones ⚠️ )
    
    Another side effect will be: the same code, rebuilt, will be considered as an upgrade, as build time will be newer. 
    
    It is impossible to use the commit number as it is not an `int`. 
    A better idea would be to count the amounts of commits, with something like  `git rev-list --first-parent --count HEAD` but I didn't manage to do it.
    nailyk-fr authored May 10, 2024
    Configuration menu
    Copy the full SHA
    230f8f3 View commit details
    Browse the repository at this point in the history