update
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
package com.youtubeapp.data
|
||||
|
||||
import android.os.Build
|
||||
import retrofit2.Retrofit
|
||||
import retrofit2.converter.gson.GsonConverterFactory
|
||||
|
||||
object ApiClient {
|
||||
// Server-IP hier anpassen
|
||||
const val BASE_URL = "http://marha.local:8000/"
|
||||
val BASE_URL: String = if (Build.FINGERPRINT.contains("generic") || Build.FINGERPRINT.contains("sdk"))
|
||||
"http://10.0.2.2:8000/"
|
||||
else
|
||||
"http://marha.local:8000/"
|
||||
|
||||
val api: VideoApi by lazy {
|
||||
Retrofit.Builder()
|
||||
|
||||
Reference in New Issue
Block a user