fix:sentry-5D to 5K: fix datastore CorruptionException
Description
CorruptionException Unable to parse preferences proto.
ADVANCED-PRIVACY-5D -> ADVANCED-PRIVACY-5K
- https://murena-sas.sentry.io/issues/6669251180/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669251211/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669252007/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669252319/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669254165/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669254724/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
- https://murena-sas.sentry.io/issues/6669269079/?project=4504355889938432&query=release%3Afoundation.e.advancedprivacy%402.10.4%2B2010004&referrer=release-issue-stream
One user, 200 Errors, one crash.
Same symptoms as known bug from Datastore : https://issuetracker.google.com/issues/346197747 Should be fixed since 1.1.5 (end april 2025)
Tests
Rare random error in production, no step to reproduce identified.
Issues
10 commandments of code review
Summary by CodeRabbit
-
Chores
- Updated the
androidx-datastore-preferences
library to version 1.1.7 for improved stability and compatibility.
- Updated the
Edited by CodeRabbitAI