File tree Expand file tree Collapse file tree
app/src/main/java/com/runnect/runnect/application Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,20 +39,22 @@ class ApplicationClass : Application() {
3939 lateinit var appContext: Context
4040 const val API_MODE = " API_MODE"
4141
42- fun getBaseUrl (): String {
43- return when {
44- ! BuildConfig .DEBUG -> BuildConfig .RUNNECT_PROD_URL
45- ! ::appContext.isInitialized -> BuildConfig .RUNNECT_PROD_URL
46- else -> {
47- val mode = ApiMode .getCurrentApiMode(appContext)
48- Timber .d(" 현재 서버: ${mode} " )
49- when (mode) {
50- ApiMode .JAVA -> BuildConfig .RUNNECT_PROD_URL
51- ApiMode .TEST -> BuildConfig .RUNNECT_DEV_URL
52- else -> BuildConfig .RUNNECT_NODE_URL
53- }
54- }
55- }
56- }
42+ // TODO: dev/node 서버 복구 시 분기 복원
43+ // fun getBaseUrl(): String {
44+ // return when {
45+ // !BuildConfig.DEBUG -> BuildConfig.RUNNECT_PROD_URL
46+ // !::appContext.isInitialized -> BuildConfig.RUNNECT_PROD_URL
47+ // else -> {
48+ // val mode = ApiMode.getCurrentApiMode(appContext)
49+ // Timber.d("현재 서버: ${mode}")
50+ // when (mode) {
51+ // ApiMode.JAVA -> BuildConfig.RUNNECT_PROD_URL
52+ // ApiMode.TEST -> BuildConfig.RUNNECT_DEV_URL
53+ // else -> BuildConfig.RUNNECT_NODE_URL
54+ // }
55+ // }
56+ // }
57+ // }
58+ fun getBaseUrl (): String = BuildConfig .RUNNECT_PROD_URL
5759 }
5860}
You can’t perform that action at this time.
0 commit comments