Skip to content

Commit

Permalink
Add backup rules for newer apis
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalster committed Aug 20, 2023
1 parent 7be75ca commit 331e913
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Expand Down Expand Up @@ -28,10 +29,12 @@
android:name=".App"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_descriptor"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true">
android:supportsRtl="true"
tools:targetApi="s">

<activity
android:name="de.stephanlindauer.criticalmaps.Main"
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<!-- only backup our sharedprefs-->
<cloud-backup>
<include
domain="sharedpref"
path="Main.xml" />
</cloud-backup>
<device-transfer>
<include
domain="sharedpref"
path="Main.xml" />
</device-transfer>
</data-extraction-rules>

0 comments on commit 331e913

Please sign in to comment.