correctly casing github/gitlab

This commit is contained in:
Adam Brown 2022-06-06 11:39:59 +01:00
parent 49930773e7
commit 06e67a313b
2 changed files with 7 additions and 7 deletions

View file

@ -23,8 +23,8 @@ fun AuthenticationDescription.AuthenticationType.toAnalyticsType() = when (this)
AuthenticationDescription.AuthenticationType.Password -> Signup.AuthenticationType.Password AuthenticationDescription.AuthenticationType.Password -> Signup.AuthenticationType.Password
AuthenticationDescription.AuthenticationType.Apple -> Signup.AuthenticationType.Apple AuthenticationDescription.AuthenticationType.Apple -> Signup.AuthenticationType.Apple
AuthenticationDescription.AuthenticationType.Facebook -> Signup.AuthenticationType.Facebook AuthenticationDescription.AuthenticationType.Facebook -> Signup.AuthenticationType.Facebook
AuthenticationDescription.AuthenticationType.Github -> Signup.AuthenticationType.GitHub AuthenticationDescription.AuthenticationType.GitHub -> Signup.AuthenticationType.GitHub
AuthenticationDescription.AuthenticationType.Gitlab -> Signup.AuthenticationType.GitLab AuthenticationDescription.AuthenticationType.GitLab -> Signup.AuthenticationType.GitLab
AuthenticationDescription.AuthenticationType.Google -> Signup.AuthenticationType.Google AuthenticationDescription.AuthenticationType.Google -> Signup.AuthenticationType.Google
AuthenticationDescription.AuthenticationType.SSO -> Signup.AuthenticationType.SSO AuthenticationDescription.AuthenticationType.SSO -> Signup.AuthenticationType.SSO
AuthenticationDescription.AuthenticationType.Other -> Signup.AuthenticationType.Other AuthenticationDescription.AuthenticationType.Other -> Signup.AuthenticationType.Other

View file

@ -32,8 +32,8 @@ sealed interface AuthenticationDescription : Parcelable {
Password, Password,
Apple, Apple,
Facebook, Facebook,
Github, GitHub,
Gitlab, GitLab,
Google, Google,
SSO, SSO,
Other Other
@ -42,10 +42,10 @@ sealed interface AuthenticationDescription : Parcelable {
fun SsoIdentityProvider?.toAuthenticationType() = when (this?.brand) { fun SsoIdentityProvider?.toAuthenticationType() = when (this?.brand) {
SsoIdentityProvider.BRAND_GOOGLE -> AuthenticationType.Google SsoIdentityProvider.BRAND_GOOGLE -> AuthenticationType.Google
SsoIdentityProvider.BRAND_GITHUB -> AuthenticationType.Github SsoIdentityProvider.BRAND_GITHUB -> AuthenticationType.GitHub
SsoIdentityProvider.BRAND_APPLE -> AuthenticationType.Apple SsoIdentityProvider.BRAND_APPLE -> AuthenticationType.Apple
SsoIdentityProvider.BRAND_FACEBOOK -> AuthenticationType.Facebook SsoIdentityProvider.BRAND_FACEBOOK -> AuthenticationType.Facebook
SsoIdentityProvider.BRAND_GITLAB -> AuthenticationType.Gitlab SsoIdentityProvider.BRAND_GITLAB -> AuthenticationType.GitLab
SsoIdentityProvider.BRAND_TWITTER -> AuthenticationType.SSO SsoIdentityProvider.BRAND_TWITTER -> AuthenticationType.SSO
null -> AuthenticationType.SSO null -> AuthenticationType.SSO
else -> AuthenticationType.SSO else -> AuthenticationType.SSO