File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11- Fixes issue with custom parameters for OAuth providers (#1805 )
2+ - Restore ` setGithubButtonId ` when using custom layouts (#1783 )
Original file line number Diff line number Diff line change 66
77import com .google .firebase .auth .EmailAuthProvider ;
88import com .google .firebase .auth .FacebookAuthProvider ;
9+ import com .google .firebase .auth .GithubAuthProvider ;
910import com .google .firebase .auth .GoogleAuthProvider ;
1011import com .google .firebase .auth .PhoneAuthProvider ;
1112import com .google .firebase .auth .TwitterAuthProvider ;
@@ -158,6 +159,12 @@ public AuthMethodPickerLayout.Builder setAnonymousButtonId(@IdRes int anonymousB
158159 return this ;
159160 }
160161
162+ public AuthMethodPickerLayout .Builder setGithubButtonId (
163+ @ IdRes int githubButtonId ) {
164+ providersMapping .put (GithubAuthProvider .PROVIDER_ID , githubButtonId );
165+ return this ;
166+ }
167+
161168 public AuthMethodPickerLayout .Builder setMicrosoftButtonId (
162169 @ IdRes int microsoftButtonId ) {
163170 providersMapping .put (AuthUI .MICROSOFT_PROVIDER , microsoftButtonId );
Original file line number Diff line number Diff line change @@ -149,8 +149,7 @@ public final class AuthUI {
149149 public static final Set <String > SOCIAL_PROVIDERS =
150150 Collections .unmodifiableSet (new HashSet <>(Arrays .asList (
151151 GoogleAuthProvider .PROVIDER_ID ,
152- FacebookAuthProvider .PROVIDER_ID ,
153- GithubAuthProvider .PROVIDER_ID )));
152+ FacebookAuthProvider .PROVIDER_ID )));
154153
155154 @ RestrictTo (RestrictTo .Scope .LIBRARY_GROUP )
156155 public static final String UNCONFIGURED_CONFIG_VALUE = "CHANGE-ME" ;
You can’t perform that action at this time.
0 commit comments