From da78ea98616c034b63524952ed279c9515a4a858 Mon Sep 17 00:00:00 2001 From: TheRealJan Date: Wed, 18 Oct 2023 14:03:46 +0200 Subject: [PATCH] Use Google OneTap on Android 14 for now Signed-off-by: TheRealJan --- gradle.properties | 2 +- .../github/jan/supabase/compose/auth/composable/GoogleAuth.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 252331ebb..5c3e319a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,4 @@ org.gradle.parallel=true org.jetbrains.compose.experimental.uikit.enabled=true org.jetbrains.compose.experimental.jscanvas.enabled=true -supabase-version = 1.4.2 +supabase-version = 1.4.3 diff --git a/plugins/ComposeAuth/src/androidMain/kotlin/io/github/jan/supabase/compose/auth/composable/GoogleAuth.kt b/plugins/ComposeAuth/src/androidMain/kotlin/io/github/jan/supabase/compose/auth/composable/GoogleAuth.kt index 4761212b3..b0e3a76de 100644 --- a/plugins/ComposeAuth/src/androidMain/kotlin/io/github/jan/supabase/compose/auth/composable/GoogleAuth.kt +++ b/plugins/ComposeAuth/src/androidMain/kotlin/io/github/jan/supabase/compose/auth/composable/GoogleAuth.kt @@ -39,7 +39,7 @@ import kotlinx.coroutines.tasks.await @Composable actual fun ComposeAuth.rememberLoginWithGoogle(onResult: (NativeSignInResult) -> Unit, fallback: suspend () -> Unit): NativeSignInState { return if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.TIRAMISU) { - signInWithCM(onResult, fallback) + oneTapSignIn(onResult, fallback) } else { oneTapSignIn(onResult, fallback) }