-
Notifications
You must be signed in to change notification settings - Fork 935
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
Backup service #3952
Backup service #3952
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
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.
We are backing up the whole statistics shared prefs file and should only backup the atb value.
statistics/src/main/java/com/duckduckgo/app/statistics/DuckDuckGoBackupAgent.kt
Outdated
Show resolved
Hide resolved
deb4ce3
to
e1dfc47
Compare
...compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt
Show resolved
Hide resolved
...compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt
Show resolved
Hide resolved
statistics/src/main/java/com/duckduckgo/app/statistics/DuckDuckGoBackupAgent.kt
Outdated
Show resolved
Hide resolved
statistics/src/main/java/com/duckduckgo/app/statistics/DuckDuckGoBackupAgent.kt
Outdated
Show resolved
Hide resolved
statistics/src/main/java/com/duckduckgo/app/statistics/DuckDuckGoBackupAgent.kt
Outdated
Show resolved
Hide resolved
ba32243
to
6f3eb8a
Compare
…tisticsSharedPreferences
6f3eb8a
to
c221498
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.
LGTM
A few nits and the namespace of the backup impl should be different.
Task/Issue URL: https://app.asana.com/0/488551667048375/1206059122944073/f ### Description Implementation for adding variant `ru` for returning users ### Steps to test this PR - Add a log in getVariantKey() implementation so you can check it's value _New user install_ - Install from this branch - Open logcat - [x] Check defaultVariant is allocated (_emptyString_) _Returning user install_ - Follow previous steps - Perform a backup: Run `./test_cloud_backup.sh com.duckduckgo.mobile.android.debug` in the terminal - Open the app - [x] Check `ru` variant is allocated to the user ### No UI changes
This reverts commit cd9a695.
Task/Issue URL: https://app.asana.com/0/0/1206040339100181/f
Description
Implemented backup key/value service
Steps to test this PR
ATB mapped to BackUp prefs
ReinstallAtbListener
to check preference mappingBackup service
./test_cloud_backup.sh com.duckduckgo.mobile.android.debug
in the terminalPixel sent when Backup service enabled
./test_cloud_backup.sh com.duckduckgo.mobile.android.debug
in the terminalm_backup_service_enabled
pixel is sentNo UI changes