Skip to content

Commit c59f372

Browse files
author
Pedro Pombeiro
committed
Disable PNG optimization on Android builds, for reproducibility
Signed-off-by: Pedro Pombeiro <[email protected]>
1 parent 0f44a46 commit c59f372

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

android/app/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ android {
204204
buildTypes {
205205
debug {
206206
applicationIdSuffix ".debug"
207-
debuggable true
208-
versionNameSuffix "-SNAPSHOT"
207+
debuggable true
208+
versionNameSuffix "-SNAPSHOT"
209209
resValue "string", "build_config_package", "im.status.ethereum"
210210
}
211211
release {
@@ -216,8 +216,8 @@ android {
216216
pr {
217217
initWith release
218218
applicationIdSuffix ".pr"
219-
versionNameSuffix ".pr"
220-
debuggable true
219+
versionNameSuffix ".pr"
220+
debuggable true
221221
matchingFallbacks = ["release"]
222222
// necessary to make react-native-config's code generation work
223223
resValue "string", "build_config_package", "im.status.ethereum"
@@ -237,6 +237,11 @@ android {
237237
}
238238
}
239239

240+
aaptOptions {
241+
// disable PNG optimization as for some reason it cannot be trusted to provide deterministic output (see https://f-droid.org/en/docs/Reproducible_Builds/)
242+
cruncherEnabled = false
243+
}
244+
240245
sourceSets {
241246
main { jniLibs.srcDirs 'libs' }
242247
main.assets.srcDirs += '../../resources/mapview'

0 commit comments

Comments
 (0)