Hi @anangk97 the latest version of EncryptedSharedPreferences has changed one of the calls.

The easiest solution would be to take a look at the code from layercache. We do a little more work to ensure keys are stored which the article doesn't cover.

https://github.com/appmattus/layercache/blob/main/testutils/src/main/kotlin/com/appmattus/layercache/keystore/AndroidKeyStoreProvider.kt

Matt Dolan has been eating doughnuts and developing with Android since the dark days of v1.6.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store