chore(dm): WebSocket raw JSON 로그를 주입한다
This commit is contained in:
@@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.di
|
||||
|
||||
import android.content.Context
|
||||
import com.google.gson.GsonBuilder
|
||||
import com.orhanobut.logger.Logger
|
||||
import kr.co.vividnext.sodalive.BuildConfig
|
||||
import kr.co.vividnext.sodalive.agora.v2v.V2vApi
|
||||
import kr.co.vividnext.sodalive.agora.v2v.V2vRepository
|
||||
@@ -349,7 +350,14 @@ class AppDI(private val context: Context, isDebugMode: Boolean) {
|
||||
single { ApiBuilder().build(get(), CharacterCommentApi::class.java) }
|
||||
single { ApiBuilder().build(get(), OriginalWorkApi::class.java) }
|
||||
single { ApiBuilder().build(get<Retrofit>(named("agoraRetrofit")), V2vApi::class.java) }
|
||||
single { DmChatSocketClient(okHttpClient = get(), gson = get(), baseUrl = baseUrl) }
|
||||
single {
|
||||
DmChatSocketClient(
|
||||
okHttpClient = get(),
|
||||
gson = get(),
|
||||
baseUrl = baseUrl,
|
||||
rawJsonLogger = { rawJson -> Logger.d("DM WebSocket raw JSON: $rawJson") }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private val viewModelModule = module {
|
||||
|
||||
Reference in New Issue
Block a user