Skip to content

[MSDK-3955] Expose mandatoryLabel in TCF2Settings Flutter bridge for PUR compliance#174

Merged
uc-brunosilva merged 1 commit into
release/2.27.0from
fix/MSDK-3955-mandatory-label-parity
Jun 2, 2026
Merged

[MSDK-3955] Expose mandatoryLabel in TCF2Settings Flutter bridge for PUR compliance#174
uc-brunosilva merged 1 commit into
release/2.27.0from
fix/MSDK-3955-mandatory-label-parity

Conversation

@uc-brunosilva
Copy link
Copy Markdown
Contributor

Summary

Changes

  • lib/src/model/tcf2_settings.dart — added field declaration, constructor param, ==, hashCode
  • lib/src/internal/serializer/tcf2_settings_serializer.dart — deserialize from value['mandatoryLabel'] with "Mandatory" fallback
  • android/.../CMPDataSerializer.kt — serialize mandatoryLabel
  • ios/Classes/Serializer/CMPDataSerializer.swift — serialize mandatoryLabel

Why it matters

Flutter developers building a custom TCF second layer via getCmpData() need mandatoryLabel to render the mandatory badge on purposes/special features that have no toggle under the ConsentOrPay flow. Without it they would have to hardcode "Mandatory", which breaks when the value is overridden via the app_PUR_MANDATORY_LABEL_TEXT translation key.

Test plan

  • All 64 Flutter unit tests pass (flutter test)

…PUR compliance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@uc-brunosilva uc-brunosilva merged commit 895efc5 into release/2.27.0 Jun 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants