bugfix android activity#24418
Conversation
* update android-activity to 0.6.1 from crate bevy_android Issue: NO-TICKET (not found)
|
I have tested this also with the PR #23491. I had a lot of problems to get it working. Now it works on the main, this PR and in my demo for VR/XR. I think this is very urgent for consistency. Reviews are welcome! |
|
Thanks for the review and the labels. Is there any need to restart the checks? One was failing due to a timeout. |
The maintainers can re-trigger them if need be before merge I believe |
ChristopherBiscardi
left a comment
There was a problem hiding this comment.
bevy_android doesn't contain any logic that requires this dependency to be bumped, and the issue you ran into in the associated discord conversation was related to a partially stale lockfile, as far as I can tell.
winit also uses 0.6.0: https://github.com/rust-windowing/winit/blob/c4afadbfabf7b1e7989b40b493db1a4c7bd8ff4e/Cargo.toml#L51
I asked in the Discord and it looks like a dedicated version is most practical.
Please link discord conversations if you reference them. There isn't much substance in this one supporting this change: https://discord.com/channels/691052431525675048/757316314845937785/1507716259985231923
We could arbitrarily bump this dependency, but I don't see a strong reason to
The latest mobile example needs 0.6.1 (I should have bumped android-activity as well in #23551), otherwise the mobile example may not run. Is this a reason? I think Bevy should consider compatibility with the GameActivity of the mobile example. winit doesn't contain an Android example so naturally it doesn't need to worry about the android-activity version. |
|
Even actual android example from the main needs 0.6.1 to work. So it should be >= 0.6.1 but = 0.6 is too weak. |
Just running
I do however still think that since the current example needs |
That PR description is incorrect:
If we've written the Android example to require 0.6.1 (and not 0.6.0) then the example can specify that dependency to ensure the requirements are met. This PR's dependency update is for the bevy_android crate, not the example. I don't think it makes sense to bump this lower bound in the crate unless we know there's no possible way an application could work with 0.6.0 It is also notable that |
|
@ChristopherBiscardi Note that android-activity 0.6.0 requires GameActivity 2.0, android-activity 0.6.1 requires GameActivity 4.0. They are incompatible. |
|
See https://discord.com/channels/691052431525675048/757316314845937785/1487399596245123153 for motivation of #23551 |
Issue: NO-TICKET (not found)
Objective
The android-activity 0.6.0 is no longer compatible. This makes
android-activity = "0.6"to less restrictive.Solution
I asked in the Discord and it looks like a dedicated version is most practical.
android-activity = "0.6.1"At least it is now compatible with gamesActivity from here: libs.versions.toml L8.Testing
Created the example on my own system. It is now working on emulator and real devices. I was a long time struggeling with this missing constraint, because I had still the old 0.6.0 on my system.