Skip to content

Releases: launchdarkly/android-client-sdk

3.1.8

23 Aug 20:23
Compare
Choose a tag to compare

[3.1.8] - 2022-08-23

Changed:

  • Changed throttling/jitter logic that used java.util.Random to use java.security.SecureRandom. Even though in this case it is not being used for any cryptographic purpose, but only to produce a pseudo-random delay, static analysis tools may still report every use of java.util.Random as a security risk by default. The purpose of this change is simply to avoid such warnings; it has no practical effect on the behavior of the SDK.

Fixed:

  • The map of existing LDClient instances was not being cleared after calling close(). (#108)
  • Fixed a bug that caused an ExecutorService object to be unnecessarily created when flush() was called.
  • The SDK did not correctly persist versioning information when a flag was deleted or archived. In an edge case where flag updates are received out of order, this could cause a deleted flag to appear to be undeleted.
  • Setting baseUri or streamUri to a URI with a trailing slash could cause requests to fail. Now the SDK works correctly regardless of whether these URIs have a trailing slash or not.
  • The SDK was including "anonymous": false in analytics event data for users where the anonymous property had not been set at all. In the current user model, "anonymous": false is subtly different from not setting the property (flag rules referencing anonymous will only work if it is explicitly set), so the event data should accurately represent this by omitting the property if it was omitted.
  • Fixed a bug that could cause a NullPointerException when calling variation methods, in an edge case where the SDK received inconsistent data of a kind that the LaunchDarkly services would not normally send (an evaluation result with a value but no variation). This should not be possible in practice, but could happen in test scenarios.

3.1.7

17 Aug 21:11
6c28e9b
Compare
Choose a tag to compare

[3.1.7] - 2022-08-17

Fixed:

  • All Timber logs now use a consistent tag LaunchDarklySdk. (Thanks, audkar!)

3.1.6

01 Aug 19:47
Compare
Choose a tag to compare

[3.1.6] - 2022-08-01

Added:

  • CI builds now include the SDK test harness, a standardized contract test suite that validates the SDK's behavior against simulated LaunchDarkly endpoints.

Fixed:

  • Deadlock between Throttler and ConnectivityManager. (Thanks, res0nance!)
  • Remove object-level locking in LDClient that caused synchronous init()s to unnecessarily block other methods, resulting in ANRs.

3.1.5

05 May 18:25
59866be
Compare
Choose a tag to compare

[3.1.5] - 2022-05-05

Fixed

  • Prevent NullPointerException when event buffer is full and diagnosticOptOut is true. (Thanks, mattyway!)

3.1.4

23 Mar 23:44
5adb4de
Compare
Choose a tag to compare

[3.1.4] - 2022-03-23

Fixed

  • Removed Android Appcompat dependency.
  • Bump version of okhttp from 4.9.1 to 4.9.2.
  • Prevent multiple allocations of the DiagnosticEventProcessor.
  • Removed application android:label attribute from the SDK's manifest. (Thanks, Exaper!)

3.1.3

24 Feb 23:07
d1ac26e
Compare
Choose a tag to compare

[3.1.3] - 2022-02-24

Fixed

  • Add explicit proguard directives for keeping BroadcastReceivers
  • Bump version of git-publish gradle plugin from 3.0.0 to 3.0.1.

3.1.2

17 Dec 23:33
1a09b9b
Compare
Choose a tag to compare

[3.1.2] - 2021-12-17

Fixed

  • Bump version of gson dependency from 2.8.6 to 2.8.9.

3.1.1

03 Sep 21:20
d4e5095
Compare
Choose a tag to compare

[3.1.1] - 2021-09-03

Fixed

  • Removed the android:allowBackup tag from the SDK's AndroidManifest.xml file to avoid requiring applications to explicitly replace the tag if given a different value. (#138)
  • Changed the SDK's network detection check to consider network transport over a VPN as a connected state. This fixes an issue where the SDK would prevent network requests on a VPN due to considering the network to be unavailable. (Thanks, lguipeng!)

3.1.0

06 Aug 22:16
f1411d9
Compare
Choose a tag to compare

[3.1.0] - 2021-08-06

Added

  • The SDK now supports the ability to control the proportion of traffic allocation to an experiment. This works in conjunction with a new platform feature now available to early access customers.

3.0.2

19 Jul 15:39
f8852e4
Compare
Choose a tag to compare

[3.0.2] - 2021-07-16

Fixed

  • Catch SecurityException when thrown on call to getNetworkCapabilities used to detect current network availability. (#129)
  • Explicitly flag PendingIntents as FLAG_IMMUTABLE on Android SDK versions that support doing so. Explicitly specifying mutability is required when targeting Android S+. (#133)