Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOBILE-7049: Sync support of GDPR and CCPA #8

Merged

Conversation

KostiantynTselykh
Copy link

feat(UserConsentManager):

  • Added handling of device purpose consent
  • Cleanup unused variables

feat(Requester):

  • Fetching ADID only if device consent is valid
  • Nullifying ADID if consent is not granted (in case it changed)

tests(unit):

  • Added unit tests to verify consent behaviour

Copy link

@YuriyVelichkoOpenX YuriyVelichkoOpenX left a comment

Choose a reason for hiding this comment

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

LGTM

final String subjectToGdpr = getSubjectToGdpr();
final int deviceConsentIndex = 1;

Boolean gdprApplies = TextUtils.isEmpty(subjectToGdpr) ? null : "1".equals(subjectToGdpr);

Choose a reason for hiding this comment

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

For the future. If you start to use 'final' for some variables it makes sense to apply it everywhere. In this method, the first two variables have 'final' but these two don't have, somehow.

@KostiantynTselykh KostiantynTselykh force-pushed the MOBILE-7049_sync_support_of_gdpr branch 2 times, most recently from 897a767 to 014bd49 Compare April 19, 2021 09:39
- Added handling of device purpose consent
- Cleanup unused variables

feat(Requester):
- Fetching ADID only if device consent is valid
- Nullifying ADID if consent is not granted (in case it changed)

tests(unit):
- Added unit tests to verify consent behaviour
@KostiantynTselykh KostiantynTselykh merged commit 5c0862b into feature-rendering-module Apr 19, 2021
@KostiantynTselykh KostiantynTselykh deleted the MOBILE-7049_sync_support_of_gdpr branch April 19, 2021 11:41
KostiantynTselykh added a commit that referenced this pull request Apr 28, 2021
feat(UserConsentManager):
- Added handling of device purpose consent
- Cleanup unused variables

feat(Requester):
- Fetching ADID only if device consent is valid
- Nullifying ADID if consent is not granted (in case it changed)

tests(unit):
- Added unit tests to verify consent behaviour
KostiantynTselykh added a commit that referenced this pull request Apr 28, 2021
feat(UserConsentManager):
- Added handling of device purpose consent
- Cleanup unused variables

feat(Requester):
- Fetching ADID only if device consent is valid
- Nullifying ADID if consent is not granted (in case it changed)

tests(unit):
- Added unit tests to verify consent behaviour
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