fix(core): prevent Proguard from optimizing away custom ser/de classes (#10982)

This commit is contained in:
Lucas Fernandes Nogueira 2024-09-12 23:04:25 -03:00 committed by GitHub
parent c901d9fdf9
commit be18ed50d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Add a Proguard rule to prevent custom JSON deserializer and serializer classes from being optimized away.

View File

@ -28,4 +28,14 @@
*;
}
-keep @com.fasterxml.jackson.databind.annotation.JsonDeserialize public class * {
*;
}
-keep @com.fasterxml.jackson.databind.annotation.JsonSerialize public class * {
*;
}
-keep class * extends com.fasterxml.jackson.databind.JsonDeserializer { *; }
-keep class * extends com.fasterxml.jackson.databind.JsonSerializer { *; }