Skip to content
Snippets Groups Projects
Commit 7e04f1cf authored by Matthew Finkel's avatar Matthew Finkel
Browse files

squash! Modify build system

Bug 40143: Use deterministic date in Test apk

The build config was using Date() when generating the Test apk's
versionName.
parent d4c12078
Branches
Tags
No related merge requests found
......@@ -19,7 +19,12 @@ object Config {
@JvmStatic
private fun generateDebugVersionName(): String {
val today = Date()
val today = if (System.getenv("MOZ_BUILD_DATE") != null) {
val format = SimpleDateFormat("yyyyMMddHHmmss", Locale.US)
format.parse(System.getenv("MOZ_BUILD_DATE"))
} else {
Date()
}
// Append the year (2 digits) and week in year (2 digits). This will make it easier to distinguish versions and
// identify ancient versions when debugging issues. However this will still keep the same version number during
// the week so that we do not end up with a lot of versions in tools like Sentry. As an extra this matches the
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment