Skip to content

Commit 0b9bcaa

Browse files
authored
Use SOURCE_DATE_EPOCH for reproducable builds (#3916)
See #3901 (comment) Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
1 parent 797ca6c commit 0b9bcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ android {
5454
versionName "3.17.10-beta"
5555
multiDexEnabled true
5656
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
57-
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
57+
buildConfigField "long", "TIMESTAMP", System.getenv("SOURCE_DATE_EPOCH") != null ? System.getenv("SOURCE_DATE_EPOCH").toLong() + "L" : System.currentTimeMillis() + "L"
5858
}
5959
buildTypes {
6060
release {

0 commit comments

Comments
 (0)