From 79edea0c9d5e89f143a6581ab3594ba64e6c35dd Mon Sep 17 00:00:00 2001 From: AdamGrzybkowski Date: Fri, 11 Oct 2024 09:55:53 +0200 Subject: [PATCH 1/2] Remove backup rules from quickeditor manifest --- docs/get-started/get-started.md | 2 +- gravatar-quickeditor/src/main/AndroidManifest.xml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/get-started/get-started.md b/docs/get-started/get-started.md index 1d81ccfb..4891c243 100644 --- a/docs/get-started/get-started.md +++ b/docs/get-started/get-started.md @@ -314,7 +314,7 @@ GravatarQuickEditor.logout(Email("{USER_EMAIL}")) #### Exclude Data Store files from Android backup (optional, but recommended) Data Store files are subject to Android backups. Encrypted files from the backup won't work when restored on a different device so we have to exclude those files. -If your app has backup rules configured, those that are provided in the SDK won't be used so you have to copy them to your files. +It is encouraged to add the below rules to your own files.
Instructions diff --git a/gravatar-quickeditor/src/main/AndroidManifest.xml b/gravatar-quickeditor/src/main/AndroidManifest.xml index aae9f8c9..04019c1e 100644 --- a/gravatar-quickeditor/src/main/AndroidManifest.xml +++ b/gravatar-quickeditor/src/main/AndroidManifest.xml @@ -4,10 +4,7 @@ - + + android:exported="false" + android:grantUriPermissions="true"> From 9c5eeb281aa574ae7ec2edeb3acffefecb868512 Mon Sep 17 00:00:00 2001 From: AdamGrzybkowski Date: Fri, 11 Oct 2024 12:11:34 +0200 Subject: [PATCH 2/2] Update get-started.md --- docs/get-started/get-started.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/get-started/get-started.md b/docs/get-started/get-started.md index 4891c243..3145074c 100644 --- a/docs/get-started/get-started.md +++ b/docs/get-started/get-started.md @@ -314,12 +314,12 @@ GravatarQuickEditor.logout(Email("{USER_EMAIL}")) #### Exclude Data Store files from Android backup (optional, but recommended) Data Store files are subject to Android backups. Encrypted files from the backup won't work when restored on a different device so we have to exclude those files. -It is encouraged to add the below rules to your own files. +It is encouraged to create those files or copy paste below rules to your own respective files.
Instructions -In `AndroidManifest.xml` add those lines: +In `AndroidManifest.xml` add the below lines. If you already have them, you can skip this step. ```xml ``` -Content of the [@xml/data_extraction_rules](https://github.com/Automattic/Gravatar-SDK-Android/blob/trunk/gravatar-quickeditor/src/main/res/xml/data_extraction_rules.xml) +Create [@xml/data_extraction_rules](https://github.com/Automattic/Gravatar-SDK-Android/blob/trunk/gravatar-quickeditor/src/main/res/xml/data_extraction_rules.xml) or modify your file with the below rules. ```xml @@ -353,7 +353,7 @@ Content of the [@xml/data_extraction_rules](https://github.com/Automattic/Gravat ``` -Content of the [@xml/backup_rules](https://github.com/Automattic/Gravatar-SDK-Android/blob/trunk/gravatar-quickeditor/src/main/res/xml/backup_rules.xml) +Create [@xml/backup_rules](https://github.com/Automattic/Gravatar-SDK-Android/blob/trunk/gravatar-quickeditor/src/main/res/xml/backup_rules.xml) or modify your file with the below rules. ```xml