Skip to content

Commit 331e913

Browse files
committed
Add backup rules for newer apis
1 parent 7be75ca commit 331e913

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:tools="http://schemas.android.com/tools"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
34

45
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
56
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
@@ -28,10 +29,12 @@
2829
android:name=".App"
2930
android:allowBackup="true"
3031
android:fullBackupContent="@xml/backup_descriptor"
32+
android:dataExtractionRules="@xml/data_extraction_rules"
3133
android:icon="@mipmap/ic_launcher"
3234
android:label="@string/app_name"
3335
android:roundIcon="@mipmap/ic_launcher_round"
34-
android:supportsRtl="true">
36+
android:supportsRtl="true"
37+
tools:targetApi="s">
3538

3639
<activity
3740
android:name="de.stephanlindauer.criticalmaps.Main"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<!-- only backup our sharedprefs-->
4+
<cloud-backup>
5+
<include
6+
domain="sharedpref"
7+
path="Main.xml" />
8+
</cloud-backup>
9+
<device-transfer>
10+
<include
11+
domain="sharedpref"
12+
path="Main.xml" />
13+
</device-transfer>
14+
</data-extraction-rules>

0 commit comments

Comments
 (0)