Skip to content

Commit dfbdc7c

Browse files
authored
Release 2.11.0 (#98)
## [2.11.0] - 2020-02-28 ### Added - The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the Android API SDK version number, and performance statistics. No credentials, Android device IDs, or other identifiable values are included. This behavior can be disabled with `LDConfig.Builder.setDiagnosticOptOut(boolean)` or configured with `LDConfig.Builder.setDiagnosticRecordingInterval(int)`. - New `LDConfig.Builder` field setters `setWrapperName(String)` and `setWrapperVersion(String)`. These allow a library wrapping the SDK (for example, the React Native SDK) to identify itself for usage data. ### Fixed - Fixed an issue where in some cases the future associated with an `init` or `identify` call would never complete if the network status or foreground state changed before the future had completed. Also improved test coverage of this behavior. ### Deprecated - `UserSummaryEventSharedPreferences`, `SummaryEventSharedPreferences`, `FeatureFlagFetcher`, `Util`, and `Debounce`. These classes were only intended for internal SDK use, and will be removed in the next major release to reduce the number of exposed classes.
1 parent 2c523ca commit dfbdc7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1849
-494
lines changed

.circleci/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,19 @@ jobs:
7171
background: true
7272
command: |
7373
mkdir -p ~/artifacts
74-
adb shell getprop >> ~/artifacts/props.txt
75-
adb logcat >> ~/artifacts/logcat.txt
74+
adb shell getprop | tee -a ~/artifacts/props.txt
75+
adb logcat | tee -a ~/artifacts/logcat.txt
7676
7777
- run:
7878
name: Run tests
7979
command: ./gradlew :launchdarkly-android-client-sdk:connectedAndroidTest --console=plain -PdisablePreDex
8080
no_output_timeout: 2h
8181

82+
- run:
83+
name: Stop emulator
84+
command: adb emu kill || true
85+
when: always
86+
8287
- run:
8388
name: Validate package creation
8489
command: ./gradlew packageRelease --console=plain -PdisablePreDex
@@ -99,6 +104,7 @@ jobs:
99104
command: |
100105
mv ./launchdarkly-android-client-sdk/build/reports ~/artifacts
101106
mv ./launchdarkly-android-client-sdk/build/outputs ~/artifacts
107+
mv ./launchdarkly-android-client-sdk/build/docs ~/artifacts
102108
when: always
103109

104110
- store_test_results:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33

44
All notable changes to the LaunchDarkly Android SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
5+
## [2.11.0] - 2020-02-28
6+
### Added
7+
- The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the Android API SDK version number, and performance statistics. No credentials, Android device IDs, or other identifiable values are included. This behavior can be disabled with `LDConfig.Builder.setDiagnosticOptOut(boolean)` or configured with `LDConfig.Builder.setDiagnosticRecordingInterval(int)`.
8+
- New `LDConfig.Builder` field setters `setWrapperName(String)` and `setWrapperVersion(String)`. These allow a library wrapping the SDK (for example, the React Native SDK) to identify itself for usage data.
9+
### Fixed
10+
- Fixed an issue where in some cases the future associated with an `init` or `identify` call would never complete if the network status or foreground state changed before the future had completed. Also improved test coverage of this behavior.
11+
### Deprecated
12+
- `UserSummaryEventSharedPreferences`, `SummaryEventSharedPreferences`, `FeatureFlagFetcher`, `Util`, and `Debounce`. These classes were only intended for internal SDK use, and will be removed in the next major release to reduce the number of exposed classes.
513

614
## [2.10.0] - 2020-01-30
715
### Added

example/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies {
4646
implementation 'com.android.support:appcompat-v7:26.1.0'
4747
implementation project(path: ':launchdarkly-android-client-sdk')
4848
// Comment the previous line and uncomment this one to depend on the published artifact:
49-
//implementation 'com.launchdarkly:launchdarkly-android-client-sdk:2.10.-'
49+
//implementation 'com.launchdarkly:launchdarkly-android-client-sdk:2.11.0'
5050

5151
implementation 'com.jakewharton.timber:timber:4.7.1'
5252

launchdarkly-android-client-sdk/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'io.codearte.nexus-staging'
77

88
allprojects {
99
group = 'com.launchdarkly'
10-
version = '2.10.0'
10+
version = '2.11.0'
1111
sourceCompatibility = 1.7
1212
targetCompatibility = 1.7
1313
}

launchdarkly-android-client-sdk/src/androidTest/java/com/launchdarkly/android/AwaitableCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.concurrent.ExecutionException;
66
import java.util.concurrent.TimeoutException;
77

8-
public class AwaitableCallback<T> implements Util.ResultCallback<T> {
8+
public class AwaitableCallback<T> implements LDUtil.ResultCallback<T> {
99
private volatile Throwable errResult = null;
1010
private volatile T result = null;
1111
private ConditionVariable state = new ConditionVariable();

0 commit comments

Comments
 (0)