From d3d726d254e339868f17cac726115c766c3b6d8e Mon Sep 17 00:00:00 2001 From: Henrique Velloso Date: Tue, 13 Jan 2026 20:22:40 -0300 Subject: [PATCH] Add reproducible file order and timestamp settings for archive tasks in Android build configuration --- android/build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 89176ef..2ac5130 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -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().configureEach { + isPreserveFileTimestamps = false + isReproducibleFileOrder = true + } +} + val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get() rootProject.layout.buildDirectory.value(newBuildDir)