Add reproducible file order and timestamp settings for archive tasks in Android build configuration

This commit is contained in:
Henrique Velloso
2026-01-20 01:12:36 -03:00
parent e841042dfd
commit d3d726d254
+9
View File
@@ -5,6 +5,15 @@ allprojects {
}
}
// Reproducible archives (zip/jar/aar): stable file order + no timestamps.
// This reduces non-functional diffs in build artifacts.
subprojects {
tasks.withType<org.gradle.api.tasks.bundling.AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
}
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)