File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/main/java/com/raven/ravenandroidsdk/api Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ android {
20
20
minSdkVersion 21
21
21
targetSdkVersion 30
22
22
versionCode 1
23
- versionName " 1.0.4 "
23
+ versionName " 1.0.5 "
24
24
25
25
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
26
26
consumerProguardFiles ' consumer-rules.pro'
@@ -50,8 +50,8 @@ dependencies {
50
50
implementation ' com.squareup.retrofit2:converter-gson:2.6.2'
51
51
implementation ' com.squareup.okhttp3:logging-interceptor:4.2.1'
52
52
53
- debugImplementation ' com.readystatesoftware.chuck:library:1.1.0'
54
- releaseImplementation ' com.readystatesoftware.chuck:library-no-op:1.1.0'
53
+ implementation ' com.readystatesoftware.chuck:library:1.1.0'
54
+ // releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
55
55
}
56
56
57
57
// Because the components are created only during the afterEvaluate phase, you must
@@ -67,7 +67,7 @@ afterEvaluate {
67
67
// You can then customize attributes of the publication as shown below.
68
68
groupId = ' com.raven'
69
69
artifactId = ' raven-android-sdk'
70
- version = ' 1.0.4 '
70
+ version = ' 1.0.5 '
71
71
}
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.raven.ravenandroidsdk.api
2
2
3
3
import android.content.Context
4
4
import com.google.gson.GsonBuilder
5
+ import com.raven.ravenandroidsdk.BuildConfig
5
6
import com.readystatesoftware.chuck.ChuckInterceptor
6
7
import okhttp3.Interceptor
7
8
import okhttp3.OkHttpClient
@@ -40,7 +41,9 @@ internal class ApiProvider(context: Context) {
40
41
val interceptor = HttpLoggingInterceptor ()
41
42
interceptor.apply { interceptor.level = HttpLoggingInterceptor .Level .BODY }
42
43
val httpClient = OkHttpClient .Builder ().callTimeout(15 , TimeUnit .SECONDS )
43
- httpClient.addInterceptor(ChuckInterceptor (app.applicationContext))
44
+ if (BuildConfig .DEBUG ) {
45
+ httpClient.addInterceptor(ChuckInterceptor (app.applicationContext))
46
+ }
44
47
45
48
if (secretKey != null ) {
46
49
httpClient.addInterceptor(object : Interceptor {
You can’t perform that action at this time.
0 commit comments