correctly casing github/gitlab
This commit is contained in:
parent
49930773e7
commit
06e67a313b
@ -23,9 +23,9 @@ fun AuthenticationDescription.AuthenticationType.toAnalyticsType() = when (this)
|
||||
AuthenticationDescription.AuthenticationType.Password -> Signup.AuthenticationType.Password
|
||||
AuthenticationDescription.AuthenticationType.Apple -> Signup.AuthenticationType.Apple
|
||||
AuthenticationDescription.AuthenticationType.Facebook -> Signup.AuthenticationType.Facebook
|
||||
AuthenticationDescription.AuthenticationType.Github -> Signup.AuthenticationType.GitHub
|
||||
AuthenticationDescription.AuthenticationType.Gitlab -> Signup.AuthenticationType.GitLab
|
||||
AuthenticationDescription.AuthenticationType.Google -> Signup.AuthenticationType.Google
|
||||
AuthenticationDescription.AuthenticationType.GitHub -> Signup.AuthenticationType.GitHub
|
||||
AuthenticationDescription.AuthenticationType.GitLab -> Signup.AuthenticationType.GitLab
|
||||
AuthenticationDescription.AuthenticationType.Google -> Signup.AuthenticationType.Google
|
||||
AuthenticationDescription.AuthenticationType.SSO -> Signup.AuthenticationType.SSO
|
||||
AuthenticationDescription.AuthenticationType.Other -> Signup.AuthenticationType.Other
|
||||
}
|
||||
|
@ -32,8 +32,8 @@ sealed interface AuthenticationDescription : Parcelable {
|
||||
Password,
|
||||
Apple,
|
||||
Facebook,
|
||||
Github,
|
||||
Gitlab,
|
||||
GitHub,
|
||||
GitLab,
|
||||
Google,
|
||||
SSO,
|
||||
Other
|
||||
@ -42,10 +42,10 @@ sealed interface AuthenticationDescription : Parcelable {
|
||||
|
||||
fun SsoIdentityProvider?.toAuthenticationType() = when (this?.brand) {
|
||||
SsoIdentityProvider.BRAND_GOOGLE -> AuthenticationType.Google
|
||||
SsoIdentityProvider.BRAND_GITHUB -> AuthenticationType.Github
|
||||
SsoIdentityProvider.BRAND_GITHUB -> AuthenticationType.GitHub
|
||||
SsoIdentityProvider.BRAND_APPLE -> AuthenticationType.Apple
|
||||
SsoIdentityProvider.BRAND_FACEBOOK -> AuthenticationType.Facebook
|
||||
SsoIdentityProvider.BRAND_GITLAB -> AuthenticationType.Gitlab
|
||||
SsoIdentityProvider.BRAND_GITLAB -> AuthenticationType.GitLab
|
||||
SsoIdentityProvider.BRAND_TWITTER -> AuthenticationType.SSO
|
||||
null -> AuthenticationType.SSO
|
||||
else -> AuthenticationType.SSO
|
||||
|
Loading…
x
Reference in New Issue
Block a user