diff --git a/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClientConfig.java b/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClientConfig.java index ab61de0..d822dbf 100644 --- a/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClientConfig.java +++ b/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClientConfig.java @@ -25,6 +25,10 @@ public class MoGoAiCloudClientConfig { * APP key */ private String thirdPartyAppKey = ""; + /** + * (可选,有则传,有默认值;为后续扩展使用,第三方车机可能使用自定义的pub_key, 此key由server端分配) + */ + private String authPubKey = ""; /** * 签名信息 @@ -102,6 +106,24 @@ public class MoGoAiCloudClientConfig { this.thirdPartyAppKey = thirdPartyAppKey; } + /** + * 获取授权公钥匙 + * + * @return 授权公钥匙 + */ + public String getAuthPubKey() { + return authPubKey; + } + + /** + * 设置授权公钥匙 + * + * @param authPubKey 授权公钥匙 + */ + public void setAuthPubKey(String authPubKey) { + this.authPubKey = authPubKey; + } + /** * 获取AI云平台分配给三方应用的签名密钥,需要从AI云平台申请 * @@ -289,6 +311,7 @@ public class MoGoAiCloudClientConfig { "sNetMode=" + sNetMode + ", thirdPartyDeviceId='" + thirdPartyDeviceId + '\'' + ", thirdPartyAppKey='" + thirdPartyAppKey + '\'' + + ", authPubKey='" + authPubKey + '\'' + ", thirdPartySignSecret='" + thirdPartySignSecret + '\'' + ", thirdLogin=" + thirdLogin + ", isShowDebugLog=" + isShowDebugLog + diff --git a/foudations/mogo-socket/build.gradle b/foudations/mogo-socket/build.gradle index 959b1cc..3d816a0 100644 --- a/foudations/mogo-socket/build.gradle +++ b/foudations/mogo-socket/build.gradle @@ -27,9 +27,9 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) // 长链 - api 'com.zhidao.socket:built-in-socket:1.0.21' + api 'com.zhidao.socket:built-in-socket:1.0.22' // 上报位置 - implementation 'com.zhidao.locupload:loc-upload-sdk:1.1.8' + implementation 'com.zhidao.locupload:loc-upload-sdk:1.1.9' if (Boolean.valueOf(RELEASE)) { implementation "com.mogo.cloud:passport:${MOGO_PASSPORT_VERSION}" diff --git a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java index b13bfea..2d506ee 100644 --- a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java +++ b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java @@ -88,6 +88,7 @@ public class SocketManager implements IMogoCloudSocketManager, Callback { .setOpenAnalytics(true) .setSn(cloudClientConfig.getSn()) .setToken(cloudClientConfig.getToken()) + .setAuthPubKey(cloudClientConfig.getAuthPubKey()) .setDebug(cloudClientConfig.isShowDebugLog()); SocketClient.getInstance().start(context); }