-
Notifications
You must be signed in to change notification settings - Fork 29
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
[MOB-9235] ANR Prevention by migrating data from encrypted to shared prefs and discontinue use of encrypted shared prefs #849
[MOB-9235] ANR Prevention by migrating data from encrypted to shared prefs and discontinue use of encrypted shared prefs #849
Conversation
3412df8
to
c292958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some clarifying comments.
// Only attempt migration on Android M and above | ||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { | ||
markMigrationCompleted() | ||
migrationCompletionCallback?.invoke(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we do for android versions less than M? Is migration off of encrypted shared preference not required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we did not try to have encrypted shared preferences on our older keychain in versions less than M we dont need to migrate either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it is a good point if we should migrate from normal shared preferences in those versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added support for this now
iterableapi/src/test/java/com/iterable/iterableapi/IterableDataEncryptorTest.java
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
public void testSkipIfBelowAndroidM() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is failing now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
… shared prefs
🔹 Jira Ticket(s) if any
✏️ Description
To prevent ANRs we are migrating data from encrypted to shared prefs and discontinue use of encrypted shared prefs