Skip to content

Commit de63fe5

Browse files
Merge pull request #16468 from nextcloud/jtr/fix-camera2-manifest-build-overrides
fix(manifest): Move camera2 feature declaration to scan-enabled flavors
2 parents 351d08c + ecadcf7 commit de63fe5

4 files changed

Lines changed: 21 additions & 7 deletions

File tree

app/src/gplay/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
1717

18+
<!-- Used for document scanning, but lib declares it as required, which it's not -->
19+
<uses-feature
20+
android:name="android.hardware.camera2"
21+
android:required="false"
22+
tools:node="replace" />
23+
1824
<application
1925
android:name=".MainApp"
2026
android:icon="@mipmap/ic_launcher"

app/src/huawei/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1010
xmlns:tools="http://schemas.android.com/tools">
1111

12+
<!-- Used for document scanning, but lib declares it as required, which it's not -->
13+
<uses-feature
14+
android:name="android.hardware.camera2"
15+
android:required="false"
16+
tools:node="replace" />
17+
1218
<application
1319
android:name=".MainApp"
1420
android:fullBackupContent="@xml/backup_config"

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
<uses-permission android:name="android.permission.READ_CONTACTS" />
1212
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
1313
<uses-permission android:name="android.permission.READ_CALENDAR" />
14-
<uses-permission android:name="android.permission.WRITE_CALENDAR" /> <!-- Used for document scanning, but lib declares it as required, which it's not -->
15-
<uses-feature
16-
android:name="android.hardware.camera2"
17-
android:required="false"
18-
tools:node="replace" />
19-
<!--
20-
WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
14+
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
15+
<!--
16+
WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
2117
API >= 23; the app needs to handle this
2218
-->
2319
<uses-permission

app/src/qa/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
99
xmlns:tools="http://schemas.android.com/tools">
1010

11+
<!-- Used for document scanning, but lib declares it as required, which it's not -->
12+
<uses-feature
13+
android:name="android.hardware.camera2"
14+
android:required="false"
15+
tools:node="replace" />
16+
1117
<application
1218
android:allowBackup="false"
1319
tools:replace="android:allowBackup" />

0 commit comments

Comments
 (0)