Skip to content

Commit 65c43df

Browse files
author
Robert Henigan
authored
Merge pull request #1679 from smartdevicelink/5.1.1
5.1.1
2 parents 7551226 + 872b2a6 commit 65c43df

File tree

23 files changed

+177
-410
lines changed

23 files changed

+177
-410
lines changed

CHANGELOG.md

Lines changed: 4 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5.1.0 Release Notes
1+
# 5.1.1 Release Notes
22

33
## Summary:
44
||Version|
@@ -7,93 +7,15 @@
77
| **RPC** | 7.1.0
88
| **Tested Targeting** | Android 30
99

10-
## Features:
11-
12-
- [[SDL 0296] Possibility to update video streaming capabilities during ignition cycle](https://github.com/smartdevicelink/sdl_java_suite/issues/1410)
13-
14-
- [[SDL 0282] Screen Manager Alert Manager](https://github.com/smartdevicelink/sdl_java_suite/issues/1304)
15-
16-
- [[SDL 0269] New vehicle data ClimateData ](https://github.com/smartdevicelink/sdl_java_suite/issues/1247)
17-
18-
- [[SDL 0262] New vehicle data SeatOccupancy](https://github.com/smartdevicelink/sdl_java_suite/issues/1240)
19-
20-
- [[SDL 0198] - Media Skip Indicators](https://github.com/smartdevicelink/sdl_java_suite/issues/871)
21-
22-
23-
## Enhancements:
24-
25-
- [[SDL 0180] Broaden Choice Uniqueness](https://github.com/smartdevicelink/sdl_java_suite/issues/811)
26-
27-
- [[SDL 0305] Homogenize TextFieldName](https://github.com/smartdevicelink/sdl_java_suite/issues/1367)
28-
29-
- [[SDL 0238] Keyboard Enhancements](https://github.com/smartdevicelink/sdl_java_suite/issues/1121)
30-
31-
- [[SDL 0267] Main Menu UI Updates](https://github.com/smartdevicelink/sdl_java_suite/issues/1246)
32-
33-
- [[SDL 0274] Add preferred FPS to VideoStreamingCapability](https://github.com/smartdevicelink/sdl_java_suite/issues/1268)
34-
35-
- [[SDL 0292] Improve VirtualDisplayEncoder for stable frame rate](https://github.com/smartdevicelink/sdl_java_suite/issues/1361)
36-
37-
- [[SDL 0255] Enhance BodyInformation vehicle data ](https://github.com/smartdevicelink/sdl_java_suite/issues/1234)
38-
39-
- [[SDL 0244] Custom Playback Rates for SetMediaClockTimer](https://github.com/smartdevicelink/sdl_java_suite/issues/1147)
40-
41-
- [Refactor FileManager to use queues ](https://github.com/smartdevicelink/sdl_java_suite/issues/1572)
42-
43-
- [Taskmaster should be updated to the latest version](https://github.com/smartdevicelink/sdl_java_suite/issues/1589)
44-
45-
- [Refactor VoiceCommandManager to use queues](https://github.com/smartdevicelink/sdl_java_suite/issues/1549)
46-
47-
- [[SDL 0323] - Align video streaming parameters with VideoStreamingCapability](https://github.com/smartdevicelink/sdl_java_suite/issues/1569)
48-
49-
- [[SDL 0285] ShowConstantTBT Description Update](https://github.com/smartdevicelink/sdl_java_suite/issues/1573)
50-
5110

5211
## Bug Fixes:
5312

54-
- [Multiframe encryption is not implemented correctly](https://github.com/smartdevicelink/sdl_java_suite/issues/1642)
55-
56-
- [Empty string bug with Menu Cell](https://github.com/smartdevicelink/sdl_java_suite/issues/1623)
57-
58-
- [CRC is not set for PutFile in FileManager](https://github.com/smartdevicelink/sdl_java_suite/issues/1622)
59-
60-
- [Fix spelling of "auxillary" in StaticIconName.java](https://github.com/smartdevicelink/sdl_java_suite/issues/1632)
61-
62-
- [Main Menu UI Updates Don't Take TextFieldName / ImageFieldName into account](https://github.com/smartdevicelink/sdl_java_suite/issues/1628)
63-
64-
- [Choice set default timeout needs to have the same behavior as the AlertManager and needs to be aligned with iOS](https://github.com/smartdevicelink/sdl_java_suite/issues/1630)
65-
66-
- [@deprecated annotation in class Javadoc makes the whole class marked as deprecated ](https://github.com/smartdevicelink/sdl_java_suite/issues/1626)
67-
68-
- [SDL failed to start video streaming if users enable WiFi on the head unit after the NaviAPP is activated](https://github.com/smartdevicelink/sdl_java_suite/issues/1235)
69-
70-
- [SDL failed to start video streaming if users enable WiFi on the phone later 150s after the NaviAPP is activated](https://github.com/smartdevicelink/sdl_java_suite/issues/1236)
71-
72-
- [Missing permission check in IntegrationValidator](https://github.com/smartdevicelink/sdl_java_suite/issues/1615)
73-
74-
- [OnRPCNotificationListener for ON_Button_Press JavaSE ](https://github.com/smartdevicelink/sdl_java_suite/issues/1397)
75-
76-
- [Remove Refresh Handler from SdlRemoteDisplay](https://github.com/smartdevicelink/sdl_java_suite/issues/858)
77-
78-
- [New thread is started for every decode operation in AudioDecoderCompat](https://github.com/smartdevicelink/sdl_java_suite/issues/1596)
79-
80-
- [Tests fail because current code state doesn't match MOBILE_API](https://github.com/smartdevicelink/sdl_java_suite/issues/1597)
81-
82-
- [Only auto-overwrite non-persistent files on RPC v4.3 and below](https://github.com/smartdevicelink/sdl_java_suite/issues/1580)
83-
84-
- [Avoid re-uploading blank artwork](https://github.com/smartdevicelink/sdl_java_suite/issues/1579)
85-
86-
- [OnServiceError for Nav and PCM is called even if no service from that type is started](https://github.com/smartdevicelink/sdl_java_suite/issues/1574)
87-
88-
- [Setting a `SDLArtwork`'s `overwrite` property to true does not work with screen manager](https://github.com/smartdevicelink/sdl_java_suite/issues/1346)
89-
90-
- [Supporting devices with SDL 2.0.0](https://github.com/smartdevicelink/sdl_java_suite/issues/1541)
13+
- [Add null checks and synch around session in LCM](https://github.com/smartdevicelink/sdl_java_suite/pull/1659)
9114

92-
- [Gradle 4.1 compatibility issues ](https://github.com/smartdevicelink/sdl_java_suite/issues/1551)
15+
- [Add NPE check in BaseChoiceSetManager](https://github.com/smartdevicelink/sdl_java_suite/pull/1648)
9316

94-
- [BitConverter NullPointerExeptions](https://github.com/smartdevicelink/sdl_java_suite/issues/193)
17+
- [Attempt to fix unreproducible ClassCastException](https://github.com/smartdevicelink/sdl_java_suite/pull/1660)
9518

96-
- [HelloSDL JavaEE 5.1 updates](https://github.com/smartdevicelink/sdl_java_suite/issues/1639)
9719

9820

9921

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Contents and timing for SDL Java Suite releases can be tracked on the [GitHub Pr
2929
Additional information about recent and upcoming SDL Releases can be found in the [SDL Evolution README](https://github.com/smartdevicelink/sdl_evolution#recent-and-upcoming-releases).
3030

3131
## SmartDeviceLink Android
32-
[ ![Download Android](https://api.bintray.com/packages/smartdevicelink/sdl_android/sdl_android/images/download.svg) ](https://search.maven.org/artifact/com.smartdevicelink/sdl_android/5.1.0/aar)
32+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_android/badge.png)](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_android/)
3333

3434
### Installation
3535

@@ -42,7 +42,7 @@ repositories {
4242
mavenCentral()
4343
}
4444
dependencies {
45-
implementation 'com.smartdevicelink:sdl_android:5.1.0'
45+
implementation 'com.smartdevicelink:sdl_android:5.+'
4646
}
4747
```
4848

@@ -67,7 +67,7 @@ Developers using Proguard to shrink and obfuscate their code should be sure to i
6767

6868
### JavaSE
6969

70-
[ ![Download JavaSE](https://api.bintray.com/packages/smartdevicelink/sdl_java_se/sdl_javase/images/download.svg) ](https://search.maven.org/artifact/com.smartdevicelink/sdl_java_se/5.1.0/jar)
70+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_java_se/badge.png)](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_java_se/)
7171

7272
The JavaSE project is meant to allow SDL compatibility for embedded applications.
7373

@@ -80,13 +80,13 @@ repositories {
8080
mavenCentral()
8181
}
8282
dependencies {
83-
implementation 'com.smartdevicelink:sdl_java_se:5.1.0'
83+
implementation 'com.smartdevicelink:sdl_java_se:5.+'
8484
}
8585
```
8686

8787
### JavaEE
8888

89-
[ ![Download JavaEE](https://api.bintray.com/packages/smartdevicelink/sdl_java_ee/sdl_javaee/images/download.svg) ](https://search.maven.org/artifact/com.smartdevicelink/sdl_java_ee/5.1.0/jar)
89+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_java_ee/badge.png)](https://maven-badges.herokuapp.com/maven-central/com.smartdevicelink/sdl_java_ee/)
9090

9191
The JavaEE project is meant to allow SDL compatibility for web applications.
9292

@@ -99,7 +99,7 @@ repositories {
9999
mavenCentral()
100100
}
101101
dependencies {
102-
implementation 'com.smartdevicelink:sdl_java_ee:5.1.0'
102+
implementation 'com.smartdevicelink:sdl_java_ee:5.+'
103103
}
104104
```
105105

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1.0
1+
5.1.1

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44

55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:4.1.1'
@@ -18,7 +18,7 @@ buildscript {
1818
allprojects {
1919
repositories {
2020
google()
21-
jcenter()
21+
mavenCentral()
2222
}
2323
}
2424

android/sdl_android/bintray.gradle

Lines changed: 0 additions & 73 deletions
This file was deleted.

android/sdl_android/bintray.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.

android/sdl_android/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
defaultConfig {
66
minSdkVersion 16
77
targetSdkVersion 30
8-
versionCode 18
8+
versionCode 19
99
versionName new File(projectDir.path, ('/../../VERSION')).text.trim()
1010
buildConfigField "String", "VERSION_NAME", '\"' + versionName + '\"'
1111
resValue "string", "SDL_LIB_VERSION", '\"' + versionName + '\"'
@@ -59,13 +59,12 @@ dependencies {
5959

6060
buildscript {
6161
repositories {
62-
jcenter()
6362
mavenCentral()
6463
}
6564
dependencies {
66-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
6765
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
66+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0'
6867
}
6968
}
7069

71-
apply from: 'bintray.gradle'
70+
apply plugin: "com.vanniktech.maven.publish"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
GROUP=com.smartdevicelink
2+
POM_ARTIFACT_ID=sdl_android
3+
VERSION_NAME=5.1.1
4+
5+
POM_NAME=sdl_android
6+
POM_PACKAGING=aar
7+
8+
POM_DESCRIPTION=The app library component of SDL is meant to run on the end user’s smart-device from within SDL enabled apps, as an embedded app, or connected to the cloud. App libraries allow the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, and TCP for Android, and cloud and embedded apps can connect through web sockets, Java Beans, and other custom transports. Once the library establishes a connection between the smart device and head-unit through the preferred method of transport, the two components are able to communicate using the SDL defined protocol. The app integrating this library project is then able to expose its functionality to the head-unit through text, media, and other interactive elements.
9+
POM_INCEPTION_YEAR=2014
10+
11+
POM_URL=https://github.com/smartdevicelink/sdl_java_suite
12+
POM_SCM_URL=https://github.com/smartdevicelink/sdl_java_suite
13+
POM_SCM_CONNECTION=scm:[email protected]:smartdevicelink/sdl_java_suite.git
14+
POM_SCM_DEV_CONNECTION=scm:[email protected]:smartdevicelink/sdl_java_suite.git
15+
16+
POM_LICENCE_NAME=BSD 3-Clause
17+
POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause
18+
POM_LICENCE_DIST=repo
19+
20+
RELEASE_REPOSITORY_URL=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
21+
SNAPSHOT_REPOSITORY_URL=https://s01.oss.sonatype.org/content/repositories/snapshots/
22+
23+
POM_DEVELOPER_ID=
24+
POM_DEVELOPER_NAME=
25+
POM_DEVELOPER_URL=
26+
27+
signing.keyId=
28+
signing.password=
29+
signing.secretKeyRingFile=
30+
SONATYPE_NEXUS_USERNAME=
31+
SONATYPE_NEXUS_PASSWORD=

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public class SdlRouterService extends Service {
141141
/**
142142
* <b> NOTE: DO NOT MODIFY THIS UNLESS YOU KNOW WHAT YOU'RE DOING.</b>
143143
*/
144-
protected static final int ROUTER_SERVICE_VERSION_NUMBER = 13;
144+
protected static final int ROUTER_SERVICE_VERSION_NUMBER = 14;
145145

146146
private static final String ROUTER_SERVICE_PROCESS = "com.smartdevicelink.router";
147147

@@ -3124,7 +3124,9 @@ public boolean removeSession(Long sessionId) {
31243124
int location = sessionIds.indexOf(sessionId);
31253125
if (location >= 0) {
31263126
Long removedSessionId = sessionIds.remove(location);
3127-
registeredTransports.remove(sessionId.intValue());
3127+
synchronized (TRANSPORT_LOCK) {
3128+
registeredTransports.remove(sessionId.intValue());
3129+
}
31283130
return removedSessionId != null;
31293131
} else {
31303132
return false;
@@ -3262,11 +3264,21 @@ protected void unregisterAllTransports(int sessionId) {
32623264
* @return
32633265
*/
32643266
private TransportType getCompatPrimaryTransport() {
3265-
if (this.registeredTransports != null && this.registeredTransports.size() > 0) {
3266-
List<TransportType> transportTypes = this.registeredTransports.valueAt(0);
3267-
if (transportTypes != null) {
3268-
if (transportTypes.get(0) != null) {
3269-
return transportTypes.get(0);
3267+
synchronized (TRANSPORT_LOCK) {
3268+
if (this.registeredTransports != null && this.registeredTransports.size() > 0) {
3269+
Object obj = this.registeredTransports.valueAt(0);
3270+
//Lint shows to ignore this call, but there are crash logs that show otherwise
3271+
if (obj != null && obj instanceof List) {
3272+
try {
3273+
List<TransportType> transportTypes = (List<TransportType>) obj;
3274+
if (transportTypes != null) {
3275+
if (transportTypes.get(0) != null) {
3276+
return transportTypes.get(0);
3277+
}
3278+
}
3279+
} catch (ClassCastException e) {
3280+
DebugTool.logError(TAG, "Unable to cast transport list", e);
3281+
}
32703282
}
32713283
}
32723284
}

android/sdl_android/src/main/res/values/sdl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<resources>
33
<string name="sdl_router_service_version_name" translatable="false">sdl_router_version</string>
44

5-
<integer name="sdl_router_service_version_value">13</integer>
5+
<integer name="sdl_router_service_version_value">14</integer>
66

77
<string name="sdl_router_service_is_custom_name" translatable="false">sdl_custom_router</string>
88
</resources>

0 commit comments

Comments
 (0)