fix(android-tv): Use production API URL instead of local emulator URL
Some checks failed
Release APKs / Build TV APK (push) Has been cancelled
Release APKs / Build Mobile APK (push) Has been cancelled
Release APKs / Create Release (push) Has been cancelled

- Switched ApiClient.kt baseUrl from http://10.0.2.2:8000/ to BuildConfig.API_BASE_URL
- This fixes video loading issue on real Android TV devices
- Local emulator URL only works in Android Emulator with local backend
This commit is contained in:
vndangkhoa 2026-01-03 06:56:35 +07:00
parent df31e15fa8
commit 9b2ff6da9d

View file

@ -76,8 +76,8 @@ object ApiClient {
private val retrofit: Retrofit by lazy {
Retrofit.Builder()
// .baseUrl(BuildConfig.API_BASE_URL + "/") // Production URL
.baseUrl("http://10.0.2.2:8000/") // Local Emulator URL for testing
.baseUrl(BuildConfig.API_BASE_URL + "/") // Production URL
// .baseUrl("http://10.0.2.2:8000/") // Local Emulator URL for testing
.client(okHttpClient)
.addConverterFactory(GsonConverterFactory.create())
.build()