Skip to content

Commit

Permalink
Set backup and data extraction rules to include shared preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
svetter committed Aug 11, 2024
1 parent 2a3cddd commit cd8c131
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
11 changes: 0 additions & 11 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/src/main/res/xml/backup_rules.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older that API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>
13 changes: 4 additions & 9 deletions app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
<include domain="sharedpref" path="."/>
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
<include domain="sharedpref" path="."/>
</device-transfer>
-->
</data-extraction-rules>

0 comments on commit cd8c131

Please sign in to comment.