Skip to content

Commit 28b873d

Browse files
Merge branch 'release/RC_5.0.0' into feature/annotations_spec_match_test
2 parents 6435da8 + 89863e4 commit 28b873d

File tree

18 files changed

+85
-44
lines changed

18 files changed

+85
-44
lines changed

JavaSuiteFolderStructure.png

-4.52 KB
Loading

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,28 @@ SmartDeviceLink (SDL) is a standard set of protocols and messages that connect a
88

99
* The [Core](https://github.com/smartdevicelink/sdl_core) component is the software which Vehicle Manufacturers (OEMs) implement in their vehicle head units. Integrating this component into their head unit and HMI based on a set of guidelines and templates enables access to various smartphone applications.
1010
* The optional [SDL Server](https://github.com/smartdevicelink/sdl_server) can be used by Vehicle OEMs to update application policies and gather usage information for connected applications.
11-
* The [iOS](https://github.com/smartdevicelink/sdl_ios) and [Android](https://github.com/smartdevicelink/sdl_java_suite) libraries are implemented by app developers into their applications to enable command and control via the connected head unit.
12-
* The [JavaSE](https://github.com/smartdevicelink/sdl_java_suite) (Embedded) and [JavaEE](https://github.com/smartdevicelink/sdl_java_suite) (Cloud) libraries, written in Java, are implemented by app developers into their applications to enable command and control of a connected head unit.
13-
11+
* The App Libraries - [Android](https://github.com/smartdevicelink/sdl_java_suite), [iOS](https://github.com/smartdevicelink/sdl_ios), [JavaScript](https://github.com/smartdevicelink/sdl_javascript_suite), [JavaSE](https://github.com/smartdevicelink/sdl_java_suite) (Embedded), and [JavaEE](https://github.com/smartdevicelink/sdl_java_suite) (Cloud) - are implemented by app developers into their applications to enable command and control of a connected head unit.
12+
1413
Pull Requests Welcome!
1514

16-
To understand if a contribution should be entered as an Android Pull Request (or issue), or an SDL Evolution Proposal, please reference [this document](https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals_versus_issues.md).
15+
To understand if a contribution should be entered as a Java Suite Pull Request (or issue), or an SDL Evolution Proposal, please reference [this document](https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals_versus_issues.md).
1716

1817
<a href="http://www.youtube.com/watch?feature=player_embedded&v=AzdQdSCS24M" target="_blank"><img src="http://i.imgur.com/nm8UujD.png?1" alt="SmartDeviceLink" border="10" /></a>
1918

20-
## Client Proxy
19+
## App Library
2120

22-
The client libraries 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 from the cloud. The libraries allows the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, 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.
21+
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.
2322

2423
# SmartDeviceLink Java Suite
2524

26-
## SmartDeviceLink Android
27-
[ ![Download Android](https://api.bintray.com/packages/smartdevicelink/sdl_android/sdl_android/images/download.svg) ](https://bintray.com/smartdevicelink/sdl_android/sdl_android/_latestVersion)
25+
You can find guides and API Reference Documentation specific to SDL Android, JavaSE, and JavaEE libraries on [smartdevicelink.com](https://smartdevicelink.com/docs/).
2826

29-
We're still working on creating documentation for each of these individual repositories, but in the meantime, you can find more information about SmartDeviceLink [here](https://smartdevicelink.com)
27+
Contents and timing for SDL Java Suite releases can be tracked on the [GitHub Projects](https://github.com/smartdevicelink/sdl_java_suite/projects) page.
3028

31-
You can also find some branches that have yet to be merged into this GitHub project on the GENIVI page [here](http://git.projects.genivi.org/?p=smartdevicelink_android.git;a=summary).
29+
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).
30+
31+
## 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)
3233

3334
### Installation
3435

@@ -118,9 +119,6 @@ from within the project (JavaSE or JavaEE) and a JAR should be generated in the
118119
#### base Folder
119120
The base folder contains the source set that is shared between all of the compilable projects. This folder does not contain a compilable project.
120121

121-
#### baseAndroid Folder
122-
The baseAndroid folder contains symbolic links to files and folders from the base folder. This has been included since the Java Suite refactor is a minor version release and the base folder contains breaking changes for the Android project. This folder does not contain a compilable project.
123-
124122
#### android Folder
125123
The android folder contains the SDL Android library as well as the sample project for Android. Both of those are compilable projects.
126124

@@ -134,4 +132,4 @@ The JavaSE sample app is in the hello_sdl_java folder. It demonstrates an effici
134132
The javaEE folder contains the SDL JavaEE library. The JavaSE folder is used as a source set and added as a dependency. This library is based off the JavaSE library and will contain specifics for the JavaEe platform.
135133

136134
###### JavaEE Sample App
137-
The JavaEE sample app is in the hello_sdl_java_ee folder. Most of the code is commented out since the library and sample app do not include the dependencies of JavaEE due to licensing issues. However, the commented out code demonstrates how to build a Java based app into the JavaEE bean architecture.
135+
The JavaEE sample app is in the hello_sdl_java_ee folder. Most of the code is commented out since the library and sample app do not include the dependencies of JavaEE due to licensing issues. However, the commented out code demonstrates how to build a Java based app into the JavaEE bean architecture.

android/sdl_android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141

4242
dependencies {
4343
api fileTree(dir: 'libs', include: ['*.jar'])
44-
api 'com.smartdevicelink:bson_java_port:RC1_1.2.2'
44+
api 'com.smartdevicelink:bson_java_port:1.2.2'
4545
api 'com.livio.taskmaster:taskmaster:0.3.0'
4646
api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
4747
api 'androidx.annotation:annotation:1.1.0'

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/GlobalPropertyTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void testValidEnums() {
3232
GlobalProperty enumMenuIcon = GlobalProperty.valueForString(example);
3333
example = "KEYBOARDPROPERTIES";
3434
GlobalProperty enumKeyboardProperties = GlobalProperty.valueForString(example);
35-
example = "USERLOCATION";
35+
example = "USER_LOCATION";
3636
GlobalProperty enumUserLocation = GlobalProperty.valueForString(example);
3737

3838
assertNotNull("HELPPROMPT returned null", enumHelpPrompt);
@@ -42,7 +42,7 @@ public void testValidEnums() {
4242
assertNotNull("MENUNAME returned null", enumMenuName);
4343
assertNotNull("MENUICON returned null", enumMenuIcon);
4444
assertNotNull("KEYBOARDPROPERTIES returned null", enumKeyboardProperties);
45-
assertNotNull("USERLOCATION returned null", enumUserLocation);
45+
assertNotNull("USER_LOCATION returned null", enumUserLocation);
4646
}
4747

4848
/**
@@ -86,6 +86,7 @@ public void testListEnum() {
8686
enumTestList.add(GlobalProperty.MENUICON);
8787
enumTestList.add(GlobalProperty.KEYBOARDPROPERTIES);
8888
enumTestList.add(GlobalProperty.USERLOCATION);
89+
enumTestList.add(GlobalProperty.USER_LOCATION);
8990

9091
assertTrue("Enum value list does not match enum class list",
9192
enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));

base/src/main/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public void onResponse(int correlationId, RPCResponse response) {
161161

162162
}
163163

164+
@SuppressWarnings("deprecation")
164165
private void sendSetDisplayLayoutWithTemplateConfiguration(TemplateConfiguration configuration, final CompletionListener listener) {
165166
final SetDisplayLayout setLayout = new SetDisplayLayout().setDisplayLayout(configuration.getTemplate()).setDayColorScheme(configuration.getDayColorScheme()).setNightColorScheme(configuration.getNightColorScheme());
166167
setLayout.setOnRPCResponseListener(new OnRPCResponseListener() {
@@ -497,6 +498,7 @@ Show extractTextAndLayoutFromShow(Show show) {
497498
newShow.setMainField2(show.getMainField2());
498499
newShow.setMainField3(show.getMainField3());
499500
newShow.setMainField4(show.getMainField4());
501+
newShow.setMediaTrack(show.getMediaTrack());
500502
newShow.setTemplateTitle(show.getTemplateTitle());
501503
newShow.setMetadataTags(show.getMetadataTags());
502504
newShow.setAlignment(show.getAlignment());
@@ -526,6 +528,7 @@ Show assembleLayout(Show show) {
526528
return show;
527529
}
528530

531+
@SuppressWarnings("deprecation")
529532
private void updateCurrentScreenDataFromSetDisplayLayout(SetDisplayLayout setDisplayLayout) {
530533
currentScreenData.setTemplateConfiguration(new TemplateConfiguration().setTemplate(setDisplayLayout.getDisplayLayout()).setDayColorScheme(setDisplayLayout.getDayColorScheme()).setNightColorScheme(setDisplayLayout.getNightColorScheme()));
531534
if (currentScreenDataUpdateListener != null) {

base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public OnSystemRequest setFileType(FileType fileType) {
311311

312312
/**
313313
* @param offset of the data attached
314-
* @deprecated as of SmartDeviceLink 4.0
314+
* @deprecated as of SmartDeviceLink 4.0. Use {@link #setOffset(Long)} instead.
315315
*/
316316
public OnSystemRequest setOffset(Integer offset) {
317317
if (offset == null) {
@@ -377,7 +377,7 @@ public Long getLength() {
377377

378378
/**
379379
* @param length of the data attached
380-
* @deprecated as of SmartDeviceLink 4.0
380+
* @deprecated as of SmartDeviceLink 4.0. Use {@link #setLength(Long)} instead.
381381
*/
382382
public OnSystemRequest setLength(Integer length) {
383383
if (length == null) {

base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public byte[] getFileData() {
268268

269269
/**
270270
* @param offset Optional offset in bytes for resuming partial data chunks
271-
* @deprecated as of SmartDeviceLink 4.0
271+
* @deprecated as of SmartDeviceLink 4.0. Use {@link #setOffset(Long)} instead.
272272
*/
273273
public PutFile setOffset(Integer offset) {
274274
if (offset == null) {
@@ -305,7 +305,7 @@ public Long getOffset() {
305305
/**
306306
* @param length Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is
307307
* the total length of the file to be downloaded
308-
* @deprecated as of SmartDeviceLink 4.0
308+
* @deprecated as of SmartDeviceLink 4.0. Use {@link #setLength(Long)} instead.
309309
*/
310310
public PutFile setLength(Integer length) {
311311
if (length == null) {

base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* Seat control data corresponds to "SEAT" ModuleType.
4444
*/
4545
public class SeatControlData extends RPCStruct {
46+
@Deprecated
4647
public static final String KEY_ID = "id";
4748
public static final String KEY_HEATING_ENABLED = "heatingEnabled";
4849
public static final String KEY_COOLING_ENABLED = "coolingEnabled";
@@ -81,6 +82,7 @@ public SeatControlData(Hashtable<String, Object> hash) {
8182
*
8283
* @param id type of SupportedSeat.
8384
*/
85+
@Deprecated
8486
public SeatControlData(@NonNull SupportedSeat id) {
8587
this();
8688
setId(id);
@@ -91,6 +93,7 @@ public SeatControlData(@NonNull SupportedSeat id) {
9193
*
9294
* @param id
9395
*/
96+
@Deprecated
9497
public SeatControlData setId(@NonNull SupportedSeat id) {
9598
setValue(KEY_ID, id);
9699
return this;
@@ -101,6 +104,7 @@ public SeatControlData setId(@NonNull SupportedSeat id) {
101104
*
102105
* @return SupportedSeat.
103106
*/
107+
@Deprecated
104108
public SupportedSeat getId() {
105109
return (SupportedSeat) getObject(SupportedSeat.class, KEY_ID);
106110
}

base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
* <p> REJECTED</p>
9494
*
9595
* @since SmartDeviceLink 2.0
96+
* @deprecated in SmartDeviceLink 6.0
9697
*/
98+
@Deprecated
9799
public class SetDisplayLayout extends RPCRequest {
98100
public static final String KEY_DISPLAY_LAYOUT = "displayLayout";
99101
public static final String KEY_DAY_COLOR_SCHEME = "dayColorScheme";

base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
* Set Display Layout Response is sent, when SetDisplayLayout has been called
4646
*
4747
* @since SmartDeviceLink 2.0
48+
* @deprecated in SmartDeviceLink 6.0
4849
*/
50+
@Deprecated
4951
public class SetDisplayLayoutResponse extends RPCResponse {
5052
public static final String KEY_BUTTON_CAPABILITIES = "buttonCapabilities";
5153
public static final String KEY_DISPLAY_CAPABILITIES = "displayCapabilities";

0 commit comments

Comments
 (0)