Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / games / wordmaker / src / main / res / xml / data_extraction_rules.xml

data_extraction_rules.xml38 lines · 1.8 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Word Maker. Audited state:
4 * filesDir/datastore/settings.preferences_pb - the Preferences DataStore
5 declared as preferencesDataStore(name = "settings") in LevelDataStore.kt,
6 holding level progress and settings.
7 * filesDir/datastore_default.preferences_pb - the shared DataStoreUtils file,
8 holding the DailyChallengeStore("wordmaker_daily") streak and the
9 AchievementsManager unlocks.
10 No Room database, nothing written to external storage; the word
11 lists (wordgen/common_words_list.txt, wordgen/bad-words.txt) and
12 achievements.json are read-only APK assets.
13 Back everything up - it is a small preferences blob and it is the user's
14 progress.
15 SCOPE: wordmaker declares android:backupAgent=".platform.AppBackupAgent" and
16 does NOT set android:fullBackupOnly, so Android uses key/value backup and the
17 <cloud-backup> section below is NOT consulted. Cloud content is exactly
18 AppBackupAgent's datastoreNames = ["settings", "datastore_default"], matching
19 the two files listed above - the same data this file would have sent.
20 <device-transfer> IS governed here, and these rules become the cloud control
21 too if the backupAgent is ever removed.
22-->
23<data-extraction-rules>
24 <cloud-backup>
25 <include domain="root" path="." />
26 <include domain="file" path="." />
27 <include domain="database" path="." />
28 <include domain="sharedpref" path="." />
29 <include domain="external" path="." />
30 </cloud-backup>
31 <device-transfer>
32 <include domain="root" path="." />
33 <include domain="file" path="." />
34 <include domain="database" path="." />
35 <include domain="sharedpref" path="." />
36 <include domain="external" path="." />
37 </device-transfer>
38</data-extraction-rules>