[2.13.0]gradle

This commit is contained in:
zhongchao
2022-11-28 10:21:47 +08:00
parent 37f7414744
commit ebc451d00d
7 changed files with 3 additions and 26 deletions

View File

@@ -80,7 +80,6 @@ dependencies {
implementation rootProject.ext.dependencies.mogomap
implementation rootProject.ext.dependencies.mogomapapi
implementation rootProject.ext.dependencies.moduleservice
} else {
implementation project(':modules:mogo-module-common')
implementation project(':services:mogo-service-api')
@@ -93,7 +92,6 @@ dependencies {
implementation project(":libraries:mogo-map")
implementation project(":libraries:mogo-map-api")
implementation project(':libraries:mogo-adas')
}
}

View File

@@ -73,7 +73,7 @@ object TrackerSourceColorHelper {
@SuppressLint("NewApi")
fun isIPC(data: TrackedObject): Boolean {
val source = data.trackedSourceList.stream().allMatch {
it.source != 4
it.source != 2
}
return source
}
@@ -84,11 +84,11 @@ object TrackerSourceColorHelper {
@SuppressLint("NewApi")
fun isObu(data: TrackedObject): Pair<SubSource?, Boolean> {
val source = data.trackedSourceList.stream().anyMatch {
it.source == 4
it.source == 2
}
if (source) {
val first = data.trackedSourceList.stream()
.filter { trackedSource: TrackedSource -> trackedSource.source == 4 }.findFirst()
.filter { trackedSource: TrackedSource -> trackedSource.source == 2}.findFirst()
if (first.isPresent) {
val subObu = first.get().subSourceList.stream().anyMatch {
it.source == 1