Fabric Language Kotlin

Fabric Language Kotlin

47M Downloads

missing kotlinx/datetime/Instant

j10a1n15 opened this issue ยท 6 comments

commented

Latest release stopped including Instant (and likely more classes)

message.txt

commented

According to https://github.com/Kotlin/kotlinx-datetime/releases/tag/v0.7.0 this is expected....

Remove kotlinx.datetime.Instant and kotlinx.datetime.Clock in favor of kotlin.time.Instant

Im not really too sure how we should handle this, I dont think there is much we can do.

commented

There is a 0.7.1-0.6.x-compat version we could maybe use, my worry with this is its not a long term solution and will just cause the same problem in a few months. Ideally the compat would have been a seperate artifact we could include for the forseeable future.

How many mods does this affect, are they all able to update?

commented

I have marked the new version as a beta to reduce the number of players that will download it.

commented

According to Kotlin/kotlinx-datetime@v0.7.0 (release) this is expected....

Remove kotlinx.datetime.Instant and kotlinx.datetime.Clock in favor of kotlin.time.Instant

oh i see, ill update my mods to not use them anymore

commented

but yeah theres nothing really someone can do

commented

After discussion on discord we wont be doing anything to maintain backwards compatibility with these experimental koltin libraries. We proboably shouldn't have added them in the first place, but its too late to remove them.

I will keep this version as a beta for a few weeks to allow time for mods to update. If you do use these alpha libraries it may be best to set a depedency on the specific minor version you are using.