Skip to content

Commit 2168973

Browse files
fix(jackson-databind): update version (pr to 3.1.x) (#288)
* fix(jackson-databind): update version * chore: update changelog * travis(ci): use our own emulator wait script * more helpful output while waiting for emulator * force trusty
1 parent ba00a81 commit 2168973

File tree

10 files changed

+49
-9
lines changed

10 files changed

+49
-9
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: android
2+
# you MUST mention trusty https://docs.travis-ci.com/user/languages/android/
3+
dist: trusty
24
env:
35
global:
46
# These parameters should match the parameters for build tools and sdk versions in the gradle file
@@ -41,7 +43,7 @@ before_script:
4143
- echo $TRAVIS_TAG
4244
- echo no | android create avd --force -n test -t android-$EMULATOR_API --abi armeabi-v7a
4345
- emulator -avd test -no-audio -no-window &
44-
- android-wait-for-emulator
46+
- scripts/android-wait-for-emulator.sh
4547
- adb shell input keyevent 82 &
4648
addons:
4749
srcclr: true

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Optimizely Android X SDK Changelog
22

3+
## 3.1.1
4+
July 23rd, 2019
5+
6+
### Bug Fixes:
7+
* SourceClear flagged jackson-databind 2.9.8 fixed in 2.9.9.1
8+
39
## 3.1.0
410
May 13th, 2019
511

android-sdk/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ dependencies {
8383
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmaker_ver"
8484
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
8585
androidTestImplementation "com.google.code.gson:gson:$gson_ver"
86-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
86+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
8787
}
8888

8989
uploadArchives {

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ext {
5555
target_sdk_version = 28
5656
java_core_ver = "3.1.0"
5757
android_logger_ver = "1.3.6"
58-
jacksonversion= "2.9.8"
58+
jacksonversion= "2.9.9.1"
5959
support_annotations_ver = "24.2.1"
6060
junit_ver = "4.12"
6161
mockito_ver = "1.9.5"

datafile-handler/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dependencies {
7070
androidTestImplementation "com.google.dexmaker:dexmaker:$dexmaker_ver"
7171
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmaker_ver"
7272
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
73-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
73+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
7474
}
7575

7676
uploadArchives {

event-handler/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ dependencies {
7171
androidTestImplementation "com.google.dexmaker:dexmaker:$dexmaker_ver"
7272
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmaker_ver"
7373
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
74-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
74+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
7575
}
7676

7777
uploadArchives {

scripts/android-wait-for-emulator.sh

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# Originally written by Ralf Kistner <[email protected]>, but placed in the public domain
4+
5+
set +e
6+
7+
bootanim=""
8+
failcounter=0
9+
#timeout_in_sec=360 # 6 minutes
10+
timeout_in_sec=900 # 15 minutes
11+
echo "Waiting for emulator to start"
12+
until [[ "$bootanim" =~ "stopped" ]]; do
13+
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1 &`
14+
#echo bootanim=\`$bootanim\`
15+
if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline"
16+
|| "$bootanim" =~ "running" || "$bootanim" =~ "error: no emulators found" ]]; then
17+
let "failcounter += 5"
18+
echo -n "."
19+
if [[ $failcounter -gt timeout_in_sec ]]; then
20+
echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator"
21+
exit 1
22+
fi
23+
else
24+
if [[ ! "$bootanim" =~ "stopped" ]]; then
25+
echo "unexpected behavior from (adb -e shell getprop init.svc.bootanim): $bootanim"
26+
exit 1
27+
fi
28+
fi
29+
sleep 5
30+
done
31+
32+
echo "Emulator is ready (took $failcounter seconds)"

shared/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ dependencies {
7474
androidTestImplementation "com.google.dexmaker:dexmaker:$dexmaker_ver"
7575
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmaker_ver"
7676
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
77-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
77+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
7878
}
7979

8080
uploadArchives {

test-app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
// https://mvnrepository.com/artifact/org.slf4j/slf4j-android
4949
implementation group: 'org.slf4j', name: 'slf4j-android', version: '1.7.25'
5050
// EXAMPLE REPLACE gson json parsing with jackson-databind json parsing.
51-
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
51+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "$jacksonversion"
5252

5353
testImplementation "junit:junit:$junit_ver"
5454
testImplementation "org.mockito:mockito-core:$mockito_ver"
@@ -68,5 +68,5 @@ dependencies {
6868
// androidTestImplementation 'com.optimizely.ab:android-sdk:1.0.0'
6969
androidTestImplementation project(':android-sdk')
7070
androidTestImplementation project(path: ':shared')
71-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
71+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
7272
}

user-profile/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dependencies {
7070
androidTestImplementation "com.google.dexmaker:dexmaker:$dexmaker_ver"
7171
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmaker_ver"
7272
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
73-
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
73+
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
7474
}
7575

7676
uploadArchives {

0 commit comments

Comments
 (0)