fix(android-tv): Use production API URL instead of local emulator URL
- 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:
parent
df31e15fa8
commit
9b2ff6da9d
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue