utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
560 stars 38 forks source link

Support multidex and fix export for android 14 devices #625

Closed chippmann closed 1 month ago

chippmann commented 1 month ago

This implements multidex support for both usercode jar and bootstrap jar: 2024-05-09T22:02:35,106757814+02:00

This also fixes an issue regarding dynamic code loading on android 14 when built with the corresponding target sdk version: https://developer.android.com/about/versions/14/behavior-changes-14#safer-dynamic-code-loading

Android export tested on our tests project. Will test the 3D demo project tomorrow as well

chippmann commented 1 month ago

Tested on the template project as well: Screenshot_20240510_100822

On the 3D demo i still encounter some issues but I'm not yet sure if they really stem from this PR given that that demo was never smooth sailing on mobile

chippmann commented 1 month ago

Ok the error in the 3D demo is also present on desktop but there it just does not crash the application which it does no android it seems. But i guess it's safe to say that this is unrelated to this PR