v0.0.5
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 aString
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 thehalleyCommonOptions
,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 sametag
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 parametertag: String
.