erge branch 'master' of http://gitlab.zhidaoauto.com/ecos/app/MoGoAiCloudSdk
This commit is contained in:
@@ -19,7 +19,7 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug{
|
||||
debug {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
@@ -40,19 +40,16 @@ dependencies {
|
||||
|
||||
implementation rootProject.ext.dependencies.androidxappcompat
|
||||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}"
|
||||
implementation "com.mogo.cloud:socket:${MOGO_SOCKET_VERSION}"
|
||||
implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}"
|
||||
} else {
|
||||
implementation project(":foudations:mogo-socket")
|
||||
implementation project(":foudations:mogo-network")
|
||||
implementation project(path: ':modules:mogo-tanlu')
|
||||
}
|
||||
|
||||
implementation rootProject.ext.dependencies.rxjava
|
||||
implementation rootProject.ext.dependencies.rxandroid
|
||||
implementation project(path: ':modules:mogo-realtime')
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}"
|
||||
implementation "com.mogo.cloud:realtime:${MOGO_REALTIME_VERSION}"
|
||||
} else {
|
||||
implementation project(":modules:mogo-tanlu")
|
||||
implementation project(":modules:mogo-realtime")
|
||||
}
|
||||
|
||||
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
|
||||
}
|
||||
@@ -17,7 +17,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:4.0.2"
|
||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
||||
// 对kotlin生成doc
|
||||
|
||||
@@ -34,7 +34,7 @@ dependencies {
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
api "com.mogo.cloud:httpdns:${MOGO_HTTPDNS_VERSION}"
|
||||
} else {
|
||||
api project(path: ':foudations:mogo-httpdns')
|
||||
api project(':foudations:mogo-httpdns')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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 +
|
||||
|
||||
@@ -26,10 +26,10 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
// 长链
|
||||
api 'com.zhidao.socket:built-in-socket:1.0.21'
|
||||
// 上报位置
|
||||
implementation 'com.zhidao.locupload:loc-upload-sdk:1.1.8'
|
||||
// 长链 http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=48956182
|
||||
api 'com.zhidao.socket:built-in-socket:1.0.22'
|
||||
// 上报位置 http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=48956200
|
||||
implementation 'com.zhidao.locupload:loc-upload-sdk:1.1.9'
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:passport:${MOGO_PASSPORT_VERSION}"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ PASSWORD=xintai2018
|
||||
# 编译模式: false - 依赖本地版本, true - 依赖 maven 版本
|
||||
RELEASE=false
|
||||
# AI CLOUD 云平台
|
||||
MOGO_NETWORK_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_HTTPDNS_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_PASSPORT_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_SOCKET_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_REALTIME_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_TANLU_VERSION=1.0.7-SNAPSHOT
|
||||
MOGO_NETWORK_VERSION=1.0.8-SNAPSHOT
|
||||
MOGO_HTTPDNS_VERSION=1.0.8-SNAPSHOT
|
||||
MOGO_PASSPORT_VERSION=1.0.8-SNAPSHOT
|
||||
MOGO_SOCKET_VERSION=1.0.8-SNAPSHOT
|
||||
MOGO_REALTIME_VERSION=1.0.8-SNAPSHOT
|
||||
MOGO_TANLU_VERSION=1.0.8-SNAPSHOT
|
||||
|
||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
|
||||
|
||||
@@ -28,15 +28,16 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
implementation project(path: ':foudations:mogo-passport')
|
||||
api rootProject.ext.dependencies.spi
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}"
|
||||
implementation "com.mogo.cloud:socket:${MOGO_SOCKET_VERSION}"
|
||||
} else {
|
||||
implementation project(":foudations:mogo-socket")
|
||||
implementation project(":foudations:mogo-network")
|
||||
implementation project(":foudations:mogo-socket")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
|
||||
@@ -38,9 +38,9 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.videoprocessor
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}"
|
||||
api "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}"
|
||||
} else {
|
||||
implementation project(path: ':foudations:mogo-network')
|
||||
api project(':foudations:mogo-network')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user