From 1c5b2761bf7502a19190c60b51473039605b54c5 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Thu, 27 Jan 2022 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?[Change]=20=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 + gradle.properties | 2 + libraries/mogo-telematic/.gitignore | 1 + libraries/mogo-telematic/README.md | 6 +++ libraries/mogo-telematic/build.gradle | 42 +++++++++++++++++++ libraries/mogo-telematic/consumer-rules.pro | 4 ++ libraries/mogo-telematic/gradle.properties | 4 ++ libraries/mogo-telematic/proguard-rules.pro | 21 ++++++++++ .../src/main/AndroidManifest.xml | 7 ++++ .../src/main/java/com/mogo/telematic/占位 | 0 modules.txt | 1 + settings.gradle | 10 +++-- 12 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 libraries/mogo-telematic/.gitignore create mode 100644 libraries/mogo-telematic/README.md create mode 100644 libraries/mogo-telematic/build.gradle create mode 100644 libraries/mogo-telematic/consumer-rules.pro create mode 100644 libraries/mogo-telematic/gradle.properties create mode 100644 libraries/mogo-telematic/proguard-rules.pro create mode 100644 libraries/mogo-telematic/src/main/AndroidManifest.xml create mode 100644 libraries/mogo-telematic/src/main/java/com/mogo/telematic/占位 diff --git a/app/build.gradle b/app/build.gradle index 8744c96..c4d464c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -62,12 +62,14 @@ dependencies { implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}" implementation "com.mogo.cloud:realtime:${MOGO_REALTIME_VERSION}" implementation "com.mogo.cloud:trafficlive:${MOGO_TRAFFICLIVE_VERSION}" + implementation "com.mogo.cloud:telematic:${MOGO_TELEMATIC_VERSION}" implementation "com.mogo.v2x:v2x:${MOGO_V2X_VERSION}" } else { implementation project(":foudations:mogo-location") implementation project(":modules:mogo-tanlu") implementation project(":modules:mogo-realtime") implementation project(":modules:mogo-trafficlive") + implementation project(":libraries:mogo-telematic") implementation project(":foudations:mogo-v2x") } diff --git a/gradle.properties b/gradle.properties index 67e812b..64097d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -58,3 +58,5 @@ MOGO_LOCATION_VERSION=1.3.21 # v2x MOGO_V2X_VERSION=1.0.2 +# 远程通讯模块 +MOGO_TELEMATIC_VERSION=1.3.17 diff --git a/libraries/mogo-telematic/.gitignore b/libraries/mogo-telematic/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/libraries/mogo-telematic/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/libraries/mogo-telematic/README.md b/libraries/mogo-telematic/README.md new file mode 100644 index 0000000..52177d7 --- /dev/null +++ b/libraries/mogo-telematic/README.md @@ -0,0 +1,6 @@ +### 模块说明 +此模块处理:司机-乘客-报站屏,之间的数据通讯 +本模块只做处理多屏幕之间的通讯桥梁,不承接任何业务逻辑 +WIKI: +http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=71632333 +http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=71634646 \ No newline at end of file diff --git a/libraries/mogo-telematic/build.gradle b/libraries/mogo-telematic/build.gradle new file mode 100644 index 0000000..413f28e --- /dev/null +++ b/libraries/mogo-telematic/build.gradle @@ -0,0 +1,42 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion rootProject.ext.android.compileSdkVersion + + defaultConfig { + minSdkVersion rootProject.ext.android.minSdkVersion + targetSdkVersion rootProject.ext.android.targetSdkVersion + + versionCode 1 + versionName "${MOGO_REALTIME_VERSION}" + + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + api rootProject.ext.dependencies.spi + + + if (Boolean.valueOf(RELEASE)) { + + } else { + + } + +} + +apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() diff --git a/libraries/mogo-telematic/consumer-rules.pro b/libraries/mogo-telematic/consumer-rules.pro new file mode 100644 index 0000000..6d97df7 --- /dev/null +++ b/libraries/mogo-telematic/consumer-rules.pro @@ -0,0 +1,4 @@ +-keep class com.mogo.realtime.entity.*{*;} +-keep class com.mogo.realtime.api.*{*;} +-keep class com.mogo.realtime.socket.IMogoCloudOnMsgListener{*;} +-keep class com.mogo.realtime.util.MogoLatLng{*;} diff --git a/libraries/mogo-telematic/gradle.properties b/libraries/mogo-telematic/gradle.properties new file mode 100644 index 0000000..cde9f38 --- /dev/null +++ b/libraries/mogo-telematic/gradle.properties @@ -0,0 +1,4 @@ +GROUP=com.mogo.cloud +POM_ARTIFACT_ID=telematic +VERSION_CODE=1 +VERSION_NAME=1.0.1-SNAPSHOT \ No newline at end of file diff --git a/libraries/mogo-telematic/proguard-rules.pro b/libraries/mogo-telematic/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/libraries/mogo-telematic/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/libraries/mogo-telematic/src/main/AndroidManifest.xml b/libraries/mogo-telematic/src/main/AndroidManifest.xml new file mode 100644 index 0000000..a77ec00 --- /dev/null +++ b/libraries/mogo-telematic/src/main/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/libraries/mogo-telematic/src/main/java/com/mogo/telematic/占位 b/libraries/mogo-telematic/src/main/java/com/mogo/telematic/占位 new file mode 100644 index 0000000..e69de29 diff --git a/modules.txt b/modules.txt index 5dceef1..e482b29 100644 --- a/modules.txt +++ b/modules.txt @@ -1,3 +1,4 @@ +:libraries:mogo-telematic :foudations:mogo-httpdns :foudations:mogo-passport :foudations:mogo-network diff --git a/settings.gradle b/settings.gradle index e010034..5fb0d11 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,12 +1,16 @@ include ':foudations:mogo-location' -include ':modules:mogo-trafficlive' include ':foudations:mogo-live' include ':foudations:mogo-socket' -include ':modules:mogo-realtime' -include ':modules:mogo-tanlu' include ':foudations:mogo-network' include ':foudations:mogo-httpdns' include ':foudations:mogo-passport' + +include ':modules:mogo-trafficlive' +include ':modules:mogo-realtime' +include ':modules:mogo-tanlu' + +include ':libraries:mogo-telematic' + include ':app' rootProject.name = "MoGoAiCloudSdk" include ':foudations:mogo-v2x'