Skip to content

Commit 60ec261

Browse files
committed
feat(auth): migrate to Kotlin
1 parent 7231cf5 commit 60ec261

12 files changed

+1031
-1564
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthMethodPickerLayout.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,11 @@ public AuthMethodPickerLayout build() {
198198
}
199199

200200
for (String key : providersMapping.keySet()) {
201-
if (!AuthUI.SUPPORTED_PROVIDERS.contains(key)
202-
&& !AuthUI.SUPPORTED_OAUTH_PROVIDERS.contains(key)) {
203-
throw new IllegalArgumentException("Unknown provider: " + key);
201+
if (key == null) continue;
202+
if (!AuthUI.isSupportedProvider(key)
203+
&& !AuthUI.isSupportedOAuthProvider(key)) {
204+
throw new IllegalStateException(
205+
"Unknown provider: " + key);
204206
}
205207
}
206208

0 commit comments

Comments
 (0)