mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-07-29 13:12:47 +00:00
Gson is JVM-only and can't live in shared commonMain, which was the real reason Meta/MetaDetail/Video/CastMember/DetailTrailer were stuck in the Android-only app module. Ports the existing JsonElement-tree-based custom parsing (flexible alternate-key extraction, free-form cast/trailer JSON tolerance) to kotlinx.serialization's equivalent JsonObject/JsonElement API, using @JsonNames for simple alternate keys and custom KSerializers for CastMember/DetailTrailer/MetaDetail where the existing Gson deserializers did manual extraction. StremioAddonResourceClient now parses addon catalog/meta responses via kotlinx.serialization (stremioJson) instead of Gson for these types; Gson stays in place for Stream/SubtitleData, which are out of scope here. StremioService.getMetaDetail now returns the raw response body instead of relying on Retrofit's automatic (Gson-based) conversion, since the models it returns no longer carry Gson annotations. Verified on-device: addon catalog list parsing (Home rows), billboard, and meta detail (title/year/runtime/description) all render correctly against real addon responses. |
||
|---|---|---|
| .. | ||
| schemas | ||
| src | ||
| build.gradle.kts | ||