File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
src/main/java/com/mikhaellopez/data/net Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ dependencies {
42
42
// MODULE
43
43
implementation project(' :domain' )
44
44
45
- // KOTLIN
46
- // implementation kotlinStdlib
47
45
// SUPPORT
48
46
api androidXCore
49
47
// COMPONENTS
@@ -62,9 +60,9 @@ dependencies {
62
60
63
61
// DEBUG TOOLS
64
62
implementation timber
65
- debugApi chuckDebug
66
- debugTestApi chuckRelease
67
- releaseApi chuckRelease
63
+ debugImplementation chuckerDebug
64
+ debugTestImplementation chuckerRelease
65
+ releaseImplementation chuckerRelease
68
66
69
67
// TEST
70
68
testImplementation junit
Original file line number Diff line number Diff line change 1
1
package com.mikhaellopez.data.net
2
2
3
3
import android.content.Context
4
+ import com.chuckerteam.chucker.api.ChuckerInterceptor
4
5
import com.mikhaellopez.data.BuildConfig
5
- import com.readystatesoftware.chuck.ChuckInterceptor
6
6
import okhttp3.OkHttpClient
7
7
import java.util.concurrent.TimeUnit
8
8
@@ -24,7 +24,7 @@ open class OkHttpClientFactory {
24
24
25
25
26
26
private fun OkHttpClient.Builder.enableDebugTools (context : Context ) {
27
- addInterceptor(ChuckInterceptor (context))
27
+ addInterceptor(ChuckerInterceptor . Builder (context).build( ))
28
28
}
29
29
30
30
private fun OkHttpClient.Builder.updateTimeout (read : Long = 60, write : Long = 60) {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ allprojects {
7
7
8
8
ext {
9
9
// APP VERSION
10
- androidVersionCode = 7
11
- androidVersionName = ' 1.1.2 '
10
+ androidVersionCode = 8
11
+ androidVersionName = ' 1.1.3 '
12
12
13
13
// ANDROID VERSION
14
14
androidCompileSdkVersion = 33
@@ -52,10 +52,10 @@ ext {
52
52
retrofitAdapterRxJava = " com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion "
53
53
54
54
// DEBUG
55
- chuckVersion = ' 1.1.0 '
55
+ chuckerVersion = ' 3.5.2 '
56
56
timber = " com.jakewharton.timber:timber:5.0.1"
57
- chuckDebug = " com.readystatesoftware.chuck :library:$c huckVersion "
58
- chuckRelease = " com.readystatesoftware.chuck :library-no-op:$c huckVersion "
57
+ chuckerDebug = " com.github.chuckerteam.chucker :library:$c huckerVersion "
58
+ chuckerRelease = " com.github.chuckerteam.chucker :library-no-op:$c huckerVersion "
59
59
60
60
// TEST
61
61
junit = " junit:junit:4.13.2"
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ android {
54
54
kotlinOptions {
55
55
jvmTarget = " 1.8"
56
56
}
57
+ configurations {
58
+ all {
59
+ exclude group : ' androidx.lifecycle' , module : ' lifecycle-viewmodel-ktx'
60
+ }
61
+ }
57
62
buildFeatures {
58
63
viewBinding true
59
64
}
You can’t perform that action at this time.
0 commit comments