Skip to content

Commit 9d24a0a

Browse files
authored
Merge pull request #26 from superus8r/chore/DisableCloudBackup
chore: disable cloud backup
2 parents aab52b3 + 7a7666f commit 9d24a0a

File tree

3 files changed

+51
-14
lines changed

3 files changed

+51
-14
lines changed

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,7 @@ captures/
3737

3838
# IntelliJ
3939
*.iml
40-
.idea/workspace.xml
41-
.idea/tasks.xml
42-
.idea/gradle.xml
43-
.idea/assetWizardSettings.xml
44-
.idea/dictionaries
45-
.idea/libraries
46-
# Android Studio 3 in .gitignore file.
47-
.idea/caches
48-
.idea/modules.xml
49-
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
50-
.idea/navEditor.xml
40+
.idea/*
5141

5242
# Keystore files
5343
# Uncomment the following lines if you do not want to check your keystore files in.

app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:tools="http://schemas.android.com/tools"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
34

45
<uses-feature android:name="android.hardware.usb.host" />
56
<uses-permission android:name="android.permission.INTERNET" />
67
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
78

89
<application
910
android:name=".MainApplication"
10-
android:allowBackup="true"
11+
android:allowBackup="false"
12+
android:fullBackupContent="false"
1113
android:usesCleartextTraffic="false"
1214
android:icon="@mipmap/ic_launcher"
1315
android:label="@string/app_name"
1416
android:roundIcon="@mipmap/ic_launcher_round"
1517
android:supportsRtl="true"
16-
android:theme="@style/AppTheme">
18+
android:theme="@style/AppTheme"
19+
android:dataExtractionRules="@xml/data_extraction_rules"
20+
tools:targetApi="s">
1721

1822
<!-- sentry: replace the empty value with @string/sentry_dsn -->
1923
<meta-data android:name="io.sentry.dsn" android:value="" />
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
BSD 3-Clause License
4+
5+
Copyright (c) 2020, Ali Kabiri
6+
All rights reserved.
7+
8+
Redistribution and use in source and binary forms, with or without
9+
modification, are permitted provided that the following conditions are met:
10+
11+
1. Redistributions of source code must retain the above copyright notice, this
12+
list of conditions and the following disclaimer.
13+
14+
2. Redistributions in binary form must reproduce the above copyright notice,
15+
this list of conditions and the following disclaimer in the documentation
16+
and/or other materials provided with the distribution.
17+
18+
3. Neither the name of the copyright holder nor the names of its
19+
contributors may be used to endorse or promote products derived from
20+
this software without specific prior written permission.
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32+
-->
33+
<!--
34+
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
35+
for details about data extraction rules file
36+
-->
37+
<data-extraction-rules>
38+
<cloud-backup>
39+
<exclude domain="file" path="."/>
40+
<exclude domain="external" path="."/>
41+
<exclude domain="root" path="."/>
42+
</cloud-backup>
43+
</data-extraction-rules>

0 commit comments

Comments
 (0)