Skip to content

Conversation

@samtstern
Copy link
Contributor

Issues #676 and #743 are addressed.

Issues #676 and #743 are addressed.

Change-Id: Iaa7a1e8219cab4f309ee6a95373cdfe72a3d77e9
@samtstern
Copy link
Contributor Author

@SUPERCILEX did I miss anything? I feel like I did for database but I am not sure.

Google/Email/Phone authentication.
* **Sign Out and Delete** - The `AuthUI#delete(Activity)` and `AuthUI#signOut(Activity)`
methods have been removed, please use the versions that accept `FragmentActivity`.
* **Error Codes** - The `ResultCodes` class has been removed, instead in `onActivityResult` you
Copy link
Collaborator

Choose a reason for hiding this comment

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

@samtstern We actually haven't done that yet, though I'd be happy to submit a PR. (The class is here and just references the activity results).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Created #745

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh interesting. We did do something about the network error code though, do you remember what that change was?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, we used to have two error code classes, one in the UI package and the new one in the root package.

I'm not sure, but I think a long time ago we make it so that everything returned result code ok or cancelled and you would check for the idp response error code to see if it was a network error. I believe we used to return the error code directly in the result code before that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found it and fixed.

* **Sign Out and Delete** - The `AuthUI#delete(Activity)` and `AuthUI#signOut(Activity)`
methods have been removed, please use the versions that accept `FragmentActivity`.
* **Error Codes** - The `ResultCodes` class has been removed, instead in `onActivityResult` you
should check for `RESULT_CANCELED` and then use `IdpResponse#getErrorCode()` to determine the \
Copy link
Collaborator

Choose a reason for hiding this comment

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

The \ looks like a typo.

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

* **Error Codes** - The `ResultCodes` class has been removed, instead in `onActivityResult` you
should check for `RESULT_CANCELED` and then use `IdpResponse#getErrorCode()` to determine the \
source of the error.
* **Choosing Providers** - `setProviders` has been deprecated, please use `setAvailableProviders`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, we removed the vargs setProviders

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.

* **Facebook and Google Scopes** - setting scopes via `string` resources is no longer supported,
please set scopes in code using `IdpConfig`.
* **Themes** - AppCompat theme properties such as `colorPrimary` or `colorAccent` are now
respected, please double-check to make sure your UI still looks as expected.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be rewritten to something like so:

AppCompat theme properties such as colorPrimary and colorAccent are now used to style FirebaseUI automatically without any need for customization. Unless your auth UI needs a different theme than the rest of your app, please remove AuthUI.SignInIntentBuilder#setTheme(int) and its related xml theme from your auth intent builder and check to make sure that the auth UI has been themed correctly.

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.

the saving/retrieving of full credentials from the API. Setting the same value for each flag
will emulate the previous single-flag behavior.

## Database
Copy link
Collaborator

Choose a reason for hiding this comment

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

@samtstern I think you got them all. 😄

Change-Id: I0b1ee2907f7ef1a2ea661f8fc36aeea7da1b07f5
@samtstern samtstern merged commit 9ede7ac into version-2.0.0-dev Jun 9, 2017
@SUPERCILEX
Copy link
Collaborator

@samtstern Awesome! Do we not want to go through with #745 then? I still think it's a nice improvement and v2.0 is going to be our only chance for a while.

@samtstern
Copy link
Contributor Author

@SUPERCILEX just commented on that PR but yeah let's not go through with #745.

Also while I have your attention, see my comment on your "Key doesn't exist in a ref" PR since that's the last outstanding thing.

@samtstern samtstern deleted the migration-guide branch June 15, 2017 15:37
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