fluxa/data
KhooLy e5581918cd Migrate Meta/MetaDetail models from Gson to kotlinx.serialization
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.
2026-07-16 00:36:08 +03:00
..
schemas Fix mpv/ExoPlayer audio passthrough, channel layout, AO, and DV track selection 2026-07-03 03:51:49 +03:00
src Migrate Meta/MetaDetail models from Gson to kotlinx.serialization 2026-07-16 00:36:08 +03:00
build.gradle.kts Migrate Meta/MetaDetail models from Gson to kotlinx.serialization 2026-07-16 00:36:08 +03:00