@@ -56,17 +56,6 @@ dependencies {
56
56
}
57
57
```
58
58
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
-
70
59
### Identity provider configuration
71
60
72
61
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.
75
64
FirebaseUI client-side configuration for Google sign-in is then provided
76
65
automatically by the
77
66
[ google-services gradle plugin] ( https://developers.google.com/android/guides/google-services-plugin ) .
67
+
78
68
If support for Facebook Login is also required, define the
79
69
resource string ` facebook_application_id ` to match the application ID in
80
70
the [ Facebook developer dashboard] ( https://developers.facebook.com ) :
@@ -102,6 +92,17 @@ Twitter app as reported by the [Twitter application manager](https://apps.twitte
102
92
In addition, you must enable the "Request email addresses from users" permission
103
93
in the "Permissions" tab of your Twitter app.
104
94
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
+
105
106
## Using FirebaseUI for Authentication
106
107
107
108
Before invoking the FirebaseUI authentication flow, your app should check
@@ -175,6 +176,7 @@ startActivityForResult(
175
176
.createSignInIntentBuilder()
176
177
.setAvailableProviders(
177
178
Arrays . asList(new AuthUI .IdpConfig .Builder (AuthUI . EMAIL_PROVIDER ). build(),
179
+ new AuthUI .IdpConfig .Builder (AuthUI . PHONE_VERIFICATION_PROVDER ). build(),
178
180
new AuthUI .IdpConfig .Builder (AuthUI . GOOGLE_PROVIDER ). build(),
179
181
new AuthUI .IdpConfig .Builder (AuthUI . FACEBOOK_PROVIDER ). build(),
180
182
new AuthUI .IdpConfig .Builder (AuthUI . TWITTER_PROVIDER ). build()))
@@ -222,6 +224,18 @@ startActivityForResult(
222
224
RC_SIGN_IN );
223
225
```
224
226
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
+
225
239
#### Handling the sign-in response
226
240
227
241
##### Response codes
0 commit comments