Skip to content

Commit

Permalink
Trying to see if removing database from backup list helps with db dis…
Browse files Browse the repository at this point in the history
…appearing
  • Loading branch information
joshfriend committed Jan 5, 2022
1 parent f5f0984 commit a5cd4dc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bunnies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ android {
applicationId "com.fueledbycaffeine.bunnypedia"
minSdkVersion 23
targetSdkVersion 31
versionCode 32
versionName "0.25"
versionCode 33
versionName "0.26"

multiDexEnabled true
}
Expand Down
4 changes: 3 additions & 1 deletion bunnies/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
<application
android:name=".injection.App"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules"
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:theme="@style/AppTheme.NoActionBar"
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute"
>

<activity
Expand Down
4 changes: 4 additions & 0 deletions bunnies/src/main/res/xml/backup_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
</full-backup-content>
14 changes: 14 additions & 0 deletions bunnies/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"?>
<!--
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>
<include domain="sharedpref" path="."/>
</cloud-backup>
<device-transfer>
<include domain="sharedpref" path="."/>
</device-transfer>
</data-extraction-rules>

0 comments on commit a5cd4dc

Please sign in to comment.