Skip to content

Commit

Permalink
升级 MonitorInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
leavesCZY committed Jan 21, 2022
1 parent 0baf8cd commit 28a9689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
debugImplementation 'com.github.leavesC.Monitor:monitor:1.1.3'
releaseImplementation 'com.github.leavesC.Monitor:monitor-no-op:1.1.3'
debugImplementation 'com.github.leavesCZY.Monitor:monitor:1.1.5'
releaseImplementation 'com.github.leavesCZY.Monitor:monitor-no-op:1.1.5'
implementation project(path: ':reactivehttp')
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package github.leavesczy.reactivehttpsamples.core.http

import github.leavesc.monitor.MonitorInterceptor
import github.leavesczy.monitor.MonitorInterceptor
import github.leavesczy.reactivehttp.datasource.RemoteExtendDataSource
import github.leavesczy.reactivehttp.viewmodel.IUIAction
import github.leavesczy.reactivehttpsamples.MainApplication
Expand Down Expand Up @@ -34,7 +34,7 @@ class AppRemoteDataSource(iuiAction: IUIAction?) : RemoteExtendDataSource<ApiSer
.connectTimeout(1000L, TimeUnit.MILLISECONDS)
.retryOnConnectionFailure(true)
.addInterceptor(FilterInterceptor())
.addInterceptor(MonitorInterceptor(MainApplication.context))
.addInterceptor(MonitorInterceptor(context = MainApplication.context))
return builder.build()
}

Expand Down

0 comments on commit 28a9689

Please sign in to comment.