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

CMP-4885: - implemented isUnderage flag and DidomiInitializeParameters #143

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

felipe-saez
Copy link
Contributor

@felipe-saez felipe-saez commented Jan 31, 2025

Changed included:

  • Added support for isUnderage flag on setUser and initialize.
  • Implemented initialize function that accepts DidomiInitializeParameters.
  • Implemented setUser function that accepts DidomiUserParameters.
  • Deprecated setUser functions not based on DidomiUserParameters.
  • Deprecated initialize functions not based on DidomiInitializeParameters.
  • Removed force unwrapping.
  • Removed fatalError.
  • Improved existing tests.

…s. - Removed force unwrapping. - Removed fatalError.
@felipe-saez felipe-saez changed the title CMP-4885: - implemented isUnderage flag and DidomiInitializeParameter… CMP-4885: - implemented isUnderage flag and DidomiInitializeParameters Jan 31, 2025
@@ -319,6 +322,7 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
}

@ReactMethod
@Deprecated("Use initializeWithParameters instead", replaceWith = ReplaceWith("initializeWithParameters()"))
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is internal, maybe it is not necessary to mark it as deprecated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can remove it. Currently we mark other methods as deprecated as well. I'll remove those too. Let me know what you think.

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.

4 participants