From dc81ed623ea1b08e568a4cfc742f82c7f732e21f Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Sat, 31 Oct 2026 01:05:48 +0400 Subject: [PATCH] fix(config): parse metadata with the Gson API the app resolves JsonParser.parseString is not in the Gson version on the app's classpath; the instance parse method is, and behaves the same here. --- .../nova/common/data/network/signed/SignedConfig.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/novafoundation/nova/common/data/network/signed/SignedConfig.kt b/common/src/main/java/io/novafoundation/nova/common/data/network/signed/SignedConfig.kt index 46443471..b1828a9c 100644 --- a/common/src/main/java/io/novafoundation/nova/common/data/network/signed/SignedConfig.kt +++ b/common/src/main/java/io/novafoundation/nova/common/data/network/signed/SignedConfig.kt @@ -23,7 +23,7 @@ class Envelope(val payload: ByteArray, val signatures: List guard(block: () -> T): T = try { } catch (e: Exception) { throw SignedConfigException("malformed metadata: $e") } + +// The Gson the app resolves predates JsonParser.parseString. +@Suppress("DEPRECATION") +private fun parseJson(text: String) = JsonParser().parse(text)