Open fr-an-k opened 7 months ago
Somehow it works now, on multiple android devices (still winit 0.29.10); I guess I just did something wrong (I did clear the caches and whatnot).
The issue occurs when you update the android dependencies in app/build.gradle (as provided by agdk apps in rust-android-examples repository) to a more recent version. androidx.games:games-activity:1.1.0 -> 1.2.2 androidx.appcompat:appcompat:1.4.1 -> 1.6.1
The android-activity code (signatures) have to be changed at some point to support new/fixed functionality from these linked java classes as support for the older version wanes.
i found this, androidx.games:games-activity package version in gradle must match version in android-activity/game-activity-csrc/game-activity/GameActivity.h
If I update everything to the latest versions in agdk-winit-wgpu, fix the compiler errors and run it on Android 13, I get:
So the last parameter of initializeNativeCode is a byte[] now, instead of android.content.res.Configuration.
I tried with various combinations of versions, but it looks like the GameActivity method signatures have changed (g_methods) and need to be updated at some point in order to keep up, possibly other changes as well. I'm just opening a case for it.
The example works with winit 0.28 and wgpu 0.18 (after fixing some compiler errors) so that can be used for now.