admin-ch / CovidCertificate-App-Android

CovidCertificate Apps for Android
Mozilla Public License 2.0
178 stars 42 forks source link

Deprecated class MasterKeys #51

Open open-driven opened 3 years ago

open-driven commented 3 years ago

Hello,

It would be a good practice to replace the deprecated class MasterKeys by MasterKey as per https://developer.android.com/reference/kotlin/androidx/security/crypto/MasterKeys (Java: https://developer.android.com/reference/androidx/security/crypto/MasterKeys)

https://github.com/admin-ch/CovidCertificate-App-Android/blob/060a40c7510c113a304ebe515e0f7833ae03623b/wallet/src/main/java/ch/admin/bag/covidcertificate/wallet/data/CertificateStorage.kt#L103

goebelUB commented 3 years ago

Thanks a lot for the suggestion. It seems that the MasterKey class was added in version 1.1.0-alpha1. We currently depend on version 1.0.0, which is the current stable release.