app/permission/camera,cmd/gogio: add support for camera permission

Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
Sebastien Binet
2020-09-12 14:48:39 +00:00
committed by Elias Naur
parent 956bb10a0f
commit 2f67feafc0
2 changed files with 22 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: Unlicense OR MIT
/*
Package camera implements permissions to access camera ardware.
Android
The following entries will be added to AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
CAMERA is a "dangerous" permission. See documentation for package
gioui.org/app/permission for more information.
*/
package camera
+6
View File
@@ -9,6 +9,9 @@ var AndroidPermissions = map[string][]string{
"android.permission.BLUETOOTH_ADMIN",
"android.permission.ACCESS_FINE_LOCATION",
},
"camera": {
"android.permission.CAMERA",
},
"storage": {
"android.permission.READ_EXTERNAL_STORAGE",
"android.permission.WRITE_EXTERNAL_STORAGE",
@@ -21,4 +24,7 @@ var AndroidFeatures = map[string][]string{
`name="android.hardware.bluetooth"`,
`name="android.hardware.bluetooth_le"`,
},
"camera": {
`name="android.hardware.camera"`,
},
}