Commit 3b653d3c authored by Matthew Finkel's avatar Matthew Finkel
Browse files

fixup! squash! Modify build system

parent 2bf57ad0
Pipeline #2449 failed with stages
...@@ -19,10 +19,11 @@ object Config { ...@@ -19,10 +19,11 @@ object Config {
@JvmStatic @JvmStatic
private fun generateDebugVersionName(): String { private fun generateDebugVersionName(): String {
var today = Date() val today = if (System.getenv("MOZ_BUILD_DATE") != null) {
if (System.getenv("MOZ_BUILD_DATE") != null) {
val format = SimpleDateFormat("yyyyMMddHHmmss", Locale.US) val format = SimpleDateFormat("yyyyMMddHHmmss", Locale.US)
today = format.parse(System.getenv("MOZ_BUILD_DATE")) today = 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 // 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 // identify ancient versions when debugging issues. However this will still keep the same version number during
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment