simpligility / android-maven-plugin

Maven Plugin for Android Application development and more
http://simpligility.github.io/android-maven-plugin/
Apache License 2.0
1.05k stars 394 forks source link

Reproducible Builds #775

Closed Vorta1 closed 5 years ago

Vorta1 commented 6 years ago

Hello,

is it possible to set the plugin configuration to obtain a reproducible build of apks / apklibs?

As far as I can see everything packaged within the builds artefacts is fine except for the build generated files that are added in, which so far appear to be the META-INF folder and AndroidMainifest.xml file, because their meta data has the date-time created/modified of the file set to the date-time of the maven build.

This causes the resulting md5sum of the apk / apklib artefact to change each build when no changes were made - the build itself causes the diff.

Jar artefacts by default also suffer from the same issue - but there is another maven plugin which resolves the above problem, the reproducible-build-maven-plugin where the strip-jar goal appears to set the files within the jar to the same date-time each build so the checksums are reproducible.

Does the android-maven-plugin already have configuration options for this? Any help is appreciated.

With thanks,

Pete.

mosabua commented 5 years ago

Sorry... this is not supported. A new build will at least update timestamp metadata.