feat(MSDK-4088): Support PL-5714 new COP restriction fields across Dart, Android and iOS#176
Open
uc-brunosilva wants to merge 1 commit into
Open
Conversation
…rt, Android and iOS Adds ConsentOrPayRestriction class and two new PL-5714 fields: - TCF2ChangedPurposes.consentOrPay — List<ConsentOrPayRestriction>? - TCF2Settings.specialFeaturesConsentOrPay — List<ConsentOrPayRestriction>? Both Android and iOS bridges serialize the new fields. Dart serializer deserializes both. Old publisherRestrictions/specialFeatures kept for backwards compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the new PL-5714 JSON schema fields across all bridge layers.
New class:
ConsentOrPayRestriction—{id: int, value: 'FLEXIBLE'|'MANDATORY'}withisFlexible()helperUpdated:
TCF2ChangedPurposes— newconsentOrPay?: List<ConsentOrPayRestriction>fieldUpdated:
TCF2Settings— newspecialFeaturesConsentOrPay?: List<ConsentOrPayRestriction>fieldBoth Android and iOS bridges serialize the new fields. Dart serializer deserializes both. Old
publisherRestrictionsandspecialFeaturesmaps are kept for backwards compatibility.Part of the PUR model fix tracked in MSDK-4088. Native SDK changes are in mobile-sdk PR #2401.
Test plan
ConsentOrPayRestrictionexported correctly, new fields present onTCF2SettingsandTCF2ChangedPurposesCMPDataSerializerserializesspecialFeaturesConsentOrPayandchangedPurposes.consentOrPayCMPDataSerializerserializes both new fieldsdart analyzepasses — no issues found🤖 Generated with Claude Code