-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bluetooth drivers #58
base: master
Are you sure you want to change the base?
Conversation
This is a really epic piece of work, thanks @MatejMagat305. I love the idea and would be happy to help push it forward. I think the main thing we need to do is figure out how to avoid the API being Android specific.
I know this is a big ask, but it will make the result so much more useful over time. Excellent work, thanks! |
so I remove env from functions, it is really nicer ..., I created this for any Go library based on gomobile (I (we) will incorporate it with fyne-x, but other libraries could also import "fyne-x/..."), but if you say so, we can further integrate it with fyne (it would save several methods in C, for example streams). there is still lots of work, but I finally believe the base form of API is done |
Fyne-x repo will always depend upon Fyne. If you want to offer the opportunity for people to use the Bluetooth work without that you might have to consider putting the contribution outside the fyne-x repository :(. |
You should not have to use linkname - you can just use RunOnJVM directly, or alias the function name to a local name if that is required for some reason. |
arch sorry, linkname was my experiment ..., and yes when it will finale version I will import .../internal/mobileinit... yes other will be done, but please give me moment, I have school exams period and I want make this for windows too, but it will hardest part of this. But thank for advise and feel free to change if you want |
Hi, that's all cool - no hurry. |
well I do not know the best way for windows would be golang/go#52958, but it is stil proposial ..., what do you (@andydotxyz ) think should I try something with cgo with help tinygo.org/x/bluetooth or would I try for something like go-ole/go-ole#198 which seems like pure go implementation? and on IOS i have no experience, I have found something, but ... |
I guess it's up to you, but I don't think we should be depending upon tiny at the repository level. Also, if you are adding files from other repositories please do write a comment in the header or commit so it is clear - and double check the license of the source as well. |
I found https://github.com/OpenBluetoothToolbox/SimpleBLE i maybe should reopen, but i do not know ... |
I do not know whether it will work as multiplatform, but it is progress ..., but if fyne can embede |
Our packaging does not support adding .jar or .dex file into the app at this time
No, Fyne package command cannot embed other libraries at this time |
this is not final version, but skeleton (base, it contains bugs and unrefactor things), I would like for some advise and notice
Goal is bring bluetooth on GO (Fyne) to android