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 {
4141}
4242
4343dependencies {
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" )
4846 implementation(" androidx.core:core-ktx:1.10.1" )
4947 implementation(" androidx.lifecycle:lifecycle-process:2.6.1" )
5048 implementation(" androidx.lifecycle:lifecycle-common-java8:2.6.1" )
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ android {
3737dependencies {
3838 implementation(project(mapOf (" path" to " :lib" )))
3939
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+
4242 implementation(" com.onetrust.cmp:native-sdk:202309.1.0.0" )
4343 implementation(" com.squareup.okhttp3:okhttp:4.10.0" )
4444 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() {
5959
6060 appContext = this
6161
62-
63-
6462 Analytics .debugLogsEnabled = true
6563 analytics = Analytics (SEGMENT_WRITE_KEY , applicationContext) {
6664 this .collectDeviceId = true
@@ -72,7 +70,6 @@ class MainApplication : Application() {
7270 )
7371 }
7472
75-
7673 analytics.add(WebhookPlugin (WEBHOOK_URL ))
7774
7875 otPublishersHeadlessSDK = OTPublishersHeadlessSDK (this )
@@ -102,6 +99,11 @@ class MainApplication : Application() {
10299
103100 Log .d(TAG , " Setting up Analytics with categories: ${categories} " )
104101 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.
105107 consentPlugin.start()
106108 }
107109
You can’t perform that action at this time.
0 commit comments