[tor-commits] [Git][tpo/applications/fenix][tor-browser-86.0.0b2-10.5-1] squash! Modify build system

Matthew Finkel gitlab at torproject.org
Thu Feb 4 16:56:07 UTC 2021



Matthew Finkel pushed to branch tor-browser-86.0.0b2-10.5-1 at The Tor Project / Applications / fenix


Commits:
b531202a by Matthew Finkel at 2021-02-04T16:52:44+00:00
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.

- - - - -


1 changed file:

- buildSrc/src/main/java/Config.kt


Changes:

=====================================
buildSrc/src/main/java/Config.kt
=====================================
@@ -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



View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/commit/b531202a21ad0c5e6e1a8b5e294d9445b54aa4ab

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/commit/b531202a21ad0c5e6e1a8b5e294d9445b54aa4ab
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20210204/d458be6a/attachment.htm>


More information about the tor-commits mailing list