This commit is contained in:
zhongchao
2021-02-02 10:12:49 +08:00
10 changed files with 53 additions and 31 deletions

View File

@@ -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' //编译时库
}

View File

@@ -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

View File

@@ -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')
}
}

View File

@@ -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 +

View File

@@ -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}"

View File

@@ -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);
}

View File

@@ -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

View File

@@ -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

View File

@@ -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()

View File

@@ -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')
}
}