Releases: launchdarkly/android-client-sdk
Releases · launchdarkly/android-client-sdk
2.8.0
[2.8.0] - 2019-05-03
Added
LDAllFlagsListener
interface that can be registered to aLDClient
instance. The SDK will call the listener'sonChange
method whenever it receives an update, passing a list of any flag keys that were updated to the listener.- Class
ConnectionInformation
that contains information about the current status of the SDK. This class can be retrieved with the methodgetConnectionInformation
on aLDClient
instance and contains information on the current connectivity mode, timestamps of most recent successful and unsuccessful connections to LaunchDarkly, as well as information on the most recent connection failure (if any). LDStatusListener
interface that can be registered to aLDClient
instance. The interface has a methodonConnectionModeChanged
that will be called when theLDClient
instance transitions between connectivity modes (due to foreground status changes, network connectivity changing, or explicitly being set). The listener also has a methodonInternalFailure
that will be called when the instance experiences a failure updating it's flag store. The SDK is expected to recover from these failures, the listener is supplied to allow more informed monitoring of any underlying reasons the flag store may be not up to date.- Demo of new
ConnectionInformation
functionality to example application.
Removed
- Internal usages of Guava
Fixed
- Potential issue that could cause dropping of flag updates if SDK received updates in close succession.
- SDK will no longer assume that the application is started in the foreground, which can be untrue if started by Android's ActivityManager in response to a broadcast.
2.7.0
[2.7.0] - 2019-04-02
Added
- The new configuration option
setEvaluationReasons(true)
causes LaunchDarkly to report information about how each feature flag value was determined; you can access this information with the new client methodsboolVariationDetail
,stringVariationDetail
, etc. The new methods return an object that contains both the flag value and a "reason" object which will tell you, for instance, if the user was individually targeted for the flag or was matched by one of the flag's rules, or if the flag returned the default value due to an error. For more information, see the SDK Reference Guide on evaluation reasons. - The new client method
getVersion()
returns the version string of the SDK.
Fixed
- Bug causing
boolVariation
,intVariation
, andfloatVariation
to always returnnull
iffallback
argument wasnull
. - Potential issue where environment versions for flag updates could compare incorrectly due to floating point coercion.
- Summary events for unknown flags (flags evaluated without any stored value, variation, or version) now include the returned value as intended.
- Inaccurate events caused by data for flag version and variation being unsynchronized with flag value.
- Bug causing some events to be dropped from summary counts due to data race in sending and updating summary events.
- Potential
ClassCastException
crash on some devices due to old version of OkHttp. - Improved documentation comments throughout.
- Crash on migration when no primary mobile key is specified.
Removed
- CircleCI V1 config file
2.6.0
[2.6.0] - 2019-01-29
Added:
- Support for connecting to multiple environments through LDClient interface.
- Security provider hot patch for devices without support for TLSv1.2 (requires Google Play Services to be successful).
Changed:
- Use Timber formatting instead of String concatenation in logging.
- Replace Log calls with Timber in example app.
Fixed:
- Client now parses and stores flag version information correctly in polling mode, allowing these fields to be included in feature and summary events.
- Prevent example app from permanently closing LDClient on first backgrounding.
Removed:
- Support for Android Ice Cream Sandwich, 4.0.3, API 15
2.5.4
[2.5.4] - 2018-10-25
Changed
- Outbound HTTP requests now have an authentication scheme token in
Authorization
request headers
Fixed
- Polling for flag updates might block the main thread
- Refactored map synchronization to avoid crashes in apps build with Gradle 3.3.0-alpha11
- Restored support for network connectivity detection in Android 7.0+ devices
2.5.3
2.5.2
2.5.1
2.5.0
2.4.1
2.4.0
[2.4.0] - 2018-06-03
Added
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option
inlineUsersInEvents
. For more details, see Analytics Data Stream Reference. - New method
setInlineUsersInEvents
inLDConfig
. Whentrue
includes the full user (excluding private attributes) in analyticsfeature
andcustom
events. Whenfalse
includes only theuserKey
. Default:false
.
Changed
- Updated
Timber
dependency to version4.7.0
.