feat: use production parents guide API

This commit is contained in:
Azif Musheer 2026-07-21 12:44:12 +05:30
parent 7d42459aa3
commit cf1c6b70ff
2 changed files with 7 additions and 2 deletions

View file

@ -17,7 +17,7 @@ The top-level row and each category are independently expandable. The section su
- `ParentsGuideClient`/`ParentsGuideRepository`: request coalescing, identifier mapping, error isolation, and UI-state mapping.
- `ParentsGuideModels`: strict kotlinx.serialization wire model and canonical category/severity ordering.
- `ParentsGuideSection`: theme-derived Compose accordion components.
- `ParentsGuideConfig`: build-generated `PARENTS_GUIDE_API_BASE_URL`. It is blank by default until a production service is approved; local builds set it in `local.properties` or the environment.
- `ParentsGuideConfig`: build-generated `PARENTS_GUIDE_API_BASE_URL`. It defaults to the production service at `https://nuvio-parents-guide-addon.vercel.app`; local builds can override it in `local.properties` or the environment.
The Stremio v3 protocol has no standard Parents Guide resource. The companion addon publishes a valid no-stream manifest and a custom `/parentsguide/:type/:id.json` resource; this client calls the equivalent versioned API directly.

View file

@ -317,7 +317,12 @@ val generateRuntimeConfigs = tasks.register<GenerateRuntimeConfigsTask>("generat
}
)
realtimeSyncEnabled.set(runtimeConfigBoolean("NUVIO_REALTIME_SYNC_ENABLED", true))
parentsGuideApiBaseUrl.set(runtimeConfigValue("PARENTS_GUIDE_API_BASE_URL"))
parentsGuideApiBaseUrl.set(
runtimeConfigValue(
"PARENTS_GUIDE_API_BASE_URL",
"https://nuvio-parents-guide-addon.vercel.app",
)
)
}
tasks.withType<KotlinCompilationTask<*>>().configureEach {