-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TIQR-359: Refactor data module to be used directly in eduid #82
Conversation
Multiple factors are now making it imperative for eduid to be dependent solely on the data module i.s.o. core module: * to migrating to AGP 8+ and supporting R8 full mode * replacing kapt with KSP * removing redundant databinding for eduid * migrating localisation to localicious This will help make the integration of the tiqr core into eduid easier and it will be future compatible, i.s.o. still relying on deprecated/redundant or unused dependencies.
Use correct namespace for strings due to migration to AGP 8+
*/ | ||
fun Context.biometricUsable(): Boolean { | ||
return BiometricManager.from(this) | ||
.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG) == BiometricManager.BIOMETRIC_SUCCESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reminder, this might not work on Samsung
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is deliberate, the app requires strong biometric authentication, face id is not supported AFAIK. It's fingerprint or nothing
The core module contains view UI which is no longer being used by the eduid app, so keeping the eduid app dependent on core is redundant and needlessly bloats up the app's size.
Therefore, it's best to move the parts from core to the data module so that the eduid app can function without it.
The main changes for this were moving the
ScanComponent
, some utility functions and a few string resources.On top of that, a migration to AGP 8+ was made and databinding dependency for the data module is removed (no longer required).