mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-07-04 13:03:12 +02:00
OS-level safety net so a reinstall can restore data through Android's backup/restore flow. Sets allowBackup=true and points fullBackupContent (pre-31) and dataExtractionRules (API 31+) at empty rule sets, which back up the default locations: the app files dir (local CRDT DB todo.db), databases, and shared_prefs (GitHub sync settings + token). Backing up shared_prefs is intentional — it restores the sync config on reinstall so recovery needs no re-auth (zero-touch). The token is a narrowly-scoped contents-only PAT for the single private sync repo, kept in the user's own Google backup. Caveats: Auto Backup is scheduled (~daily, Wi-Fi+charging) so very recent changes may not be captured, and restore fires through the Play Store / device-setup flow, not an `adb install -r`. Auto-sync remains the primary durability path; this is the secondary net. Verified the attributes merge into the app manifest via a debug build. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| gradle/wrapper | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| settings.gradle.kts | ||