fix: remove build timestamp (breaking reproducible builds)

reverts 9f099f3edf
This commit is contained in:
andrekir 2024-11-02 06:13:36 -03:00
parent 1aa0b138fc
commit 605ef120c9
2 changed files with 2 additions and 4 deletions

View file

@ -76,8 +76,6 @@ android {
ndk {
// abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
buildConfigField "int", "TIMESTAMP", System.currentTimeSeconds().toString()
}
bundle {
language {

View file

@ -907,8 +907,8 @@ class MeshService : Service(), Logging {
private fun handleReceivedMeshPacket(packet: MeshPacket) {
if (haveNodeDB) {
processReceivedMeshPacket(packet.toBuilder().apply {
// If the rxTime is invalid (earlier than build time), update with current time
if (packet.rxTime < BuildConfig.TIMESTAMP) setRxTime(currentSecond())
// If the rxTime was not set by the device, update with current time
if (packet.rxTime == 0) setRxTime(currentSecond())
}.build())
onNodeDBChanged()
} else {