Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / sudoku / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml34 lines · 1.7 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Sudoku. Audited state: the "sudoku_stats" SharedPreferences file |
| 4 | (AppBackupAgent.prefNames) holding per size-and-difficulty played/won counts, |
| 5 | win streaks and best times, plus filesDir/datastore_default.preferences_pb, |
| 6 | the shared DataStoreUtils file holding the AchievementsManager unlocks. No |
| 7 | Room database, no in-progress board (the puzzle lives only in the ViewModel), |
| 8 | nothing written to external storage - achievements.json is a read-only APK |
| 9 | asset and every puzzle is generated on device. Back everything up; it is a |
| 10 | few KB of pure user progress. |
| 11 | SCOPE: sudoku declares android:backupAgent=".platform.AppBackupAgent" and does |
| 12 | NOT set android:fullBackupOnly, so Android uses key/value backup and the |
| 13 | <cloud-backup> section below is NOT consulted. Cloud content is exactly |
| 14 | AppBackupAgent's prefNames = ["sudoku_stats"] plus datastoreNames = |
| 15 | ["datastore_default"], which is the same data this file would have sent. |
| 16 | <device-transfer> IS governed here, and these rules become the cloud control |
| 17 | too if the backupAgent is ever removed. |
| 18 | --> |
| 19 | <data-extraction-rules> |
| 20 | <cloud-backup> |
| 21 | <include domain="root" path="." /> |
| 22 | <include domain="file" path="." /> |
| 23 | <include domain="database" path="." /> |
| 24 | <include domain="sharedpref" path="." /> |
| 25 | <include domain="external" path="." /> |
| 26 | </cloud-backup> |
| 27 | <device-transfer> |
| 28 | <include domain="root" path="." /> |
| 29 | <include domain="file" path="." /> |
| 30 | <include domain="database" path="." /> |
| 31 | <include domain="sharedpref" path="." /> |
| 32 | <include domain="external" path="." /> |
| 33 | </device-transfer> |
| 34 | </data-extraction-rules> |