10
core/README.md
Normal file
10
core/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
## 模块说明
|
||||
本模块用来编写鹰眼核型功能
|
||||
|
||||
mogo-core-data:定义基础业务所需要的数据结构
|
||||
|
||||
mogo-core-function-api:定义基础业务功能的接口
|
||||
mogo-core-function-impl:定义基础业务功能的接口的功能具体实现
|
||||
|
||||
mogo-core-function-call-api:定义基础业务暴露给外部调用的接口
|
||||
mogo-core-function-call-impl:定义基础业务暴露给外部调用的接口调用实现
|
||||
1
core/mogo-core-data/.gitignore
vendored
Normal file
1
core/mogo-core-data/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
1
core/mogo-core-data/README.md
Normal file
1
core/mogo-core-data/README.md
Normal file
@@ -0,0 +1 @@
|
||||
### 这里存放数据相关的class
|
||||
36
core/mogo-core-data/build.gradle
Normal file
36
core/mogo-core-data/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||||
versionCode Integer.valueOf(VERSION_CODE)
|
||||
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
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'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
0
core/mogo-core-data/consumer-rules.pro
Normal file
0
core/mogo-core-data/consumer-rules.pro
Normal file
3
core/mogo-core-data/gradle.properties
Normal file
3
core/mogo-core-data/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
GROUP=com.mogo.module
|
||||
POM_ARTIFACT_ID=module-data
|
||||
VERSION_CODE=1
|
||||
21
core/mogo-core-data/proguard-rules.pro
vendored
Normal file
21
core/mogo-core-data/proguard-rules.pro
vendored
Normal file
@@ -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
|
||||
5
core/mogo-core-data/src/main/AndroidManifest.xml
Normal file
5
core/mogo-core-data/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.mogo.module.data">
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.mogo.module.data.enums
|
||||
|
||||
/**
|
||||
*@author xiaoyuzhou
|
||||
*@date 2021/9/10 8:48 下午
|
||||
*/
|
||||
enum class WarningDirectionEnum(
|
||||
var direction: Int,
|
||||
var desc: String,
|
||||
) {
|
||||
ALERT_WARNING_NON(
|
||||
0,
|
||||
"关闭红色边框预警"
|
||||
),
|
||||
ALERT_WARNING_TOP(
|
||||
1,
|
||||
"正前方"
|
||||
),
|
||||
ALERT_WARNING_RIGHT(
|
||||
2,
|
||||
"正右边"
|
||||
),
|
||||
ALERT_WARNING_BOTTOM(
|
||||
3,
|
||||
"正后方"
|
||||
),
|
||||
ALERT_WARNING_LEFT(
|
||||
4,
|
||||
"正左方"
|
||||
),
|
||||
ALERT_WARNING_TOP_RIGHT(
|
||||
5,
|
||||
"右前方"
|
||||
),
|
||||
ALERT_WARNING_BOTTOM_RIGHT(
|
||||
6,
|
||||
"右后方"
|
||||
),
|
||||
ALERT_WARNING_BOTTOM_LEFT(
|
||||
7,
|
||||
"左后方"
|
||||
),
|
||||
ALERT_WARNING_TOP_LEFT(
|
||||
8,
|
||||
"左前方"
|
||||
),
|
||||
ALERT_WARNING_ALL(
|
||||
9,
|
||||
"周边"
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.mogo.module.data.model
|
||||
|
||||
/**
|
||||
*@author xiaoyuzhou
|
||||
*@date 2021/9/14 3:51 下午
|
||||
*/
|
||||
class V2XThreatIndInfo {
|
||||
// /**
|
||||
// * RV temperary vehicle ID
|
||||
// */
|
||||
// private val vehicle_id: String? = null
|
||||
// /**
|
||||
// * V2V threat status 0: update 1: add 2: delete
|
||||
// * range(0..2)
|
||||
// * [com.zhidao.support.obu.constants.ObuConstants.STATUS]
|
||||
// */
|
||||
// private val status = 0
|
||||
//
|
||||
// /**
|
||||
// * RV threat information 目前判断RV方向使用的是 ext_info 中的 target_classification 变量
|
||||
// */
|
||||
// private val threat_info: V2vThreat? = null
|
||||
//
|
||||
// /**
|
||||
// * 目前判断RV方向使用的是 ext_info 中的 target_classification 变量
|
||||
// * The extension information of V2V threat
|
||||
// */
|
||||
// private val ext_info: V2vThreatExt? = null
|
||||
//
|
||||
// /**
|
||||
// * RV basic information
|
||||
// */
|
||||
// private val basic_info: MovingObjectInfo? = null
|
||||
// /**
|
||||
// * Wgs84坐标系,线性经纬度轨迹列表
|
||||
// */
|
||||
// private val locus_list: List<com.mogo.map.MogoLatLng>? = null
|
||||
//
|
||||
// /**
|
||||
// * 高德坐标系Gcj,线性经纬度轨迹列表
|
||||
// */
|
||||
// private val gd_locus_list: List<com.mogo.map.MogoLatLng>? = null
|
||||
|
||||
}
|
||||
1
core/mogo-core-function-api/.gitignore
vendored
Normal file
1
core/mogo-core-function-api/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
36
core/mogo-core-function-api/build.gradle
Normal file
36
core/mogo-core-function-api/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||||
versionCode Integer.valueOf(VERSION_CODE)
|
||||
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
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'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
0
core/mogo-core-function-api/consumer-rules.pro
Normal file
0
core/mogo-core-function-api/consumer-rules.pro
Normal file
3
core/mogo-core-function-api/gradle.properties
Normal file
3
core/mogo-core-function-api/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
GROUP=com.mogo.module
|
||||
POM_ARTIFACT_ID=module-data
|
||||
VERSION_CODE=1
|
||||
21
core/mogo-core-function-api/proguard-rules.pro
vendored
Normal file
21
core/mogo-core-function-api/proguard-rules.pro
vendored
Normal file
@@ -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
|
||||
5
core/mogo-core-function-api/src/main/AndroidManifest.xml
Normal file
5
core/mogo-core-function-api/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.eagle.core.function.api">
|
||||
|
||||
</manifest>
|
||||
1
core/mogo-core-function-call-api/.gitignore
vendored
Normal file
1
core/mogo-core-function-call-api/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
36
core/mogo-core-function-call-api/build.gradle
Normal file
36
core/mogo-core-function-call-api/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||||
versionCode Integer.valueOf(VERSION_CODE)
|
||||
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
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'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
0
core/mogo-core-function-call-api/consumer-rules.pro
Normal file
0
core/mogo-core-function-call-api/consumer-rules.pro
Normal file
3
core/mogo-core-function-call-api/gradle.properties
Normal file
3
core/mogo-core-function-call-api/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
GROUP=com.mogo.module
|
||||
POM_ARTIFACT_ID=module-data
|
||||
VERSION_CODE=1
|
||||
21
core/mogo-core-function-call-api/proguard-rules.pro
vendored
Normal file
21
core/mogo-core-function-call-api/proguard-rules.pro
vendored
Normal file
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.eagle.core.function.call.api">
|
||||
|
||||
</manifest>
|
||||
1
core/mogo-core-function-call-impl/.gitignore
vendored
Normal file
1
core/mogo-core-function-call-impl/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
36
core/mogo-core-function-call-impl/build.gradle
Normal file
36
core/mogo-core-function-call-impl/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||||
versionCode Integer.valueOf(VERSION_CODE)
|
||||
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
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'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
3
core/mogo-core-function-call-impl/gradle.properties
Normal file
3
core/mogo-core-function-call-impl/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
GROUP=com.mogo.module
|
||||
POM_ARTIFACT_ID=module-data
|
||||
VERSION_CODE=1
|
||||
21
core/mogo-core-function-call-impl/proguard-rules.pro
vendored
Normal file
21
core/mogo-core-function-call-impl/proguard-rules.pro
vendored
Normal file
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.eagle.core.function.call.impl">
|
||||
|
||||
</manifest>
|
||||
1
core/mogo-core-function-impl/.gitignore
vendored
Normal file
1
core/mogo-core-function-impl/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
36
core/mogo-core-function-impl/build.gradle
Normal file
36
core/mogo-core-function-impl/build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||||
versionCode Integer.valueOf(VERSION_CODE)
|
||||
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
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'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
}
|
||||
|
||||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
||||
0
core/mogo-core-function-impl/consumer-rules.pro
Normal file
0
core/mogo-core-function-impl/consumer-rules.pro
Normal file
3
core/mogo-core-function-impl/gradle.properties
Normal file
3
core/mogo-core-function-impl/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
GROUP=com.mogo.module
|
||||
POM_ARTIFACT_ID=module-data
|
||||
VERSION_CODE=1
|
||||
21
core/mogo-core-function-impl/proguard-rules.pro
vendored
Normal file
21
core/mogo-core-function-impl/proguard-rules.pro
vendored
Normal file
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.eagle.core.function.impl">
|
||||
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user