You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added iOS/Mac targets. This can now be used in KMP projects targeting those platforms!
Added GoldenHourDuskEnd and GoldenHourDawnEnd to be consistent with BlueHourDuskEnd and BlueHourDawnEnd. The golden hour events were conspicuously missing.
Now compiled down to JRE 8 (1.8). Can be used with much older JVMs.
Non-Passive
Renamed TwilightPhase to SolarPhase and made it so TwilightPhases represent actual twilight phases rather than things like SolarPhase.Day or SolarPhase.Night. This was misleading.
Broke SolarPhase into distinct Dawn and Dusk phases. This really simplified a lot of things including documentation. Also, this means that SolarState.solarPhase returns the correct phase based on whether it's dawn or dusk.
Did the same thing as above with LightState and LightPhase.
LunarEvent.angle was renamed to LunarEvent.phase. See below.
LunarIllumination.phase now represents the same concept as LunarEvent.phase.
Prior to this change there was angle (0..360) and phase (-180..180). These have been combined into a single concept called phase (0..360). Having two similarly named numeric types was a recipe for confusion.
Bugfixes
Made kotlinx-datetime an api dependency
Fixed bug where LunarPosition.phase was inaccurate. It was based on the LunarIllumination.angle instead of LunarIllumination.phase as it should be.
Spelling and grammar corrections in API docs.
Fixed bug where SolarEventSequence.limit was not respected in certain situations and the resulting sequence could contain values beyond the specified limit.
Other
Bumped Kotlin version to 1.9.23
Adjust coroutine readme example to use Duration.INFINITE as the intended functionality is to run "forever" when technically the limit defaults to 365.days