Repository navigation
v3.0
Starting with major version 3, suncalc now requires at least Java 8, or Android API level 26 (Android 8.0 "Oreo"). If you are using older Java or Android versions, you can still use suncalc v2, which will still receive bugfixes and some enhancements for a while.
- suncalc now uses the new Java Time API. No more hassle with outdated
DateandCalendarobjects! truncateTo()has been removed, as this can be done with Java'sZonedDateTime.- The precision of SunTime noon and nadir has been greatly enhanced. A big shout-out for @isomeme for finding this bug, and her help to fix it.
- This is a multi-version jar file. It contains Java 8 classes, but also a
module-infofor modularized Java applications. - The JSR305 null-safe annotations have been replaced by SpotBugs annotations. This should have no impact on your code, as the method signatures themselves are unchanged. However, the compiler could now complain about some
nulldereferences that have been undetected before. Reason is that JSR305 uses thejavax.annotationspackage, which leads to split packages in a Java 9 modular environment.
See the migration guide for how to migrate from version 2.