Skip to content

Commit

Permalink
增加动态修改url的入口
Browse files Browse the repository at this point in the history
  • Loading branch information
imyyq committed Jul 10, 2020
1 parent d0d4744 commit edce53c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sample/src/main/java/com/imyyq/sample/NetworkViewModel.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.imyyq.sample

import android.app.Application
import com.imyyq.mvvm.utils.LogUtil
import androidx.databinding.ObservableField
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.viewModelScope
import com.imyyq.mvvm.base.BaseViewModel
import com.imyyq.mvvm.utils.LogUtil
import com.imyyq.sample.data.Repository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
Expand Down
3 changes: 2 additions & 1 deletion sample/src/main/java/com/imyyq/sample/app/MyApp.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.imyyq.sample.app

import com.imyyq.mvvm.utils.LogUtil
import com.imyyq.mvvm.app.AppStateTracker
import com.imyyq.mvvm.app.BaseApp
import com.imyyq.mvvm.app.GlobalConfig
import com.imyyq.mvvm.http.HttpRequest
import com.imyyq.mvvm.utils.LogUtil
import com.imyyq.sample.loadsir.callback.EmptyCallback
import com.imyyq.sample.loadsir.callback.ErrorCallback
import com.imyyq.sample.loadsir.callback.LoadingCallback
Expand All @@ -27,6 +27,7 @@ class MyApp : BaseApp() {

GlobalConfig.gIsViewModelNeedStartAndFinish = true
GlobalConfig.gIsNeedLoadingDialog = true
GlobalConfig.gIsNeedChangeBaseUrl = true

LogUtil.init()

Expand Down

0 comments on commit edce53c

Please sign in to comment.