架构升级增加目录结构

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-16 15:42:53 +08:00
parent 58a2576375
commit 390fa9a2c2
39 changed files with 342 additions and 47 deletions

View File

@@ -1 +0,0 @@
/build

View File

@@ -1 +0,0 @@
### 这里存放数据相关的class

View File

@@ -1,36 +0,0 @@
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()

View File

@@ -1,3 +0,0 @@
GROUP=com.mogo.module
POM_ARTIFACT_ID=module-data
VERSION_CODE=1

View File

@@ -1,21 +0,0 @@
# 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

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogo.mogo.module.data">
</manifest>

View File

@@ -1,51 +0,0 @@
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,
"周边"
)
}

View File

@@ -1,44 +0,0 @@
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
}

View File

@@ -68,7 +68,7 @@ dependencies {
api project(':services:mogo-service-api')
implementation project(':modules:mogo-module-common')
implementation project(':modules:mogo-module-service')
implementation project(':modules:mogo-module-data')
implementation project(':core:mogo-core-data')
}
}

View File

@@ -59,7 +59,7 @@ dependencies {
api project(":foudations:mogo-utils")
api project(':services:mogo-service-api')
implementation project(':modules:mogo-module-common')
implementation project(':modules:mogo-module-data')
implementation project(':core:mogo-core-data')
}
implementation rootProject.ext.dependencies.mogoobu