File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/java/com/segment/analytics/destinations/mydestination/testapp Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,8 @@ android {
41
41
}
42
42
43
43
dependencies {
44
- implementation(" com.segment:sovran-kotlin:1.3.1" )
45
- implementation(" com.segment.analytics.kotlin:android:1.14.0" )
46
- implementation(" com.segment.analytics.kotlin.destinations:consent:1.2.2" )
47
- implementation(" androidx.multidex:multidex:2.0.1" )
44
+ implementation(" com.segment.analytics.kotlin.destinations:consent:1.4.0" )
45
+ implementation(" androidx.multidex:multidex:2.0.1" )
48
46
implementation(" androidx.core:core-ktx:1.10.1" )
49
47
implementation(" androidx.lifecycle:lifecycle-process:2.6.1" )
50
48
implementation(" androidx.lifecycle:lifecycle-common-java8:2.6.1" )
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ android {
37
37
dependencies {
38
38
implementation(project(mapOf (" path" to " :lib" )))
39
39
40
- implementation(" com.segment.analytics.kotlin.destinations:consent:1.2.2 " )
41
- implementation( " com.segment.analytics.kotlin:android:1.13.1 " )
40
+ implementation(" com.segment.analytics.kotlin.destinations:consent:1.4.0 " )
41
+
42
42
implementation(" com.onetrust.cmp:native-sdk:202309.1.0.0" )
43
43
implementation(" com.squareup.okhttp3:okhttp:4.10.0" )
44
44
implementation(" com.segment.analytics.kotlin:destination-filters:0.1.1" )
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ class MainApplication : Application() {
59
59
60
60
appContext = this
61
61
62
-
63
-
64
62
Analytics .debugLogsEnabled = true
65
63
analytics = Analytics (SEGMENT_WRITE_KEY , applicationContext) {
66
64
this .collectDeviceId = true
@@ -72,7 +70,6 @@ class MainApplication : Application() {
72
70
)
73
71
}
74
72
75
-
76
73
analytics.add(WebhookPlugin (WEBHOOK_URL ))
77
74
78
75
otPublishersHeadlessSDK = OTPublishersHeadlessSDK (this )
@@ -102,6 +99,11 @@ class MainApplication : Application() {
102
99
103
100
Log .d(TAG , " Setting up Analytics with categories: ${categories} " )
104
101
consentCategoryProvider.setCategoryList(categories)
102
+
103
+ // This call starts the events following through the ConsentManagement Plugin
104
+ // The plugin will BLOCK all events until start() is called. Here we do it after
105
+ // we have gotten valid information from OneTrust, so you MUST enter valid OneTrust
106
+ // Configuration information for events to flow.
105
107
consentPlugin.start()
106
108
}
107
109
You can’t perform that action at this time.
0 commit comments