Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
namespace = pkg
defaultConfig {
applicationId = pkg
minSdk = 21
minSdk = 23
targetSdk = 36
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
versionName = providers.gradleProperty("wireguardVersionName").get()
Expand Down
4 changes: 3 additions & 1 deletion ui/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

<application
android:name=".Application"
android:allowBackup="false"
android:allowBackup="true"
android:fullBackupContent="@xml/backup"
android:dataExtractionRules="@xml/dataExtractionRules"
android:banner="@mipmap/banner"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
Expand Down
5 changes: 5 additions & 0 deletions ui/src/main/res/xml/backup.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="sharedpref" path="." requireFlags="clientSideEncryption" />
<include domain="file" path="." requireFlags="clientSideEncryption" />
</full-backup-content>
7 changes: 7 additions & 0 deletions ui/src/main/res/xml/dataExtractionRules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup disableIfNoEncryptionCapabilities="true">
<include domain="file" path="."/>
<include domain="sharedpref" path="."/>
</cloud-backup>
</data-extraction-rules>