-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
[WIP] Android support #1313
[WIP] Android support #1313
Conversation
According to current winit's event handling implementation details there is no way directly hook Android's pause/resume events which can be used to create/destroy surface. |
To get it work we need solve at least two issues.
For now I see the next possible solutions:
|
Here we go, some running example based on your changes: |
Those were removed because @goddessfreya and me came to the conclusion that glutin didn't need to know about those after the improvements to glutin 0.23. I'd still like to see those happen as it makes integrating with for example Also I don't have the time to work on this stuff at the moment, as due to instability of flutter-rs/winit on desktop platforms and lack of support for mobile platforms we decided to go with "regular" flutter and are using ffi to integrate our rust code into the ui. |
This is temporary solution as starting point
181f651
to
e12092f
Compare
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
cargo fmt
has been run on this branchcargo doc
builds successfullyCHANGELOG.md
if knowledge of this change could be valuable to usersLinked issues: #1307