Skip to content

Commit

Permalink
Backup disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleem92 committed Sep 18, 2024
1 parent d3e997c commit b8e13cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class FhirEngineModule {
FhirEngineProvider.init(
FhirEngineConfiguration(
enableEncryptionIfSupported = !BuildConfig.DEBUG,
databaseErrorStrategy = DatabaseErrorStrategy.UNSPECIFIED,
databaseErrorStrategy = DatabaseErrorStrategy.RECREATE_AT_OPEN,
ServerConfiguration(
baseUrl = configService.provideAuthConfiguration().fhirServerBaseUrl,
authenticator = tokenAuthenticator,
Expand Down
3 changes: 2 additions & 1 deletion android/quest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
android:theme="@style/AppTheme.NoActionBar"
android:usesCleartextTraffic="false"
android:windowSoftInputMode="adjustResize"
android:fullBackupContent="@xml/backup_rules"
android:allowBackup="false"
android:fullBackupContent="false"
android:dataExtractionRules="@xml/data_extraction_rules"
tools:ignore="UnusedAttribute,LockedOrientationActivity"
tools:replace="android:theme">
Expand Down
4 changes: 0 additions & 4 deletions android/quest/src/main/res/xml/backup_rules.xml

This file was deleted.

15 changes: 13 additions & 2 deletions android/quest/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<data-extraction-rules>
<cloud-backup>
<exclude domain="sharedpref" path="fhircore_secure_preferences.xml"/>
<exclude domain="root" path="." />
<exclude domain="file" path="." />
<exclude domain="database" path="." />
<exclude domain="sharedpref" path="." />
<exclude domain="external" path="." />
</cloud-backup>
</data-extraction-rules>
<device-transfer>
<exclude domain="root" path="." />
<exclude domain="file" path="." />
<exclude domain="database" path="." />
<exclude domain="sharedpref" path="." />
<exclude domain="external" path="." />
</device-transfer>
</data-extraction-rules>

0 comments on commit b8e13cc

Please sign in to comment.