Skip to content

Commit 5f448b0

Browse files
author
Julian Kast
committed
Merge branch 'develop' into bugfix/issue_1647
2 parents 7b2edb1 + 7551226 commit 5f448b0

18 files changed

Lines changed: 142 additions & 87 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "generator/rpc_spec"]
22
path = generator/rpc_spec
33
url = https://github.com/smartdevicelink/rpc_spec.git
4-
branch = develop
4+
branch = master

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151

5252
## Bug Fixes:
5353

54+
- [Multiframe encryption is not implemented correctly](https://github.com/smartdevicelink/sdl_java_suite/issues/1642)
55+
5456
- [Empty string bug with Menu Cell](https://github.com/smartdevicelink/sdl_java_suite/issues/1623)
5557

5658
- [CRC is not set for PutFile in FileManager](https://github.com/smartdevicelink/sdl_java_suite/issues/1622)
@@ -91,5 +93,8 @@
9193

9294
- [BitConverter NullPointerExeptions](https://github.com/smartdevicelink/sdl_java_suite/issues/193)
9395

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

95100

README.md

Lines changed: 10 additions & 10 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://bintray.com/smartdevicelink/sdl_android/sdl_android/_latestVersion)
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)
3333

3434
### Installation
3535

@@ -39,14 +39,14 @@ To compile with the latest release of SDL Android, include the following in your
3939

4040
```sh
4141
repositories {
42-
jcenter()
42+
mavenCentral()
4343
}
4444
dependencies {
45-
implementation 'com.smartdevicelink:sdl_android:4.+'
45+
implementation 'com.smartdevicelink:sdl_android:5.1.0'
4646
}
4747
```
4848

49-
For Maven or Ivy snippets please look at [Bintray](https://bintray.com/smartdevicelink/sdl_android/sdl_android)
49+
For Maven or Ivy snippets please look at [Maven Central](https://search.maven.org/artifact/com.smartdevicelink/sdl_android)
5050

5151
#### Manually
5252

@@ -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://bintray.com/smartdevicelink/sdl_java_se/sdl_javase/_latestVersion)
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)
7171

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

@@ -77,16 +77,16 @@ To compile with the latest release of SDL JavaSE, include the following in your
7777

7878
```sh
7979
repositories {
80-
jcenter()
80+
mavenCentral()
8181
}
8282
dependencies {
83-
implementation 'com.smartdevicelink:sdl_java_se:4.+'
83+
implementation 'com.smartdevicelink:sdl_java_se:5.1.0'
8484
}
8585
```
8686

8787
### JavaEE
8888

89-
[ ![Download JavaEE](https://api.bintray.com/packages/smartdevicelink/sdl_java_ee/sdl_javaee/images/download.svg) ](https://bintray.com/smartdevicelink/sdl_java_ee/sdl_javaee/_latestVersion)
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)
9090

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

@@ -96,10 +96,10 @@ To compile with the latest release of SDL JavaEE, include the following in your
9696

9797
```sh
9898
repositories {
99-
jcenter()
99+
mavenCentral()
100100
}
101101
dependencies {
102-
implementation 'com.smartdevicelink:sdl_java_ee:4.+'
102+
implementation 'com.smartdevicelink:sdl_java_ee:5.1.0'
103103
}
104104
```
105105

VERSION

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

android/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ To compile with the latest release of SDL Android, include the following in your
1010

1111
```
1212
repositories {
13-
jcenter()
13+
mavenCentral()
1414
}
1515
dependencies {
16-
implementation 'com.smartdevicelink:sdl_android:4.+'
16+
implementation 'com.smartdevicelink:sdl_android:5.1.0'
1717
}
1818
```
1919

android/hello_sdl_android/src/main/AndroidManifest.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
<!-- Required to use the USB Accessory mode -->
1313
<uses-feature android:name="android.hardware.usb.accessory" />
1414

15+
<!-- Required when targeting Android API 30+ -->
16+
<queries>
17+
<intent>
18+
<action android:name="com.smartdevicelink.router.service" />
19+
</intent>
20+
<intent>
21+
<action android:name="sdl.router.startservice" />
22+
</intent>
23+
</queries>
24+
1525
<application
1626
android:allowBackup="false"
1727
android:icon="@mipmap/ic_launcher"

android/sdl_android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ android {
4141
}
4242

4343
dependencies {
44-
api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
44+
api fileTree(dir: 'libs', include: ['*.jar'])
4545
//api 'com.livio.taskmaster:taskmaster:0.4.0'
46+
api 'com.smartdevicelink:bson_java_port:1.2.4'
4647
api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
4748
api 'androidx.annotation:annotation:1.1.0'
4849
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.2.0'
-62.6 KB
Binary file not shown.

android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public class VideoStreamManager extends BaseVideoStreamManager {
117117
private String vehicleMake = null;
118118
private boolean isEncrypted = false;
119119
private boolean withPendingRestart = false;
120+
private boolean wasCapabilityListenerAdded = false;
120121
private AbstractPacketizer videoPacketizer;
121122

122123
// INTERNAL INTERFACES
@@ -188,7 +189,10 @@ public void onNotified(RPCNotification notification) {
188189
if (VideoStreamManager.this.parameters == null) {
189190
getVideoStreamingParams();
190191
}
191-
internalInterface.getSystemCapabilityManager().addOnSystemCapabilityListener(SystemCapabilityType.VIDEO_STREAMING, systemCapabilityListener);
192+
if (!wasCapabilityListenerAdded) {
193+
wasCapabilityListenerAdded = true;
194+
internalInterface.getSystemCapabilityManager().addOnSystemCapabilityListener(SystemCapabilityType.VIDEO_STREAMING, systemCapabilityListener);
195+
}
192196
}
193197
checkState();
194198
if (hasStarted && (isHMIStateVideoStreamCapable(prevOnHMIStatus)) && (!isHMIStateVideoStreamCapable(currentOnHMIStatus))) {
@@ -872,7 +876,7 @@ private Boolean inRange(VideoStreamingCapability capability, VideoStreamingRange
872876
if (capability.getDiagonalScreenSize() != null) {
873877
double diagonal = capability.getDiagonalScreenSize();
874878
if (range.getMinimumDiagonal() != null) {
875-
if (range.getMinimumDiagonal() <= 0.0 || range.getMinimumDiagonal() > diagonal) {
879+
if (range.getMinimumDiagonal() < 0.0 || range.getMinimumDiagonal() > diagonal) {
876880
return false;
877881
}
878882
}

android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,16 @@ public void resizeView(final int newWidth, final int newHeight) {
133133
@Override
134134
public void run() {
135135
try {
136-
Constructor<? extends ViewGroup.LayoutParams> ctor =
137-
mainView.getLayoutParams().getClass().getDeclaredConstructor(int.class, int.class);
138-
mainView.setLayoutParams(ctor.newInstance(newWidth, newHeight));
139-
mainView.requestLayout();
140-
invalidate();
141-
onViewResized(newWidth, newHeight);
136+
if (mainView != null) {
137+
Constructor<? extends ViewGroup.LayoutParams> ctor =
138+
mainView.getLayoutParams().getClass().getDeclaredConstructor(int.class, int.class);
139+
mainView.setLayoutParams(ctor.newInstance(newWidth, newHeight));
140+
mainView.requestLayout();
141+
invalidate();
142+
onViewResized(newWidth, newHeight);
143+
}
142144
} catch (Exception e) {
143-
e.printStackTrace();
145+
DebugTool.logError(TAG, "Exception thrown during view resize", e);
144146
}
145147
}
146148
});

0 commit comments

Comments
 (0)