Skip to content

Commit 4af59d0

Browse files
authored
Release 2.9.1 (#92)
## [2.9.1] - 2020-01-03 ### Fixed: - Removed possibility of fatal `SecurityException` on Samsung devices that would be triggered when the SDK attempted to register an alarm to trigger a future poll when the application process already had 500 alarms registered. This limit is only present on Samsung's versions of Android Lollipop and later. The SDK will now catch this error if it\ occurs to prevent killing the host application. - Rarely, the client would deliver its initial "identify" event to LaunchDarkly immediately rather than waiting for the configured flush interval.
1 parent bcbf762 commit 4af59d0

File tree

15 files changed

+258
-322
lines changed

15 files changed

+258
-322
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
timeout: 1200
4848
no_output_timeout: 2h
4949

50-
- run: ./gradlew :launchdarkly-android-client-sdk:assembleDebug --console=plain -PdisablePreDex
50+
- run:
51+
name: Compile
52+
command: ./gradlew :launchdarkly-android-client-sdk:assembleDebug --console=plain -PdisablePreDex
5153

5254
- run:
5355
name: Wait for emulator to boot
@@ -73,12 +75,18 @@ jobs:
7375
adb logcat >> ~/artifacts/logcat.txt
7476
7577
- run:
76-
name: Run Tests
78+
name: Run tests
7779
command: ./gradlew :launchdarkly-android-client-sdk:connectedAndroidTest --console=plain -PdisablePreDex
7880
no_output_timeout: 2h
7981

80-
- run: ./gradlew packageRelease --console=plain -PdisablePreDex
82+
- run:
83+
name: Validate package creation
84+
command: ./gradlew packageRelease --console=plain -PdisablePreDex
8185

86+
- run:
87+
name: Validate Javadoc
88+
command: ./gradlew Javadoc
89+
8290
- run:
8391
name: Save test results
8492
command: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
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+
## [2.9.1] - 2020-01-03
7+
### Fixed:
8+
- Removed possibility of fatal `SecurityException` on Samsung devices that would be triggered when the SDK attempted to register an alarm to trigger a future poll when the application process already had 500 alarms registered. This limit is only present on Samsung's versions of Android Lollipop and later. The SDK will now catch this error if it occurs to prevent killing the host application.
9+
- Rarely, the client would deliver its initial "identify" event to LaunchDarkly immediately rather than waiting for the configured flush interval.
10+
- Fixed some malformed Javadoc comments.
11+
612
## [2.9.0] - 2019-10-25
713
### Added
814
- Added support for new LaunchDarkly experimentation features. See `LDClient.track(String, JsonElement, Double)` for recording numeric metrics.

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.9.0'
49+
//implementation 'com.launchdarkly:launchdarkly-android-client-sdk:2.9.1'
5050

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

launchdarkly-android-client-sdk/build.gradle

Lines changed: 8 additions & 11 deletions
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.9.0'
10+
version = '2.9.1'
1111
sourceCompatibility = 1.7
1212
targetCompatibility = 1.7
1313
}
@@ -40,10 +40,6 @@ android {
4040
execution 'ANDROID_TEST_ORCHESTRATOR'
4141
}
4242

43-
configurations {
44-
javadocDeps
45-
}
46-
4743
compileOptions {
4844
sourceCompatibility JavaVersion.VERSION_1_7
4945
targetCompatibility JavaVersion.VERSION_1_7
@@ -89,10 +85,6 @@ dependencies {
8985
androidTestImplementation 'org.easymock:easymock:3.6'
9086
androidTestImplementation 'junit:junit:4.12'
9187
androidTestImplementation "com.squareup.okhttp3:mockwebserver:$okhttpVersion"
92-
93-
javadocDeps "com.google.code.gson:gson:$gsonVersion"
94-
javadocDeps "com.squareup.okhttp3:okhttp:$okhttpVersion"
95-
javadocDeps "com.launchdarkly:okhttp-eventsource:$eventsourceVersion"
9688
}
9789

9890
repositories {
@@ -125,10 +117,15 @@ task sourcesJar(type: Jar) {
125117
}
126118

127119
task javadoc(type: Javadoc) {
128-
failOnError false
129120
source = android.sourceSets.main.java.srcDirs
130121
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
131-
classpath += configurations.javadocDeps
122+
}
123+
124+
afterEvaluate {
125+
// https://stackoverflow.com/questions/34571371/android-studio-javadoc-cannot-find-symbol/34572606#34572606
126+
javadoc.classpath += files(android.libraryVariants.collect { variant ->
127+
variant.javaCompile.classpath.files
128+
})
132129
}
133130

134131
task javadocJar(type: Jar, dependsOn: javadoc) {

0 commit comments

Comments
 (0)