Skip to content

v0.0.5

Compare
Choose a tag to compare
@kristinakoneva kristinakoneva released this 28 Feb 09:04
· 46 commits to main since this release

The HalleyOptions cache is no longer shared between all API calls in the Retrofit service. The options are now tagged and constructed per call site (per Retrofit service interface method).

Addresses issue: #2

New features

  • A new annotation HalTag has been introduced and each interface method in the Retrofit service must be annotated with it. The value set in this annotation is a String which serves as a tag which will be used for identifying and applying correct options in the further mapping.
  • A new parameter tag has been introduced for the halleyCommonOptions, halleyQueryOptions, halleyTemplateOptions methods for setting options imperatively. The values set for these options will be applied for the interface methods in the Retrofit service which have been annotated with the same tag value.

Breaking changes

  • When integrating this version, every Retrofit service interface method must be annotated with a HalTag annotation.
  • The halleyCommonOptions, halleyQueryOptions, halleyTemplateOptions methods now have an additional mandatory parameter tag: String.