Skip to content

v3.0

Compare
Choose a tag to compare
@shred shred released this 06 Jun 14:24
· 67 commits to master since this release
cbf57e5

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 Date and Calendar objects!
  • truncateTo() has been removed, as this can be done with Java's ZonedDateTime.
  • 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-info for 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 null dereferences that have been undetected before. Reason is that JSR305 uses the javax.annotations package, which leads to split packages in a Java 9 modular environment.

See the migration guide for how to migrate from version 2.