Skip to content

Commit

Permalink
Add auto back up rules for wear (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi authored Oct 16, 2021
1 parent 602b6b9 commit 9f3f552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wear/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:theme="@style/Theme.HomeAssistant">
android:theme="@style/Theme.HomeAssistant"
android:fullBackupContent="@xml/backup_rules">
<uses-library
android:name="com.google.android.wearable"
android:required="true" />
Expand Down
5 changes: 5 additions & 0 deletions wear/src/main/res/xml/backup_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="database" path="." />
<include domain="sharedpref" path="." />
</full-backup-content>

0 comments on commit 9f3f552

Please sign in to comment.