Skip to content

Commit

Permalink
Bumping dependencies versions and fixing ios annotation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzemehdi committed Jun 3, 2024
1 parent d1471b0 commit 1562d22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android-compileSdk = "34"
android-targetSdk = "34"
androidx-activityCompose = "1.9.0"
androidx-core-ktx = "1.13.1"
androidx-appcompat = "1.6.1"
androidx-appcompat = "1.7.0"
androidx-material = "1.12.0"
androidx-constraintlayout = "2.1.4"
androidx-test-junit = "1.1.5"
Expand All @@ -18,10 +18,10 @@ junit = "4.13.2"
koin = "3.5.6"
kotlinx-binary-validator = "0.13.2"
dokka = "1.9.10"
androidxCredential = "1.3.0-alpha04"
androidxCredential = "1.3.0-beta01"
googleIdIdentity = "1.1.0"
koinCompose = "1.1.5"
googleServices = "4.4.1"
googleServices = "4.4.2"
firebaseGitLiveAuth = "1.12.0"
androidLegacyPlayServices = "21.2.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private class PresentationContextProvider :
private class ASAuthorizationControllerDelegate(private val onResult: (Result<FirebaseUser?>) -> Unit) :
ASAuthorizationControllerDelegateProtocol, NSObject() {

@OptIn(BetaInteropApi::class)
@OptIn(BetaInteropApi::class, ExperimentalForeignApi::class)
override fun authorizationController(
controller: ASAuthorizationController,
didCompleteWithAuthorization: ASAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import dev.gitlive.firebase.auth.AuthCredential
import dev.gitlive.firebase.auth.FirebaseUser
import dev.gitlive.firebase.auth.OAuthProvider
import dev.gitlive.firebase.auth.auth
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import kotlin.coroutines.resume
Expand Down Expand Up @@ -47,6 +48,7 @@ public actual fun OAuthContainer(
Box(modifier = modifier) { uiContainerScope.content() }
}

@OptIn(ExperimentalForeignApi::class)
private suspend fun onClickSignIn(
oAuthProvider: OAuthProvider,
): Result<FirebaseUser?> = suspendCoroutine { continuation ->
Expand All @@ -65,4 +67,5 @@ private suspend fun onClickSignIn(
})
}

@OptIn(ExperimentalForeignApi::class)
private fun FIRAuthCredential.asAuthCredential(): AuthCredential = object : AuthCredential(this) {}

0 comments on commit 1562d22

Please sign in to comment.