Skip to content

Releases: launchdarkly/android-client-sdk

2.8.0

03 May 22:15
34acc20
Compare
Choose a tag to compare

[2.8.0] - 2019-05-03

Added

  • LDAllFlagsListener interface that can be registered to a LDClient instance. The SDK will call the listener's onChange 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 method getConnectionInformation on a LDClient 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 a LDClient instance. The interface has a method onConnectionModeChanged that will be called when the LDClient instance transitions between connectivity modes (due to foreground status changes, network connectivity changing, or explicitly being set). The listener also has a method onInternalFailure 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

02 Apr 23:00
64bbb2f
Compare
Choose a tag to compare

[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 methods boolVariationDetail, 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, and floatVariation to always return null if fallback argument was null.
  • 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

29 Jan 23:03
6351c07
Compare
Choose a tag to compare

[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

25 Oct 21:19
Compare
Choose a tag to compare

[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

28 Sep 00:05
53ad9ce
Compare
Choose a tag to compare

[2.5.3] - 2018-09-27

Fixed

  • Restored support for initializing LDClient on non-main threads

2.5.2

12 Sep 00:50
7949ef9
Compare
Choose a tag to compare

[2.5.2] - 2018-09-11

Fixed

  • Handling of Future returned by LDClient.init()
  • Date HTTP header parsing specifies US locale

2.5.1

14 Aug 05:52
7f4b9ec
Compare
Choose a tag to compare

[2.5.1] - 2018-08-13

Fixed

  • ClassCastException when calling variation methods due to internal storage schema changes between releases 2.3.x and 2.4.0.
  • LDUser.Builder.custom() no longer returns UnsupportedOperationException.

2.5.0

13 Jun 00:57
72d76e8
Compare
Choose a tag to compare

[2.5.0] - 2018-06-12

Changed

  • LDClient#identify(LDUser) now returns a Future<Void> so that the app can be notified when flag values have been refreshed for the updated user.

2.4.1

07 Jun 00:15
c0d36fe
Compare
Choose a tag to compare

[2.4.1] - 2018-06-06

Fixed

  • Removed the unused com.noveogroup.android:android-logger dependency that prevented some consuming apps from assembling.

2.4.0

04 Jun 05:52
ca1bb66
Compare
Choose a tag to compare

[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 in LDConfig. When true includes the full user (excluding private attributes) in analytics feature and custom events. When false includes only the userKey. Default: false.

Changed

  • Updated Timber dependency to version 4.7.0.