Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
- Fix NoGoogleAccountException
  • Loading branch information
taetae98coding committed Sep 23, 2024
1 parent e3782a6 commit 729c48d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ public object Build {
public const val ANDROID_COMPILE_SDK: Int = 35
public const val ANDROID_TARGET_SDK: Int = 35

public const val LIBRARY_VERSION: String = "1.0.0"
public const val LIBRARY_VERSION: String = "1.0.1"
}
1 change: 0 additions & 1 deletion google/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import com.vanniktech.maven.publish.SonatypeHost

plugins {
alias(libs.plugins.kotlin.multiplatform)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package io.github.taetae98coding.oauth.google

import android.content.Context
import androidx.credentials.CreateCredentialRequest
import androidx.credentials.CredentialManager
import androidx.credentials.GetCredentialRequest
import androidx.credentials.exceptions.GetCredentialCancellationException
import androidx.credentials.exceptions.GetCredentialProviderConfigurationException
import androidx.credentials.exceptions.NoCredentialException
import com.google.android.libraries.identity.googleid.GetGoogleIdOption
import com.google.android.libraries.identity.googleid.GoogleIdTokenCredential
import io.github.taetae98coding.oauth.google.exception.NoGoogleAccountException
Expand All @@ -30,7 +32,7 @@ public actual class GoogleCredentialManager(
execute(request)
} catch (exception: GetCredentialCancellationException) {
null
} catch (exception: GetCredentialProviderConfigurationException) {
} catch (exception: NoCredentialException) {
throw NoGoogleAccountException(cause = exception)
}
}
Expand Down

0 comments on commit 729c48d

Please sign in to comment.