mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
af353822fa
Search for imports of the form gioui.org/app/permission/* and add required permissions to AndroidManifest.xml. Signed-off-by: Greg Pomerantz <gmp.gio@wow.st>
24 lines
602 B
Go
24 lines
602 B
Go
package main
|
|
|
|
var AndroidPermissions = map[string][]string{
|
|
"network": {
|
|
"android.permission.INTERNET",
|
|
},
|
|
"bluetooth": {
|
|
"android.permission.BLUETOOTH",
|
|
"android.permission.BLUETOOTH_ADMIN",
|
|
"android.permission.ACCESS_FINE_LOCATION",
|
|
},
|
|
"bluetooth_le": {
|
|
"android.permission.BLUETOOTH",
|
|
"android.permission.BLUETOOTH_ADMIN",
|
|
"android.permission.ACCESS_FINE_LOCATION",
|
|
},
|
|
}
|
|
|
|
var AndroidFeatures = map[string][]string{
|
|
"default": {`glEsVersion="0x00030000"`},
|
|
"bluetooth": {`name="android.hardware.bluetooth"`},
|
|
"bluetooth_le": {`name="android.hardware.bluetooth_le"`},
|
|
}
|