Coroutine extensions for Biometric authentication
Added a suspending .startAuthentication extensions for all AuthPrompt
variants on an AuthPrompt itself as well as their respective Fragment +
FragmentActivity extensions.
Relnote: "Added suspending Coroutine extensions for biometric
authentication via BiometricAuthPrompt APIs. They are
available primarily in two forms which return the AuthResutl directly,
or throw an exception on error or failure (credential rejection):
* AuthPrompt.startAuthentication(host: AuthPromptHost)
* Fragment/Activity.startClass#BiometricAuthentication(...)"
Fixes: 143877341
Test: ./gradlew biometric:biometric-ktx:test
Change-Id: Iffc9eeab8f3d866027830acdab09d91dba86e812
diff --git a/biometric/settings.gradle b/biometric/settings.gradle
index 697db78..7a96db8 100644
--- a/biometric/settings.gradle
+++ b/biometric/settings.gradle
@@ -20,6 +20,7 @@
setupPlayground(this, "..")
selectProjectsFromAndroidX({ name ->
if (name.startsWith(":biometric")) return true
+ if (name == ":annotation:annotation-sampled") return true
return false
})