Skip to content

1.9.0

Latest
Compare
Choose a tag to compare
@armiol armiol released this 20 May 13:11
4e5dc1e

This is a part of Spine release in version 1.9.0.

Several significant changes have been made in this release to base modules.

  • Environment-related types were moved under io.spine.environment package;

  • Production was renamed to DefaultMode;

  • It is now possible to check whether the environment is enabled; see EnvironmentType.enabled();

  • It is also possible to configure a callback executed upon the environment type detection; see EnvironmentType.onDetected(...);

  • The API for the custom environment types was changed; see io.spine.environment.CustomEnvironmentType and its documentation for more detail.

  • In the Preconditions2 helper class the following methods are now annotated with @CanIgnoreReturnValue:

    • checkNotEmptyOrBlank(String str, @Nullable Object errorMessage)
    • checkNotEmptyOrBlank(String str, @Nullable String errorMessageTemplate, @Nullable Object @Nullable ... errorMessageArgs)
    • checkPositive(long value)
    • checkPositive(long value, @Nullable String errorMessageTemplate, @Nullable Object @Nullable ... errorMessageArgs)
  • Previously used jCenter() references were replaced with mavenCentral(), as JCenter no longer provides a public Maven repository.

See the following PRs for more detail: