Skip to content

Commit ba9bf54

Browse files
add adapty_data_extraction_rules.xml (#40)
1 parent 0ae85f2 commit ba9bf54

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

adapty/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
66

7-
<application android:fullBackupContent="@xml/adapty_backup_rules" />
7+
<application
8+
android:fullBackupContent="@xml/adapty_backup_rules"
9+
android:dataExtractionRules="@xml/adapty_data_extraction_rules" />
810

911
</manifest>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<cloud-backup>
4+
<exclude domain="sharedpref" path="AdaptySDKPrefs.xml"/>
5+
</cloud-backup>
6+
7+
<device-transfer>
8+
<exclude domain="sharedpref" path="AdaptySDKPrefs.xml"/>
9+
</device-transfer>
10+
</data-extraction-rules>
11+

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
android:name=".App"
77
android:allowBackup="true"
88
android:fullBackupContent="@xml/sample_backup_rules"
9+
android:dataExtractionRules="@xml/sample_data_extraction_rules"
910
android:icon="@mipmap/ic_launcher"
1011
android:label="@string/app_name"
1112
android:roundIcon="@mipmap/ic_launcher_round"
1213
android:supportsRtl="true"
1314
android:theme="@style/AppTheme"
14-
tools:replace="android:fullBackupContent">
15+
tools:replace="android:fullBackupContent,android:dataExtractionRules">
1516
<activity
1617
android:name=".MainActivity"
1718
android:exported="true"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<cloud-backup>
4+
<exclude domain="sharedpref" path="appsflyer-data"/>
5+
<exclude domain="sharedpref" path="AdaptySDKPrefs.xml"/>
6+
</cloud-backup>
7+
8+
<device-transfer>
9+
<exclude domain="sharedpref" path="appsflyer-data"/>
10+
<exclude domain="sharedpref" path="AdaptySDKPrefs.xml"/>
11+
</device-transfer>
12+
</data-extraction-rules>
13+

0 commit comments

Comments
 (0)