From cf0af5135f194581fd8e44e441503f2b95d9469d Mon Sep 17 00:00:00 2001 From: HeroBrine1st Erquilenne Date: Fri, 20 Dec 2024 13:52:19 +0300 Subject: [PATCH] Ignore unknown json keys on non-debug releases --- app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt b/app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt index 66472104..53a355fa 100644 --- a/app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt +++ b/app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt @@ -69,6 +69,7 @@ class APIModule( json(Json { namingStrategy = JsonNamingStrategy.SnakeCase coerceInputValues = true + ignoreUnknownKeys = !BuildConfig.DEBUG }) } install(HttpCache) {