Releases: infinum/android-halley
Releases · infinum/android-halley
v1.0.0
Changelog
- Added support for further customization of the call factory in #8 (clients are no longer limited to passing only an
OkHttpClient
instance - it has been generalized toCall.Factory
) - Switched the callback execution into another thread to avoid dispatcher exhaustion and ensure proper call cancellation management in #8
Warning
New Retrofit.Builder.withHalley(configuration, callFactory)
extension function has been added. Library clients integrating the Retrofit module are strongly encouraged to use that function for configuring Retrofit with Halley instead of Json.asHalleyConverterFactory(configuration, httpClient)
and BinaryFormat.asHalleyConverterFactory(configuration, httpClient)
. These methods have been marked as deprecated and will be removed in some future release.
v0.0.6
Changelog
- Added support for decoding properties of type
Map
by @kristinakoneva in #5. - Added a new proguard rule to keep classes extending from
HalResource
by @kristinakoneva in #5.
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
.