utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
614 stars 44 forks source link

Fix gdj update in editor with custom android gradle project in godot #588

Closed chippmann closed 6 months ago

chippmann commented 6 months ago

This fixes a reloading bug when the user creates a custom android gradle project inside the godot editor (see #581). This thus is a follow up bugfix of #581

Whenever a build with such a custom godot android project is executed, godot copies all assets to the android project located at res://android which includes our gdj files.

When our gdj tasks run, they check the project for any existing gdj files to keep track of those the user moves manually to a different location and delete stale ones. This breaks if the user has such a custom godot android gradle project as there all the gdj files are containes as well.

As a fix, we simply exclude that directory from our search (like we already do for the build directory)