Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.0-JVM #39

Merged
merged 7 commits into from
Apr 28, 2022
Merged

Release/1.0-JVM #39

merged 7 commits into from
Apr 28, 2022

Conversation

Quillraven
Copy link
Owner

@Quillraven Quillraven commented Apr 22, 2022

Minor update to the JVM version of Fleks which I will also bring to the KMP branch later on. The changes are:

  • Update gradle from 7.3.3 to 7.4.2
  • Update Kotlin from 1.6.10 to 1.6.21
  • add new getOrNull function to ComponentMapper
  • refactor system initialization. onInit is now no longer necessary. The world can be accessed in the normal init constructor block of a system
  • update ReadMe to better explain the two different flavors of Fleks and why they are there (KMP and JVM)

With the new getOrNull function it is now possible to write concise code together with Kotlin's let like:

val animations : ComponentMapper<Animation>
// ....
animations.getOrNull(entity)?.let { animation ->
  animation.loop = false
}

I will upgrade Dinoleon to this version and test if everything is still properly working. If yes, then I will prepare a new maven release.

@Quillraven Quillraven self-assigned this Apr 22, 2022
@Quillraven Quillraven changed the title Release/1.0 jvm Release/1.0-JVM Apr 22, 2022
@Quillraven Quillraven merged commit 506acce into master Apr 28, 2022
@Quillraven Quillraven deleted the release/1.0-jvm branch April 28, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant