You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
we use EncryptedSharedPreferences in our database module to encrypt the db.
Now I have seen some ANR crashes because the initializing of the AndroidKeystoreAesGcm take longer on some devices.
The problem I see, many other modules need the database which depend on the generation of the keystore
Is lazyModule the right way to get around this problem ?
My plane
create module encryptKey with the AndroidKeystoreAesGcm in a lazyModule with dispatcher = Dispatchers.IO
and let depend all other koin modules on the layzModule with includes(encryptKey)
Would this fix my ANR problem ?
Or did I still get an ANR error, because the initializing of all other modules wait in my Android Application onCreate function until the encyptKey module is initialize ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
we use EncryptedSharedPreferences in our database module to encrypt the db.
Now I have seen some ANR crashes because the initializing of the AndroidKeystoreAesGcm take longer on some devices.
The problem I see, many other modules need the database which depend on the generation of the keystore
Is lazyModule the right way to get around this problem ?
My plane
create module encryptKey with the AndroidKeystoreAesGcm in a lazyModule with dispatcher = Dispatchers.IO
and let depend all other koin modules on the layzModule with includes(encryptKey)
Would this fix my ANR problem ?
Or did I still get an ANR error, because the initializing of all other modules wait in my Android Application onCreate function until the encyptKey module is initialize ?
Or is there a other way to fix this ANR error
Thanks
Beta Was this translation helpful? Give feedback.
All reactions