mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
fix(core): prevent Proguard from optimizing away custom ser/de classes (#10982)
This commit is contained in:
committed by
GitHub
parent
c901d9fdf9
commit
be18ed50d8
5
.changes/fix-android-proguard.md
Normal file
5
.changes/fix-android-proguard.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Add a Proguard rule to prevent custom JSON deserializer and serializer classes from being optimized away.
|
||||
10
crates/tauri/mobile/android/proguard-rules.pro
vendored
10
crates/tauri/mobile/android/proguard-rules.pro
vendored
@@ -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 { *; }
|
||||
|
||||
Reference in New Issue
Block a user