File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
lib/src/main/java/com/segment/analytics/kotlin/destinations/consent/onetrust
testapp/src/main/java/com/segment/analytics/destinations/mydestination/testapp Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import android.content.Context
55import android.content.Intent
66import android.content.IntentFilter
77import com.onetrust.otpublishers.headless.Public.Keys.OTBroadcastServiceKeys
8- import com.segment.analytics.kotlin.destinations.consent.ConsentManagementPlugin
8+ import com.segment.analytics.kotlin.destinations.consent.ConsentManager
99import java.lang.ref.WeakReference
1010
1111class OneTrustConsentChangedNotifier (
1212 val contextReference : WeakReference <Context >,
1313 val categories : List <String >,
14- val consentPlugin : ConsentManagementPlugin
14+ val consentPlugin : ConsentManager
1515) {
1616
1717 private val consentChangedReceiver: BroadcastReceiver ? = null
@@ -41,7 +41,7 @@ class OneTrustConsentChangedNotifier(
4141 }
4242}
4343
44- class OneTrustConsentChangedReceiver (val consentPlugin : ConsentManagementPlugin ) :
44+ class OneTrustConsentChangedReceiver (val consentPlugin : ConsentManager ) :
4545 BroadcastReceiver () {
4646 override fun onReceive (context : Context ? , intent : Intent ? ) {
4747 consentPlugin.notifyConsentChanged()
Original file line number Diff line number Diff line change @@ -28,18 +28,11 @@ class MainApplication : Application() {
2828 lateinit var otPublishersHeadlessSDK: OTPublishersHeadlessSDK
2929
3030 // Update these:
31- // private const val SEGMENT_WRITE_KEY = "<Your Segment WRITEKEY>"
32- // const val DOMAIN_URL = "<Your OneTrust Domain URL>"
33- // const val DOMAIN_ID = "<Your OneTrust Domain ID>"
34- // const val WEBHOOK_URL = "<Your webhook.site webhook url>"
35-
36-
37- private const val SEGMENT_WRITE_KEY = " Iqc4U4x6130y1XFCLIP40N3WSTHXkTPz"
38- const val DOMAIN_URL = " cdn.cookielaw.org"
39- // const val DOMAIN_ID = "72eadd89-8bfb-4d82-aed4-20a33299b6d1-test"
40- const val DOMAIN_ID = " 14747048-7048-4b70-9aab-d1862f43f034-test"
41- // const val DOMAIN_ID = "foo"
42- const val WEBHOOK_URL = " https://webhook.site/9bbdf672-fd47-4235-8c81-922bc7145f22"
31+ private const val SEGMENT_WRITE_KEY = " <Your Segment WRITEKEY>"
32+ const val DOMAIN_URL = " <Your OneTrust Domain URL>"
33+ const val DOMAIN_ID = " <Your OneTrust Domain ID>"
34+ const val WEBHOOK_URL = " <Your webhook.site webhook url>"
35+
4336
4437
4538 const val LANGUAGE_CODE = " en"
You can’t perform that action at this time.
0 commit comments