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

Fix encrypted storage bug #75

Closed
wants to merge 1 commit into from

Conversation

bogdan-niculescu-sch
Copy link
Collaborator

@bogdan-niculescu-sch bogdan-niculescu-sch commented Jun 5, 2023

Description

This PR is as alternative to removing EncryptedSharedPreferences.

  • cleaning EncryptedSharedPreferences if they are corrupted
  • update security-crypto fixing race condition (more info found here)
  • bump up compile SDK

- update security-crypto fixing race condition
@@ -28,27 +30,10 @@ internal interface SessionStorage {

internal class EncryptedSharedPrefsStorage(context: Context) : SessionStorage {
private val gson = GsonBuilder().setDateFormat("MM dd, yyyy HH:mm:ss").create()
private val appContext: Context = context.applicationContext
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a fan of having to keep reference to app context here, but alternative was putting context as parameter in get, and that would cause a snowball of changes that wouldn't really make sense

@bogdan-niculescu-sch
Copy link
Collaborator Author

Looking into reasons behind dropping this PR, will close changes and approve migration away from encrypted storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant