Skip to content

feat: Added CCPA consent support#14

Merged
mchuangatmp merged 1 commit intomParticle:mainfrom
ngarg-mparticle:main
Nov 8, 2022
Merged

feat: Added CCPA consent support#14
mchuangatmp merged 1 commit intomParticle:mainfrom
ngarg-mparticle:main

Conversation

@ngarg-mparticle
Copy link
Copy Markdown
Contributor

@ngarg-mparticle ngarg-mparticle commented Nov 4, 2022

Summary

Since the format of consent data expected by mParticle is the same for GDPR and CCPA, the class GDPRConsentState was renamed to a more regulation-agnostic name ConsentPurpose and refactored accordingly

Testing Plan

Tested by adding this code to MainActivity.java in the sample app, just before the uploadEvents call in run() method:

                    // CCPA Consent State
                    ConsentPurpose purpose = new ConsentPurpose();
                    purpose.setConsented(true);
                    purpose.setDocument("test_document");
                    purpose.setHardwareId("test_hardware_id");
                    purpose.setLocation("test_location");
                    purpose.setTimestampUnixtimeMs(System.currentTimeMillis());

                    ConsentState consentState = new ConsentState();
                    consentState.setCcpa(purpose);

                    batch.setConsentState(consentState);

Verified that mP received and processed the consent information successfully by checking "Event Data" in Live Stream and "Consent and Compliance" section in UAV

Reference Issue

Since the format of consent data expected by mParticle is the same for GDPR and CCPA, the class GDPRConsentState was renamed to a more regulation-agnostic name ConsentPurpose
@ngarg-mparticle ngarg-mparticle changed the title feat: Added CCPA support feat: Added CCPA consent support Nov 4, 2022
@mchuangatmp mchuangatmp self-requested a review November 4, 2022 16:13
@mchuangatmp mchuangatmp merged commit b46979a into mParticle:main Nov 8, 2022
mparticle-automation added a commit that referenced this pull request Nov 8, 2022
# [2.5.0](v2.4.1...v2.5.0) (2022-11-08)

### Features

* Added CCPA consent support ([#14](#14)) ([b46979a](b46979a))
@mparticle-automation
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants