File tree Expand file tree Collapse file tree 3 files changed +7
-16
lines changed
src/main/java/com/raven/ravenandroidsdk Expand file tree Collapse file tree 3 files changed +7
-16
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.3 "
23
+ versionName " 1.0.4 "
24
24
25
25
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
26
26
consumerProguardFiles ' consumer-rules.pro'
@@ -49,6 +49,9 @@ dependencies {
49
49
implementation ' com.squareup.retrofit2:retrofit:2.6.2'
50
50
implementation ' com.squareup.retrofit2:converter-gson:2.6.2'
51
51
implementation ' com.squareup.okhttp3:logging-interceptor:4.2.1'
52
+
53
+ debugImplementation ' com.readystatesoftware.chuck:library:1.1.0'
54
+ releaseImplementation ' com.readystatesoftware.chuck:library-no-op:1.1.0'
52
55
}
53
56
54
57
// Because the components are created only during the afterEvaluate phase, you must
@@ -64,7 +67,7 @@ afterEvaluate {
64
67
// You can then customize attributes of the publication as shown below.
65
68
groupId = ' com.raven'
66
69
artifactId = ' raven-android-sdk'
67
- version = ' 1.0.3 '
70
+ version = ' 1.0.4 '
68
71
}
69
72
}
70
73
}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ object RavenSdk {
22
22
const val RAVEN_NOTIFICATION_ID = " raven_notification_id"
23
23
24
24
/*
25
- Method to initialize Raven SDK when you want to trigger raven events via SDK.
26
25
Invoke on app launch
27
26
*/
28
27
@Throws(IllegalArgumentException ::class )
@@ -33,18 +32,6 @@ object RavenSdk {
33
32
}
34
33
35
34
36
- /*
37
- Method to initialize Raven SDK when you do not want to trigger raven events via SDK.
38
- Invoke on app launch
39
- */
40
- @Throws(IllegalArgumentException ::class )
41
- fun initialize (context : Application , appId : String ) {
42
- initPrefs(context, appId)
43
- ApiProvider (context)
44
- fetchCurrentUser()
45
- }
46
-
47
-
48
35
/*
49
36
Set user identifier.
50
37
Invoke once on login to set the user identifier
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.readystatesoftware.chuck.ChuckInterceptor
5
6
import okhttp3.Interceptor
6
7
import okhttp3.OkHttpClient
7
8
import okhttp3.Request
@@ -39,7 +40,7 @@ internal class ApiProvider(context: Context) {
39
40
val interceptor = HttpLoggingInterceptor ()
40
41
interceptor.apply { interceptor.level = HttpLoggingInterceptor .Level .BODY }
41
42
val httpClient = OkHttpClient .Builder ().callTimeout(15 , TimeUnit .SECONDS )
42
- // httpClient.addInterceptor(ChuckInterceptor(app.applicationContext))
43
+ httpClient.addInterceptor(ChuckInterceptor (app.applicationContext))
43
44
44
45
if (secretKey != null ) {
45
46
httpClient.addInterceptor(object : Interceptor {
You can’t perform that action at this time.
0 commit comments