Skip to content

Make TcfEuV2's IsServiceSpecific not a condition for encoding Vendors…#93

Open
shawjef3 wants to merge 2 commits intoIABTechLab:masterfrom
shawjef3:tcfeuv2-encoding
Open

Make TcfEuV2's IsServiceSpecific not a condition for encoding Vendors…#93
shawjef3 wants to merge 2 commits intoIABTechLab:masterfrom
shawjef3:tcfeuv2-encoding

Conversation

@shawjef3
Copy link
Copy Markdown

…Allowed or VendorsDisclosed.

TcfEuV2#encodeSection() now uses the same criteria as iabtcf-java's TCStringEncoder to determine if a segment should be encoded.

TCF 2.3 makes VendorsDisclosed required, and so its encoding should not be conditional on IsServiceSpecific.

I made additional changes to reduce the amount of whitespace.

TcfEuV2#encodeSection() no longer creates an intermediate collection.

…Allowed or VendorsDisclosed.

TcfEuV2#encodeSection() now uses the same criteria as iabtcf-java's TCStringEncoder to determine
if a segment should be encoded.

TCF 2.3 makes VendorsDisclosed required, and so its encoding should not be conditional on
IsServiceSpecific.

I made additional changes to reduce the amount of whitespace.

TcfEuV2#encodeSection() no longer creates an intermediate collection.
@shawjef3
Copy link
Copy Markdown
Author

This is for #83.

@yuzawa-san
Copy link
Copy Markdown
Contributor

i have ported a similar change into the beta/4.X branch in d14a86b

Copy link
Copy Markdown

@HeinzBaumann HeinzBaumann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants