pachli-android/core
Nik Clayton 2162e03e1f
fix: Handle JSON enums with unknown values (#462)
Previous code expected all incoming enums values to map directly to
Kotlin enum constants.

This is a problem for servers with additional features -- e.g.,
"reaction" as a notification type.

Fix this with a new Moshi adapter that will set the incoming value to a
given constant if it's not recognised.

Apply this to the enum constants in core.network to ensure they are
handled.

Clean up enum handling in Converters.kt, ComposeViewModel.kt, and
Status.kt by using the existing `.ordinal` property and some extension
functions for idiomatic code.

Fixes #461
2024-02-21 23:36:24 +01:00
..
accounts feat: Show information about notification fetches on "About" screen (#454) 2024-02-17 15:57:32 +01:00
activity feat: Show information about notification fetches on "About" screen (#454) 2024-02-17 15:57:32 +01:00
common fix: Handle JSON enums with unknown values (#462) 2024-02-21 23:36:24 +01:00
data change: Improve logging calls to Timber (#430) 2024-02-09 17:33:01 +01:00
database fix: Handle JSON enums with unknown values (#462) 2024-02-21 23:36:24 +01:00
designsystem fix: Show previews for playable audio media from accounts (#460) 2024-02-20 16:20:34 +01:00
navigation fix: Show correct account/timeline when composing from notifications (#445) 2024-02-15 13:10:00 +01:00
network fix: Handle JSON enums with unknown values (#462) 2024-02-21 23:36:24 +01:00
preferences feat: Allow the user to trigger update checks (#458) 2024-02-20 14:50:59 +01:00
testing refactor: Remove unnecesary parcelize plugin import (#407) 2024-02-02 15:12:55 +01:00
ui feat: Show information about notification fetches on "About" screen (#454) 2024-02-17 15:57:32 +01:00
AndroidManifest.xml refactor: Start creating core modules (#286) 2023-12-04 16:58:36 +01:00