Skip to content

Commit c88ee3b

Browse files
HeniganHenigan
authored andcommitted
Merge branch 'release/RC_5.0.0' into feature/lockscreen_ui_testing
2 parents 626adac + 13046fe commit c88ee3b

28 files changed

Lines changed: 877 additions & 769 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 = master
4+
branch = develop

CHANGELOG.md

Lines changed: 79 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,108 @@
1-
# 4.12.0 Release Notes
1+
# 5.0.0 Release Notes
22

3-
### Summary:
3+
## Summary:
44
||Version|
55
|--|--|
6-
| **Protocol** | 5.2.0
7-
| **RPC** | 6.0.0
6+
| **Protocol** | 5.3.0
7+
| **RPC** | 7.0.0
88
| **Tested Targeting** | Android 29
99

10-
## Features
11-
- [[SDL 0230] SPP resource management for Android](https://github.com/smartdevicelink/sdl_java_suite/issues/1132)
10+
## Features:
1211

13-
- [[SDL 0279] Screen Manager Subscribe Buttons](https://github.com/smartdevicelink/sdl_java_suite/issues/1280)
12+
- [[SDL 0242] Subtle Alert Style](https://github.com/smartdevicelink/sdl_java_suite/issues/1120)
1413

15-
- [[SDL 0289] Support for Set Language Separately](https://github.com/smartdevicelink/sdl_java_suite/issues/1313)
14+
- [[SDL 0278] Screen Manager Template Management](https://github.com/smartdevicelink/sdl_java_suite/issues/1327)
1615

17-
- [Add a way to set the resumption hash in the managers layer](https://github.com/smartdevicelink/sdl_java_suite/issues/1400)
16+
- [[SDL 0148] Template Improvements: Additional SubMenus](https://github.com/smartdevicelink/sdl_java_suite/issues/716)
1817

19-
- [Change lock screen logo and ensure correct contrast](https://github.com/smartdevicelink/sdl_java_suite/issues/1342)
18+
- [[SDL 0268] Main Menu Updating and Pagination](https://github.com/smartdevicelink/sdl_java_suite/issues/1254)
2019

20+
- [[SDL 0152] Driver Distraction Improvements: Command List Limitations](https://github.com/smartdevicelink/sdl_java_suite/issues/729)
2121

22-
## Enhancements
23-
- [[SDL 0306] Use Taskmaster To Handle Queuing Operations in Managers](https://github.com/smartdevicelink/sdl_java_suite/issues/1368)
22+
- [[SDL 0311] Make RPC Setters Chainable](https://github.com/smartdevicelink/sdl_java_suite/issues/1421)
2423

25-
- [[SDL 0301] SDL Device Listener](https://github.com/smartdevicelink/sdl_java_suite/issues/1348)
24+
- [[SDL 0308] Add a Reason Parameter to All Protocol NAKs](https://github.com/smartdevicelink/sdl_java_suite/issues/1379)
2625

27-
- [Sdl Android should use the new LifecycleManager](https://github.com/smartdevicelink/sdl_java_suite/issues/1365)
26+
- [[SDL 0253] New vehicle data StabilityControlsStatus](https://github.com/smartdevicelink/sdl_java_suite/issues/1204)
2827

29-
- [Deprecate onError for OnRPCResponseListener](https://github.com/smartdevicelink/sdl_java_suite/pull/1404)
28+
- [[SDL 0266] New vehicle data GearStatus](https://github.com/smartdevicelink/sdl_java_suite/issues/1256)
3029

31-
- [Add ForegroundServiceType Parameter to HelloSdl Project](https://github.com/smartdevicelink/sdl_java_suite/issues/1374)
30+
- [[SDL 0261] New vehicle data WindowStatus](https://github.com/smartdevicelink/sdl_java_suite/issues/1243)
3231

33-
- [Update javadocs for PermissionManager.addListener](https://github.com/smartdevicelink/sdl_java_suite/pull/1364)
32+
- [[SDL 0257] New vehicle data HandsOffSteering](https://github.com/smartdevicelink/sdl_java_suite/issues/1224)
3433

35-
- [PermissionManager Should send callback when subscribing to listener](https://github.com/smartdevicelink/sdl_java_suite/issues/1353)
34+
- [[SDL 0256] Refactor Fuel Information Related Vehicle Data](https://github.com/smartdevicelink/sdl_java_suite/issues/1223)
3635

37-
- [Move textFields / imageFields == null checking from ScreenManager to SystemCapabilityManager](https://github.com/smartdevicelink/sdl_java_suite/issues/1335)
36+
- [[SDL 0273] WebEngine Projection mode](https://github.com/smartdevicelink/sdl_java_suite/issues/1375)
3837

39-
- [Change Http to Https](https://github.com/smartdevicelink/sdl_java_suite/issues/1333)
38+
- [[SDL 0202] Supported Character Sets](https://github.com/smartdevicelink/sdl_java_suite/issues/950)
4039

41-
- [Move src/java/main/android folder](https://github.com/smartdevicelink/sdl_java_suite/issues/1377)
40+
## Enhancements:
4241

43-
- [Classes that need to be removed in next major release should be deprecated ](https://github.com/smartdevicelink/sdl_java_suite/issues/1362)
42+
- [[SDL 0286] Java Suite Cleanup](https://github.com/smartdevicelink/sdl_java_suite/issues/1306)
4443

45-
- [OnSdlChoiceChosen contains duplicate class definitions](https://github.com/smartdevicelink/sdl_java_suite/issues/14)
44+
- [Android X support](https://github.com/smartdevicelink/sdl_java_suite/issues/1094)
4645

47-
- [The name of setter and getter in OnButtonPress are ambiguous](https://github.com/smartdevicelink/sdl_java_suite/issues/547)
46+
- [RPC Generator should use @deprecated annotation in JavaDocs when applicable](https://github.com/smartdevicelink/sdl_java_suite/issues/1448)
4847

48+
- [RPC Generator needs to be updated to generate correct Android X imports](https://github.com/smartdevicelink/sdl_java_suite/issues/1444)
4949

50-
## Bug Fixes
50+
- [onError should be removed from OnRPCResponseListener](https://github.com/smartdevicelink/sdl_java_suite/issues/1455)
5151

52-
- [presentChoiceSet failed with "INVALID_ID, null"](https://github.com/smartdevicelink/sdl_java_suite/issues/1336)
52+
- [SystemCapabilityManager & HapticInterfaceManager should be moved to the managers package](https://github.com/smartdevicelink/sdl_java_suite/issues/1432)
5353

54-
- [ Android app will not receive the notification of HU when the language is switched on the HU side.](https://github.com/smartdevicelink/sdl_java_suite/issues/1372)
54+
- [[SDL 0193] Update SDL-Android minimum SDK](https://github.com/smartdevicelink/sdl_java_suite/issues/835)
5555

56-
- [If an empty array is set for voice commands on the SDLMenuCell the AddCommand is rejected](https://github.com/smartdevicelink/sdl_java_suite/issues/1341)
56+
- [Refactor Text & Graphic Manager](https://github.com/smartdevicelink/sdl_java_suite/issues/1464)
5757

58-
- [Disconnecting a cloud app doesn't free the port](https://github.com/smartdevicelink/sdl_java_suite/issues/1339)
58+
- [Refactor session and protocol interfaces](https://github.com/smartdevicelink/sdl_java_suite/pull/1430)
59+
60+
- [Remove SdlProxy classes](https://github.com/smartdevicelink/sdl_java_suite/pull/1471)
61+
62+
- [Remove FrameData Class](https://github.com/smartdevicelink/sdl_java_suite/pull/1466)
63+
64+
- [Two StreamPacketizer classes](https://github.com/smartdevicelink/sdl_java_suite/issues/1272)
65+
66+
- [SdlFile in javaSE should have a constructor that takes URI as file source](https://github.com/smartdevicelink/sdl_java_suite/issues/1469)
67+
68+
- [The default value for overwrite property in SdlFile should be false to align with iOS ](https://github.com/smartdevicelink/sdl_java_suite/issues/1451)
69+
70+
- [Deprecated RPC APIs that don't exist in the spec should be removed ](https://github.com/smartdevicelink/sdl_java_suite/issues/1446)
71+
72+
- [[SDL 0200] - Removing URL Parameter Max Length](https://github.com/smartdevicelink/sdl_java_suite/issues/906)
73+
74+
- [Integration validator](https://github.com/smartdevicelink/sdl_java_suite/pull/1436)
75+
76+
- [Gradle dependencies needs to be updates](https://github.com/smartdevicelink/sdl_java_suite/issues/1459)
77+
78+
## Bug Fixes:
79+
80+
- [LockScreen behavior is incorrect for Display Always and Dismissible](https://github.com/smartdevicelink/sdl_java_suite/issues/1515)
81+
82+
- [NPE with SoftButtonCapabilities using Core](https://github.com/smartdevicelink/sdl_java_suite/issues/1499)
83+
84+
- [NPE Enum doesn't exist](https://github.com/smartdevicelink/sdl_java_suite/issues/1495)
85+
86+
- [NullPointerException While updating Image/Text after layout Change.](https://github.com/smartdevicelink/sdl_java_suite/issues/1465)
87+
88+
- [javaSE and javaEE links in the readme file don't reference the latest version of the library ](https://github.com/smartdevicelink/sdl_java_suite/issues/1449)
89+
90+
- [ScreenManager doesn't work when app register on backup transport](https://github.com/smartdevicelink/sdl_java_suite/issues/1518)
91+
92+
- [Difficult to import sdl_android as source library](https://github.com/smartdevicelink/sdl_java_suite/issues/1048)
93+
94+
- [Some cloud apps fail to download icons ](https://github.com/smartdevicelink/sdl_java_suite/issues/1513)
95+
96+
- [ANRs (Application Not Responding) occur when switching from App1 to App2 on HU.](https://github.com/smartdevicelink/sdl_java_suite/issues/1398)
97+
98+
- [Lists with initial values of null are not returned properly in RPCs](https://github.com/smartdevicelink/sdl_java_suite/issues/1473)
99+
100+
- [ClassCastException when calling RPC getter method returning Float type](https://github.com/smartdevicelink/sdl_java_suite/issues/1407)
101+
102+
- [TransportManager.exitLegacyMode () : NullPointerException ](https://github.com/smartdevicelink/sdl_java_suite/issues/1412)
103+
104+
- [RPC Generator is not generating the corresponding Javadoc for min & max attributes ](https://github.com/smartdevicelink/sdl_java_suite/issues/1438)
105+
106+
- [RPC Generator is generating enum values with wrong capitalization](https://github.com/smartdevicelink/sdl_java_suite/issues/1425)
107+
108+
- [RPC generator strips text after @TODO ](https://github.com/smartdevicelink/sdl_java_suite/issues/1506)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.12.0
1+
RC2_5.0.0

android/hello_sdl_android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ android {
1717
}
1818
}
1919
flavorDimensions "default"
20-
productFlavors{
20+
productFlavors {
2121
multi_sec_high {
2222
buildConfigField 'String', 'TRANSPORT', '"MULTI"'
2323
buildConfigField 'String', 'SECURITY', '"HIGH"'

android/hello_sdl_android/src/main/AndroidManifest.xml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.sdl.hellosdlandroid">
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.sdl.hellosdlandroid">
55

66
<uses-permission android:name="android.permission.BLUETOOTH" />
77
<uses-permission android:name="android.permission.INTERNET" />
@@ -20,16 +20,17 @@
2020
tools:ignore="DeepLinks">
2121
<activity
2222
android:name=".MainActivity"
23-
android:label="@string/app_name" >
23+
android:label="@string/app_name">
2424
<intent-filter>
2525
<action android:name="android.intent.action.MAIN" />
2626

2727
<category android:name="android.intent.category.LAUNCHER" />
2828
</intent-filter>
2929
</activity>
3030

31-
<activity android:name="com.smartdevicelink.transport.USBAccessoryAttachmentActivity"
32-
android:launchMode="singleTop">
31+
<activity
32+
android:name="com.smartdevicelink.transport.USBAccessoryAttachmentActivity"
33+
android:launchMode="singleTop">
3334
<intent-filter>
3435
<action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" />
3536
</intent-filter>
@@ -49,23 +50,27 @@
4950
android:process="com.smartdevicelink.router"
5051
android:foregroundServiceType="connectedDevice">
5152
<intent-filter>
52-
<action android:name="com.smartdevicelink.router.service"/>
53+
<action android:name="com.smartdevicelink.router.service" />
5354
</intent-filter>
54-
<meta-data android:name="@string/sdl_router_service_version_name" android:value="@integer/sdl_router_service_version_value" />
55+
<meta-data
56+
android:name="@string/sdl_router_service_version_name"
57+
android:value="@integer/sdl_router_service_version_value" />
5558
</service>
59+
5660
<receiver
5761
android:name=".SdlReceiver"
5862
android:enabled="true"
5963
android:exported="true"
6064
tools:ignore="ExportedReceiver">
6165
<intent-filter>
62-
<action android:name="com.smartdevicelink.USB_ACCESSORY_ATTACHED"/> <!--For AOA -->
66+
<action android:name="com.smartdevicelink.USB_ACCESSORY_ATTACHED" /> <!--For AOA -->
6367
<action android:name="android.bluetooth.device.action.ACL_CONNECTED" />
6468
<action android:name="sdl.router.startservice" />
6569
</intent-filter>
6670
</receiver>
67-
<activity android:name="com.smartdevicelink.managers.lockscreen.SDLLockScreenActivity"
68-
android:launchMode="singleTop"/>
71+
<activity
72+
android:name="com.smartdevicelink.managers.lockscreen.SDLLockScreenActivity"
73+
android:launchMode="singleTop" />
6974
</application>
7075

7176
</manifest>

android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid/MainActivity.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,35 @@
99

1010
public class MainActivity extends AppCompatActivity {
1111

12-
@Override
13-
protected void onCreate(Bundle savedInstanceState) {
14-
super.onCreate(savedInstanceState);
15-
setContentView(R.layout.activity_main);
16-
//If we are connected to a module we want to start our SdlService
17-
if(BuildConfig.TRANSPORT.equals("MULTI") || BuildConfig.TRANSPORT.equals("MULTI_HB")) {
18-
SdlReceiver.queryForConnectedService(this);
19-
}else if(BuildConfig.TRANSPORT.equals("TCP")) {
20-
Intent proxyIntent = new Intent(this, SdlService.class);
21-
startService(proxyIntent);
22-
}
23-
}
12+
@Override
13+
protected void onCreate(Bundle savedInstanceState) {
14+
super.onCreate(savedInstanceState);
15+
setContentView(R.layout.activity_main);
16+
//If we are connected to a module we want to start our SdlService
17+
if (BuildConfig.TRANSPORT.equals("MULTI") || BuildConfig.TRANSPORT.equals("MULTI_HB")) {
18+
SdlReceiver.queryForConnectedService(this);
19+
} else if (BuildConfig.TRANSPORT.equals("TCP")) {
20+
Intent proxyIntent = new Intent(this, SdlService.class);
21+
startService(proxyIntent);
22+
}
23+
}
2424

25-
@Override
26-
public boolean onCreateOptionsMenu(Menu menu) {
27-
// Inflate the menu; this adds items to the action bar if it is present.
28-
getMenuInflater().inflate(R.menu.main, menu);
29-
return true;
30-
}
25+
@Override
26+
public boolean onCreateOptionsMenu(Menu menu) {
27+
// Inflate the menu; this adds items to the action bar if it is present.
28+
getMenuInflater().inflate(R.menu.main, menu);
29+
return true;
30+
}
3131

32-
@Override
33-
public boolean onOptionsItemSelected(MenuItem item) {
34-
// Handle action bar item clicks here. The action bar will
35-
// automatically handle clicks on the Home/Up button, so long
36-
// as you specify a parent activity in AndroidManifest.xml.
37-
int id = item.getItemId();
38-
if (id == R.id.action_settings) {
39-
return true;
40-
}
41-
return super.onOptionsItemSelected(item);
42-
}
32+
@Override
33+
public boolean onOptionsItemSelected(MenuItem item) {
34+
// Handle action bar item clicks here. The action bar will
35+
// automatically handle clicks on the Home/Up button, so long
36+
// as you specify a parent activity in AndroidManifest.xml.
37+
int id = item.getItemId();
38+
if (id == R.id.action_settings) {
39+
return true;
40+
}
41+
return super.onOptionsItemSelected(item);
42+
}
4343
}

android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid/SdlReceiver.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88
import com.smartdevicelink.transport.SdlRouterService;
99
import com.smartdevicelink.util.DebugTool;
1010

11-
public class SdlReceiver extends SdlBroadcastReceiver {
12-
private static final String TAG = "SdlBroadcastReceiver";
11+
public class SdlReceiver extends SdlBroadcastReceiver {
12+
private static final String TAG = "SdlBroadcastReceiver";
1313

14-
@Override
15-
public void onSdlEnabled(Context context, Intent intent) {
16-
DebugTool.logInfo(TAG, "SDL Enabled");
17-
intent.setClass(context, SdlService.class);
14+
@Override
15+
public void onSdlEnabled(Context context, Intent intent) {
16+
DebugTool.logInfo(TAG, "SDL Enabled");
17+
intent.setClass(context, SdlService.class);
1818

19-
// SdlService needs to be foregrounded in Android O and above
20-
// This will prevent apps in the background from crashing when they try to start SdlService
21-
// Because Android O doesn't allow background apps to start background services
22-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
23-
context.startForegroundService(intent);
24-
} else {
25-
context.startService(intent);
26-
}
27-
}
19+
// SdlService needs to be foregrounded in Android O and above
20+
// This will prevent apps in the background from crashing when they try to start SdlService
21+
// Because Android O doesn't allow background apps to start background services
22+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
23+
context.startForegroundService(intent);
24+
} else {
25+
context.startService(intent);
26+
}
27+
}
2828

29-
@Override
30-
public Class<? extends SdlRouterService> defineLocalSdlRouterClass() {
31-
return com.sdl.hellosdlandroid.SdlRouterService.class;
32-
}
29+
@Override
30+
public Class<? extends SdlRouterService> defineLocalSdlRouterClass() {
31+
return com.sdl.hellosdlandroid.SdlRouterService.class;
32+
}
3333

34-
@Override
35-
public void onReceive(Context context, Intent intent) {
36-
super.onReceive(context, intent); // Required if overriding this method
37-
}
34+
@Override
35+
public void onReceive(Context context, Intent intent) {
36+
super.onReceive(context, intent); // Required if overriding this method
37+
}
3838
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package com.sdl.hellosdlandroid;
22

33

4-
public class SdlRouterService extends com.smartdevicelink.transport.SdlRouterService {
5-
4+
public class SdlRouterService extends com.smartdevicelink.transport.SdlRouterService {
65

76

87
}

0 commit comments

Comments
 (0)