Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ final def CUSTOM_INSTANCE = ""
// link to your support account. Will be linked on the about page when not empty.
final def SUPPORT_ACCOUNT_URL = "https://mastodon.social/@Tusky"

/**
* Use the number of seconds/10 since Jan 1 2016 as the versionCode.
* This lets us upload a new build at most every 10 seconds for the
* next 680 years.
*/
def greenvcode = (int)(((new Date().getTime()/1000) - 1451606400) / 10)



android {
compileSdk 34
namespace "com.keylesspalace.tusky"
Expand Down Expand Up @@ -66,6 +75,8 @@ android {
resValue "string", "app_name", APP_NAME + " Test"
applicationIdSuffix ".test"
versionNameSuffix "-" + gitSha
// Always use a bigger versionCode to trigger Android/F-Droid update process
versionCode greenvcode
isDefault true
}
}
Expand Down