Skip to content

Commit 2c74738

Browse files
committed
Add README.md explanation
1 parent 4e3923e commit 2c74738

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

auth/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ repositories {
5757
}
5858
```
5959

60+
#### Important note
61+
62+
Firebase-UI-auth v1.0.0 is incompatible with the v25 support libraries. Please upgrade to v1.0.1
63+
to use the latest version of the support libraries.
64+
65+
6066
### Identity provider configuration
6167

6268
In order to use either Google, Facebook or Twitter accounts with your app, ensure that

auth/src/main/java/com/firebase/ui/auth/provider/FacebookProvider.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import android.content.Intent;
2020
import android.os.Bundle;
2121
import android.util.Log;
22-
2322
import com.facebook.CallbackManager;
2423
import com.facebook.FacebookCallback;
2524
import com.facebook.FacebookException;
@@ -35,12 +34,10 @@
3534
import com.firebase.ui.auth.R;
3635
import com.google.firebase.auth.AuthCredential;
3736
import com.google.firebase.auth.FacebookAuthProvider;
38-
39-
import org.json.JSONException;
40-
import org.json.JSONObject;
41-
4237
import java.util.ArrayList;
4338
import java.util.List;
39+
import org.json.JSONException;
40+
import org.json.JSONObject;
4441

4542
public class FacebookProvider implements IdpProvider, FacebookCallback<LoginResult> {
4643
protected static final String ERROR = "err";

auth/src/main/java/com/firebase/ui/auth/ui/idp/AuthMethodPickerActivity.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ private void populateIdpList(List<IdpConfig> providers) {
8989
mIdpProviders = new ArrayList<>();
9090
for (IdpConfig idpConfig : providers) {
9191
switch (idpConfig.getProviderId()) {
92-
case AuthUI.GOOGLE_PROVIDER:
93-
mIdpProviders.add(new GoogleProvider(this, idpConfig));
94-
break;
9592
case AuthUI.FACEBOOK_PROVIDER:
9693
mIdpProviders.add(new FacebookProvider(this, idpConfig));
9794
break;
98-
case AuthUI.TWITTER_PROVIDER:
99-
mIdpProviders.add(new TwitterProvider(this));
95+
case AuthUI.GOOGLE_PROVIDER:
96+
mIdpProviders.add(new GoogleProvider(this, idpConfig));
10097
break;
10198
case AuthUI.EMAIL_PROVIDER:
10299
findViewById(R.id.email_provider).setVisibility(View.VISIBLE);
103100
break;
101+
case AuthUI.TWITTER_PROVIDER:
102+
mIdpProviders.add(new TwitterProvider(this));
103+
break;
104104
default:
105105
if (BuildConfig.DEBUG) {
106106
Log.d(TAG, "Encountered unknown IDPProvider parcel with type: "

common/constants.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
project.ext.firebase_version = '9.8.0'
2+
// use caution when updating support library version, v25.0.0 caused issues
3+
// with the Facebook SDK. (NoSuchMethodError startActivity)
24
project.ext.support_library_version = '25.0.0'
35

46
project.ext.submodules = ['database', 'auth', 'storage']

0 commit comments

Comments
 (0)