Skip to content
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

Merged
merged 9 commits into from
Jan 5, 2024

Conversation

IuliaSTANA
Copy link
Contributor

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).

Iulia STANA added 8 commits December 15, 2023 16:53
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
Copy link
Contributor

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

Copy link
Contributor Author

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

@IuliaSTANA IuliaSTANA merged commit 8f96f7f into develop Jan 5, 2024
1 check passed
@IuliaSTANA IuliaSTANA deleted the bugfix/tiqr-359_prepare_data_module branch January 5, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants