Skip to content
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

Usage with gio on Darwin #17

Open
gedw99 opened this issue Jul 30, 2021 · 8 comments
Open

Usage with gio on Darwin #17

gedw99 opened this issue Jul 30, 2021 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gedw99
Copy link

gedw99 commented Jul 30, 2021

I am wanting to use this with a gio app and was hoping that Darwin support would be possible ?

it seems that the lib that needs to be invoked at runtime is already there and what remains is for a version of the golang code with the “Darwin” build tags.

@inkeliz i presume the only thing holding this back from Darwin support is that your not on a Nac and so can’t develop for it ?

@inkeliz
Copy link
Owner

inkeliz commented Jul 31, 2021

Honestly, I have no plans to introduce Linux/macOS support. First, as you said, I don't have any macOS. Second, the gowebview was designed to be used in one specific commercial app, which less than 1% of our users uses Linux, macOS, and ChromeOS combined.

I want to add the iOS support at some point, maybe until the end of this year, when I get some macOS to play. Currently, my priority is Windows and Android, which covers 70% of our target audience.


I think you can use the webview/webview on macOS, and it should work with Gio (but I don't know). If you want both (say Android and macOS) you can create your own interface, then use something like webview_android.go and webview_darwin.go, and each one uses a different webview.

@inkeliz inkeliz added enhancement New feature or request help wanted Extra attention is needed labels Jul 31, 2021
@inkeliz
Copy link
Owner

inkeliz commented Nov 5, 2021

I'm working on iOS, maybe I add some support for MacOS in the future (or if it's easy to port to MacOS), see https://app.slack.com/client/T029RQSE6/CM87SNCGM/thread/CM87SNCGM-1636050458.077500.

@gedw99
Copy link
Author

gedw99 commented Nov 7, 2021

thanks for the message. Really well done !!!

I am working on adding Printing for all gio compile targets. Your work on getting webview working will be a good example for me.

@gedw99
Copy link
Author

gedw99 commented Nov 8, 2021

@inkeliz

are you on intel or apple silicone mac now?

i can cross test on both as i am getting Mac M1 soon.

@inkeliz
Copy link
Owner

inkeliz commented Nov 8, 2021

I'm using Apple M1, I don't have any Intel CPU (either MacOS or not 😂).

@gedw99
Copy link
Author

gedw99 commented Nov 9, 2021

I have an Intel based mac, so can help test if needed.

@inkeliz
Copy link
Owner

inkeliz commented Jul 31, 2022

I made another package for iOS, macOS, Android, Windows, WebAssembly: https://github.com/inkeliz/giowebview. In the future, gowebview will be just an wrapper for giowebview.

Currently, GioWebview package may not work. It requires some changes on Gio (https://github.com/gioui/gio/pulls), related to focus and FrameLayout. I'm not sure what is the minimum macOS version required and that is something that I'll take a look in the future.

@gedw99
Copy link
Author

gedw99 commented Sep 5, 2022

ok thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants