Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 SUPERCILEX and samtstern May 29, 2018 23:17
@lsirac lsirac changed the base branch from master to version-4.1.0-dev May 29, 2018 23:17

@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

Just one comment, also we need to update the docs here:
https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#adding-a-tos-and-privacy-policy

@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