Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / nonogram / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml35 lines · 1.8 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Nonogram. Audited state: filesDir/datastore/settings.preferences_pb, holding the |
| 4 | current level, the filled and crossed cells on it, the daily board with the day |
| 5 | it belongs to, and the show-mistakes preference; plus |
| 6 | filesDir/datastore_default.preferences_pb, the shared DataStoreUtils file |
| 7 | holding the DailyChallengeStore("nonogram_daily") streak, the daily reminder |
| 8 | settings and the AchievementsManager unlocks. No SharedPreferences, no Room |
| 9 | database, nothing written to external storage - achievements.json is a |
| 10 | read-only APK asset and every puzzle is generated on device from its level |
| 11 | number or the date. Back everything up; it is a few KB of pure user progress. |
| 12 | SCOPE: nonogram declares android:backupAgent=".platform.AppBackupAgent" and |
| 13 | does NOT set android:fullBackupOnly, so Android uses key/value backup and the |
| 14 | <cloud-backup> section below is NOT consulted. Cloud content is exactly |
| 15 | AppBackupAgent's datastoreNames = ["settings", "datastore_default"], which is |
| 16 | the same data this file would have sent. <device-transfer> IS governed here, |
| 17 | and these rules become the cloud control too if the backupAgent is ever |
| 18 | removed. |
| 19 | --> |
| 20 | <data-extraction-rules> |
| 21 | <cloud-backup> |
| 22 | <include domain="root" path="." /> |
| 23 | <include domain="file" path="." /> |
| 24 | <include domain="database" path="." /> |
| 25 | <include domain="sharedpref" path="." /> |
| 26 | <include domain="external" path="." /> |
| 27 | </cloud-backup> |
| 28 | <device-transfer> |
| 29 | <include domain="root" path="." /> |
| 30 | <include domain="file" path="." /> |
| 31 | <include domain="database" path="." /> |
| 32 | <include domain="sharedpref" path="." /> |
| 33 | <include domain="external" path="." /> |
| 34 | </device-transfer> |
| 35 | </data-extraction-rules> |