Skip to content

Commit

Permalink
fix: Keep network model classes, preventing crash on startup (#251)
Browse files Browse the repository at this point in the history
Without this the model classes are not retained, which causes a
`ClassCastException` when parsing the new models for the instance v1 and
instance v2 API calls.

Fixes #250
  • Loading branch information
nikclayton authored Nov 13, 2023
1 parent d40b87f commit 1c6c8a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

# keep members of our model classes, they are used in json de/serialization
-keepclassmembers class app.pachli.entity.* { *; }
-keepclassmembers class app.pachli.network.model.* { *; }

-keep public enum app.pachli.entity.*$** {
**[] $VALUES;
Expand Down

0 comments on commit 1c6c8a7

Please sign in to comment.