Skip to content

Commit aa95877

Browse files
authored
Release 3.0.1 (#132)
## [3.0.1] - 2021-06-25 ### Fixed - The Android manifest has been updated to explicitly specify the `android:exported` attribute on declared `receiver` elements. This is to meet [new requirements](https://developer.android.com/about/versions/12/behavior-changes-12#exported) in the upcoming Android 12 release. - Increased the compile-time dependency on `jackson-databind` to 2.10.5.1, due to [CVE-2020-25649](https://nvd.nist.gov/vuln/detail/CVE-2020-25649). - Update the dependency on the shared [launchdarkly/java-sdk-common](https://github.com/launchdarkly/java-sdk-common) to 1.1.2 to prevent Jackson from showing up as a transitive dependency in tools that inspect module metadata.
1 parent ff3a0ab commit aa95877

File tree

6 files changed

+31
-8
lines changed

6 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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).
55

6+
## [3.0.1] - 2021-06-25
7+
### Fixed
8+
- The Android manifest has been updated to explicitly specify the `android:exported` attribute on declared `receiver` elements. This is to meet [new requirements](https://developer.android.com/about/versions/12/behavior-changes-12#exported) in the upcoming Android 12 release.
9+
- Increased the compile-time dependency on `jackson-databind` to 2.10.5.1, due to [CVE-2020-25649](https://nvd.nist.gov/vuln/detail/CVE-2020-25649).
10+
- Update the dependency on the shared [launchdarkly/java-sdk-common](https://github.com/launchdarkly/java-sdk-common) to 1.1.2 to prevent Jackson from showing up as a transitive dependency in tools that inspect module metadata.
11+
12+
## [2.14.2] - 2021-06-02
13+
### Fixed
14+
- Added check to prevent `NullPointerException` in `DiagnosticEventProcessor.stopScheduler` when `LDClient.close` is called before the application is foregrounded when the SDK was initialized in the background. ([#127](https://github.com/launchdarkly/android-client-sdk/issues/127))
15+
- Log message warning that JSON flag was requested as a String has been updated to include the key of the flag requested to assist in discovering which flag is being requested with an unexpected type. ([#116](https://github.com/launchdarkly/android-client-sdk/issues/116))
16+
617
## [3.0.0] - 2021-05-07
718
This major version has an accompanying [Migration Guide](https://docs.launchdarkly.com/sdk/client-side/android/migration-2-to-3). Please see the guide for more information on updating to this version of the SDK, as the following is just a summary of the changes.
819

example/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ dependencies {
2929

3030
implementation(project(":launchdarkly-android-client-sdk"))
3131
// Comment the previous line and uncomment this one to depend on the published artifact:
32-
//implementation("com.launchdarkly:launchdarkly-android-client-sdk:3.0.0")
32+
//implementation("com.launchdarkly:launchdarkly-android-client-sdk:3.0.1")
3333
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
19-
version=3.0.0
19+
version=3.0.1
2020

2121
sonatypeUsername=
2222
sonatypePassword=

launchdarkly-android-client-sdk/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ ext.versions = [
6161
"easymock": "4.3",
6262
"eventsource": "1.11.2",
6363
"gson": "2.8.6",
64-
"jackson": "2.10.0",
64+
"jacksonCore": "2.10.5",
65+
"jacksonDatabind": "2.10.5.1",
6566
"junit": "4.13",
66-
"launchdarklyJavaSdkCommon": "1.1.1",
67+
"launchdarklyJavaSdkCommon": "1.1.2",
6768
"okhttp": "4.9.1",
6869
"timber": "4.7.1",
6970
]
@@ -73,8 +74,8 @@ dependencies {
7374

7475
commonDoc("com.launchdarkly:launchdarkly-java-sdk-common:${versions.launchdarklyJavaSdkCommon}:sources")
7576
// These are included only for Javadoc generation.
76-
commonClasses("com.fasterxml.jackson.core:jackson-core:${versions.jackson}")
77-
commonClasses("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
77+
commonClasses("com.fasterxml.jackson.core:jackson-core:${versions.jacksonCore}")
78+
commonClasses("com.fasterxml.jackson.core:jackson-databind:${versions.jacksonDatabind}")
7879

7980
implementation("com.google.code.gson:gson:${versions.gson}")
8081
implementation("androidx.annotation:annotation:${versions.androidAnnotation}")

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,15 @@ public void defaultDiagnosticRequestIncludingAdditionalHeaders() throws Interrup
115115
assertEquals("foo", r.getHeader("Authorization"));
116116
assertEquals(GsonCache.getGson().toJson(testEvent), r.getBody().readUtf8());
117117
}
118+
119+
@Test
120+
public void closeWithoutStart() {
121+
ForegroundTestController.setup(false);
122+
OkHttpClient okHttpClient = new OkHttpClient.Builder().build();
123+
124+
LDConfig ldConfig = new LDConfig.Builder().mobileKey("test-mobile-key").build();
125+
DiagnosticStore diagnosticStore = new DiagnosticStore(ApplicationProvider.getApplicationContext(), "test-mobile-key");
126+
DiagnosticEventProcessor diagnosticEventProcessor = new DiagnosticEventProcessor(ldConfig, "default", diagnosticStore, ApplicationProvider.getApplicationContext(), okHttpClient);
127+
diagnosticEventProcessor.close();
128+
}
118129
}

launchdarkly-android-client-sdk/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
77

88
<application android:allowBackup="true" android:label="@string/app_name">
9-
<receiver android:name="com.launchdarkly.sdk.android.PollingUpdater" />
10-
<receiver android:name="com.launchdarkly.sdk.android.ConnectivityReceiver" android:enabled="true">
9+
<receiver android:name="com.launchdarkly.sdk.android.PollingUpdater" android:exported="false"/>
10+
<receiver android:name="com.launchdarkly.sdk.android.ConnectivityReceiver" android:enabled="true" android:exported="false">
1111
<intent-filter>
1212
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
1313
</intent-filter>

0 commit comments

Comments
 (0)