Skip to content

Commit

Permalink
Merge pull request #3 from lopspower/fix_chucker
Browse files Browse the repository at this point in the history
[FIX] Replace Chuck to Chucker
  • Loading branch information
lopspower committed Aug 26, 2022
2 parents 7cfe7f8 + c950145 commit 3dbbc48
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 3 additions & 5 deletions data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ dependencies {
// MODULE
implementation project(':domain')

// KOTLIN
//implementation kotlinStdlib
// SUPPORT
api androidXCore
// COMPONENTS
Expand All @@ -62,9 +60,9 @@ dependencies {

// DEBUG TOOLS
implementation timber
debugApi chuckDebug
debugTestApi chuckRelease
releaseApi chuckRelease
debugImplementation chuckerDebug
debugTestImplementation chuckerRelease
releaseImplementation chuckerRelease

// TEST
testImplementation junit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.mikhaellopez.data.net

import android.content.Context
import com.chuckerteam.chucker.api.ChuckerInterceptor
import com.mikhaellopez.data.BuildConfig
import com.readystatesoftware.chuck.ChuckInterceptor
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

Expand All @@ -24,7 +24,7 @@ open class OkHttpClientFactory {


private fun OkHttpClient.Builder.enableDebugTools(context: Context) {
addInterceptor(ChuckInterceptor(context))
addInterceptor(ChuckerInterceptor.Builder(context).build())
}

private fun OkHttpClient.Builder.updateTimeout(read: Long = 60, write: Long = 60) {
Expand Down
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ ext {
retrofitAdapterRxJava = "com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion"

// DEBUG
chuckVersion = '1.1.0'
chuckerVersion = '3.5.2'
timber = "com.jakewharton.timber:timber:5.0.1"
chuckDebug = "com.readystatesoftware.chuck:library:$chuckVersion"
chuckRelease = "com.readystatesoftware.chuck:library-no-op:$chuckVersion"
chuckerDebug = "com.github.chuckerteam.chucker:library:$chuckerVersion"
chuckerRelease = "com.github.chuckerteam.chucker:library-no-op:$chuckerVersion"

// TEST
junit = "junit:junit:4.13.2"
Expand Down
5 changes: 5 additions & 0 deletions presentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
configurations {
all {
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
}
}
buildFeatures {
viewBinding true
}
Expand Down

0 comments on commit 3dbbc48

Please sign in to comment.