add to fyne (in androidbuild) options how to automatic add permision #3972
Unanswered
MatejMagat305
asked this question in
Q&A
Replies: 2 comments
-
I don't think we should put OS specific formatting to fyne build parameters. But a more generic "features" parameter could be helpful so if Bluetooth is turned on we set appropriate permission requests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A possibility would also be to add an OS specific section to the toml file to cover this case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on https://github.com/fyne-io/fyne-x/pull/58/files, it will need permission:
but it would be waste of source to add to fyne tool to base xml, and little bit annoing make own xml, so maybe similar: code - but maybe it would be good to create some principe how to add to xml addition permission, it would working like that all (fyne) packages which would need permision on android would have
android_permission.go
(somethink like fynemetadata) which would contain global variablepermission = {"<uses-permission android:name="android.permission.BLUETOOTH"/>", "...", ...}
Beta Was this translation helpful? Give feedback.
All reactions