Skip to content

Force ToS & Pp to be added to align with FirebaseUI Web & iOS #1325

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

Merged
merged 3 commits into from
May 30, 2018

Conversation

lsirac
Copy link
Contributor

@lsirac lsirac commented May 29, 2018

Deprecated both #setTosUrl() and #setPrivacyPolicyUrl() and added #setTosAndPrivacyPolicyUrls().

If only one of ToS/Pp is provided nothing will be shown. Users must provide both.

@lsirac lsirac requested review from samtstern and SUPERCILEX May 29, 2018 23:17
@lsirac lsirac changed the base branch from master to version-4.1.0-dev May 29, 2018 23:17
public T setPrivacyPolicyUrl(@Nullable String privacyPolicyUrl) {
mPrivacyPolicyUrl = privacyPolicyUrl;
return (T) this;
}

@NonNull
public T setTosAndPrivacyPolicyUrls(@NonNull String tosUrl,
@NonNull String privacyPolicyUrl) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add a Preconditions check in here to check the non-null-ness since @NonNull is just an IDE hint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@samtstern
Copy link
Contributor

@samtstern samtstern merged commit a385dfa into version-4.1.0-dev May 30, 2018
@lsirac lsirac deleted the GDPR-api-change branch May 30, 2018 00:52
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