Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
- Localization added.
Browse files Browse the repository at this point in the history
- Improved logging.
  • Loading branch information
stevdza-san committed Aug 6, 2024
1 parent 4e68f0b commit 7328f1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion onetap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ publishing {
release(MavenPublication) {
groupId = 'com.github.stevdza-san'
artifactId = 'OneTapCompose'
version = '1.0.13'
version = '1.0.14'

afterEvaluate {
from components.release
Expand Down
14 changes: 7 additions & 7 deletions onetap/src/main/java/com/stevdzasan/onetap/OneTapCompose.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fun OneTapSignInWithGoogle(
)
} else {
Log.e(TAG, "GetCredentialException: $e")
onDialogDismissed("${e.message}")
onDialogDismissed("$e")
state.close()
}
} else {
Expand All @@ -117,7 +117,7 @@ fun OneTapSignInWithGoogle(
} else if (e.message!!.contains("Caller has been temporarily blocked")) {
"Sign in has been Temporarily Blocked due to too many Closed Prompts."
} else {
e.message.toString()
e.toString()
}
} else "Unknown Error."
Log.e(TAG, "Message null: $errorMessage")
Expand All @@ -138,12 +138,12 @@ fun OneTapSignInWithGoogle(
)
} else {
Log.e(TAG, "handleSignIn() Error: $e")
onDialogDismissed("${e.message}")
onDialogDismissed("$e")
state.close()
}
} else {
Log.e(TAG, "Message null: $e")
onDialogDismissed("${e.message}")
onDialogDismissed("$e")
state.close()
}
}
Expand Down Expand Up @@ -225,20 +225,20 @@ private suspend fun handleCredentialsNotAvailable(
} else if (e.message!!.contains("Caller has been temporarily blocked")) {
"Sign in has been Temporarily Blocked due to too many Closed Prompts."
} else {
e.message.toString()
e.toString()
}
} else "Unknown Error."
Log.e(TAG, "GetCredentialException Error $errorMessage")
onDialogDismissed(errorMessage)
state.close()
} catch (e: Exception) {
Log.e(TAG, "HandleCredentialNotAvailable Error: $e")
onDialogDismissed("${e.message}")
onDialogDismissed("$e")
state.close()
}
} catch (e: Exception) {
Log.e(TAG, "HandleCredentialNotAvailable Error 2: $e")
onDialogDismissed("${e.message}")
onDialogDismissed("$e")
state.close()
}
}
Expand Down

0 comments on commit 7328f1e

Please sign in to comment.