0.9.0-4.2.2
New minor 0.9.0-4.2.2 release for Godot Kotlin.
- Support for Kotlin and Java source files has been added. You can now use .gdj, .kt and .java files as scripts you can attach to nodes and objects. Check the documentation to understand the differences between using registration files and source files. Java and Kotlin source code is not kept when exporting your game, so you won't risk leaking it.
- Attaching and creating scripts through the UI dialog is now working properly.
- VariantArray should now be exported with the correct generic type in Godot.
- Build errors related to scripts are more detailed.
- Add some missing methods in core godot types.
- Using reflection in your project has been fixed.
- An alert dialog will appear, when possible, if Godot crashes for a reason related to the module.
- A new minimal project template has been created to show new users what a basic setup for a Godot Kotlin project looks like: https://github.com/utopia-rise/godot-kotlin-project-template
Don't forget to change your build.gradle configuration with the following line:
plugins {
id("com.utopia-rise.godot-kotlin-jvm") version "0.9.0-4.2.2"
}
Warning: With the changes made to scripts in this version, it's possible you encounter issues when opening an existing JVM project. If that's the case, close the project, delete your .godot/ directory and let Godot reimport everything.
The files prefixed with godot-kotlin-jvm_editor_
are the editors.
godot-kotlin-jvm_export_templates_0.9.0-4.2.2.tpz
is the archive for all export templates . See exporting documentation on how to use it.
What's Changed
- Fix export iOS template artifact by @gabryon99 in #586
- Add README.md for documentation and fix some grammar typos by @gabryon99 in #589
- Fix gdj update in editor with custom android gradle project in godot by @chippmann in #588
- Bump kotlin version to 1.9.23 by @chippmann in #587
- Show system alert dialog if system is misconfigured by @chippmann in #575
- Fix reflection usage in exported projects by @chippmann in #572
- [Bugfix] Fix typed array registration by @chippmann in #574
- Rework KotlinLanguage to fix editor script operations by @CedNaru in #579
- Add support for Java source files by @CedNaru in #592
- Source files are now exported without the code. by @CedNaru in #593
- Fix export by @CedNaru in #598
- Add new core methods by @CedNaru in #600
- Improve ksp error handling upon compilation issues by @chippmann in #607
- Update to Godot 4.2.2 by @CedNaru in #612
- Kotlin to Godot vararg optimization by @CedNaru in #613
Full Changelog: 0.8.2-4.2.1...0.9.0-4.2.2