Releases: configcat/android-sdk
Releases · configcat/android-sdk
v9.1.0
v9.0.1
v9.0.0
New features and improvements:
- Logging changes
- Include event IDs in log messages to make identification of log events easier.
- Revise log messages and make them consistent across the ConfigCat SDKs.
- Cache changes
- Use a standardized config cache key generation algorithm and cache payload format to allow shared caches to be used by SDKs of different platforms.
Removed:
- Removed deprecated methods
getVariationId()
,getVariationIdAsync()
,getAllVariationIds()
,getAllVariationIdsAsync(
).
v8.2.2
v8.2.1
v8.2.0
Added
- Android Java sample application
Changed
- Rename
ConfigCatPreferencesCache
toSharedPreferencesCache
v8.1.0
Added
getAllValueDetails()
/getAllValueDetailsAsync()
methods to retrieve the detailed values of all feature flags or settings.ConfigCatPreferencesCache
cache implementation that uses SharedPreferences as persistent storage.
Changed
- Fetch logic handles
403
response status and update cachedfetchTime
in case of304
403
and404
response status. - Deprecated
getVariationId()
,getVariationIdAsync()
,getAllVariationIds()
,getAllVariationIdsAsync()
.
v8.0.1
v8.0.0
Added
setDefaultUser(user)
/clearDefaultUser()
methods to set / remove a default user object used when there's no user passed togetValue[Async]()
/getValueDetails[Async]()
/getAllValues[Async]()
/getAllVariationIds[Async]()
methods.setOffline()
/setOnline()
methods to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode the SDK works from the cache only.onReady()
/onConfigChanged(Map<String, Setting>)
/onFlagEvaluated(EvaluationDetails)
/onError(String)
hooks. Subscription is possible on client initialization options and on thehooks
property ofConfigCatClient
.getValueDetails[Async]()
method to retrieve evaluation details along with the feature flag / setting value. It returns the same details that is passed toonFlagEvaluated(EvaluationDetails)
on each evaluation.ConfigCatClient.get()
factory method that produces a single instance / SDK key.
Changed
forceRefresh()
method now returns with a result object to indicate whether the refresh succeeded or not.- Client initialization options were moved to a
ClientOptions
object that can be passed to the newConfigCatClient.get()
factory method. ConfigCatClient
can be explicitly closed viaclient.close()
andConfigCatClient.closeAll()
methods.- The TTL of
lazyLoad
and interval ofautoPoll
is compared against a cachedfetchTime
, which allows the SDK not necessarily download a newconfig.json
at each application restart.
Removed
asyncRefresh
parameter ofPollingModes.lazyLoad()
configurationChangeListener
parameter ofPollingModes.autoPoll()
. It was replaced by theonConfigChanged()
hook.