Skip to content

Commit 9f33d64

Browse files
Rexogamerj-piasecki
authored andcommitted
fix: turn off build IDs for reproducibility (#3602)
## Description see https://gitlab.com/IzzyOnDroid/repo/-/wikis/Reproducible-Builds/RB-Hints-for-Developers#no-funny-build-time-generated-ids for context. ## Test plan I've successfully used these changes for a little while on my own app.
1 parent 45af39e commit 9f33d64

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/react-native-gesture-handler/android/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,16 @@ android {
158158
arguments "-DREACT_NATIVE_DIR=${REACT_NATIVE_DIR}",
159159
"-DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}",
160160
"-DANDROID_STL=c++_shared",
161-
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
161+
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
162+
// Turn off build IDs for reproducibility (ensuring the same code will produce the same bundle when built)
163+
// See https://gitlab.com/IzzyOnDroid/repo/-/wikis/Reproducible-Builds/RB-Hints-for-Developers#no-funny-build-time-generated-ids
164+
// for more information
165+
"-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none"
162166
abiFilters(*reactNativeArchitectures())
163167
}
168+
ndkBuild {
169+
arguments "APP_LDFLAGS+=-Wl,--build-id=none"
170+
}
164171
}
165172
}
166173
}

0 commit comments

Comments
 (0)