QuranApp icon indicating copy to clipboard operation
QuranApp copied to clipboard

Reproducible Builds

Open IzzySoft opened this issue 6 months ago • 0 comments

Steps to reproduce

I've checked your app if its build is reproducible (see: Reproducible Builds, special client support and more in our repo), but while I was able to successfully generate the APK using ./gradlew assembleRelease, the resulting APK was not identical. Here's the head of the diff:

-------------------------------
--- /dev/fd/63  2024-07-12 08:37:36.576467486 +0200
+++ /dev/fd/62  2024-07-12 08:37:36.576467486 +0200
@@ -647,7 +647,7 @@
   res/5c.png
   32-bit CRC value (hex):                         04576501
   res/5g.png
-  32-bit CRC value (hex):                         8a43fb7d
+  32-bit CRC value (hex):                         9b44d110
   res/5h.webp
   32-bit CRC value (hex):                         b14414eb
   res/5k.png
@@ -993,7 +993,7 @@
   res/Ce1.xml
   32-bit CRC value (hex):                         a814eb19
   res/Cf.png
-  32-bit CRC value (hex):                         3fa64b07
+  32-bit CRC value (hex):                         8cc41d38
   res/Cg.xml
   32-bit CRC value (hex):                         34d74fa3
   res/Ck.png
@@ -1629,7 +1629,7 @@
   res/QQ.xml
   32-bit CRC value (hex):                         1aa98b4b
   res/QT.png
-  32-bit CRC value (hex):                         aa846f99
+  32-bit CRC value (hex):                         4d4f962a
...

It seems only PNG files are affected, which raises the question if you have PNGCrunching enabled? That's known to be non-deterministic and would cause such a behavior. A search for "crunch" on this repo however did not turn up anything (but I'm no Android dev; maybe it's on by default unless you disable it).

We'd appreciate if you could help making your build reproducible. We've prepared some hints on reproducible builds for that.

Looking forward to your reply!

Expected behavior

APKs are identical

Actual behavior

APKs are not identical

QuranApp version

2024.04.01.1

Android version

n/a

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • [X] I have written a short but informative title.

IzzySoft avatar Aug 19 '24 07:08 IzzySoft