Skip to content

Commit 9ede7ac

Browse files
authored
Upgrade guide and compat reports (#744)
1 parent 4137a21 commit 9ede7ac

File tree

7 files changed

+4991
-16
lines changed

7 files changed

+4991
-16
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ A compatible FirebaseUI client is also available for [iOS](https://github.com/fi
1212

1313
1. [Usage](#usage)
1414
1. [Installation](#installation)
15+
1. [Upgrading](#upgrading)
1516
1. [Dependencies](#dependencies)
1617
1. [Sample App](#sample-app)
1718
1. [Contributing](#contributing)
@@ -57,6 +58,13 @@ required.
5758

5859
After the project is synchronized, we're ready to start using Firebase functionality in our app.
5960

61+
## Upgrading
62+
63+
If you are using an old version of FirebaseUI and upgrading, please see the appropriate
64+
migration guide:
65+
66+
* [Upgrade from 1.2.0 to 2.0](./docs/upgrade-to-2.0.md)
67+
6068
## Dependencies
6169

6270
### Compatibility with Firebase / Google Play Services Libraries

auth/README.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,6 @@ dependencies {
5656
}
5757
```
5858

59-
and add the Fabric repository
60-
61-
```groovy
62-
allprojects {
63-
repositories {
64-
// ...
65-
maven { url 'https://maven.fabric.io/public' }
66-
}
67-
}
68-
```
69-
7059
### Identity provider configuration
7160

7261
In order to use either Google, Facebook or Twitter accounts with your app, ensure that
@@ -75,6 +64,7 @@ these authentication methods are first configured in the Firebase console.
7564
FirebaseUI client-side configuration for Google sign-in is then provided
7665
automatically by the
7766
[google-services gradle plugin](https://developers.google.com/android/guides/google-services-plugin).
67+
7868
If support for Facebook Login is also required, define the
7969
resource string `facebook_application_id` to match the application ID in
8070
the [Facebook developer dashboard](https://developers.facebook.com):
@@ -102,6 +92,17 @@ Twitter app as reported by the [Twitter application manager](https://apps.twitte
10292
In addition, you must enable the "Request email addresses from users" permission
10393
in the "Permissions" tab of your Twitter app.
10494

95+
In order to resolve the Twitter SDK, add the following repository to your `build.gradle`:
96+
97+
```groovy
98+
allprojects {
99+
repositories {
100+
// ...
101+
maven { url 'https://maven.fabric.io/public' }
102+
}
103+
}
104+
```
105+
105106
## Using FirebaseUI for Authentication
106107

107108
Before invoking the FirebaseUI authentication flow, your app should check
@@ -175,6 +176,7 @@ startActivityForResult(
175176
.createSignInIntentBuilder()
176177
.setAvailableProviders(
177178
Arrays.asList(new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(),
179+
new AuthUI.IdpConfig.Builder(AuthUI.PHONE_VERIFICATION_PROVDER).build(),
178180
new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build(),
179181
new AuthUI.IdpConfig.Builder(AuthUI.FACEBOOK_PROVIDER).build(),
180182
new AuthUI.IdpConfig.Builder(AuthUI.TWITTER_PROVIDER).build()))
@@ -222,6 +224,18 @@ startActivityForResult(
222224
RC_SIGN_IN);
223225
```
224226

227+
If you'd like to keep SmartLock's "hints" but disable the saving/retrieving of credentials, then
228+
you can use the two-argument version of `setIsSmartLockEnabled`:
229+
230+
```java
231+
startActivityForResult(
232+
AuthUI.getInstance()
233+
.createSignInIntentBuilder()
234+
.setIsSmartLockEnabled(false, true)
235+
.build(),
236+
RC_SIGN_IN);
237+
```
238+
225239
#### Handling the sign-in response
226240

227241
##### Response codes

auth/upgrade-guide.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)