mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app/permission/camera,cmd/gogio: add support for camera permission
Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
committed by
Elias Naur
parent
956bb10a0f
commit
2f67feafc0
@@ -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
|
||||||
@@ -9,6 +9,9 @@ var AndroidPermissions = map[string][]string{
|
|||||||
"android.permission.BLUETOOTH_ADMIN",
|
"android.permission.BLUETOOTH_ADMIN",
|
||||||
"android.permission.ACCESS_FINE_LOCATION",
|
"android.permission.ACCESS_FINE_LOCATION",
|
||||||
},
|
},
|
||||||
|
"camera": {
|
||||||
|
"android.permission.CAMERA",
|
||||||
|
},
|
||||||
"storage": {
|
"storage": {
|
||||||
"android.permission.READ_EXTERNAL_STORAGE",
|
"android.permission.READ_EXTERNAL_STORAGE",
|
||||||
"android.permission.WRITE_EXTERNAL_STORAGE",
|
"android.permission.WRITE_EXTERNAL_STORAGE",
|
||||||
@@ -21,4 +24,7 @@ var AndroidFeatures = map[string][]string{
|
|||||||
`name="android.hardware.bluetooth"`,
|
`name="android.hardware.bluetooth"`,
|
||||||
`name="android.hardware.bluetooth_le"`,
|
`name="android.hardware.bluetooth_le"`,
|
||||||
},
|
},
|
||||||
|
"camera": {
|
||||||
|
`name="android.hardware.camera"`,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user