[3.4.0-map-sdk] fix bug
This commit is contained in:
@@ -39,7 +39,7 @@ buildscript {
|
|||||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
|
||||||
classpath "com.mogo.sticky:service:${plugin_version}"
|
classpath "com.mogo.sticky:service:${plugin_version}"
|
||||||
classpath "io.github.knight-zxw:lancet-plugin:${lancetx_plugin_version}"
|
classpath "io.github.knight-zxw:lancet-plugin:${lancetx_plugin_version}"
|
||||||
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.21.0"
|
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0"
|
||||||
classpath 'com.mogo.cloud:matrix:1.0.0'
|
classpath 'com.mogo.cloud:matrix:1.0.0'
|
||||||
// classpath 'com.bytedance.btrace:rhea-gradle-plugin:2.0.0'
|
// classpath 'com.bytedance.btrace:rhea-gradle-plugin:2.0.0'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.21.0"
|
id("io.gitlab.arturbosch.detekt") version "1.15.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
def pmdConfigPath = rootProject.file("codequality").path
|
def pmdConfigPath = rootProject.file("codequality").path
|
||||||
@@ -8,9 +8,12 @@ detekt{
|
|||||||
//将配置文件应用于detekt的默认配置文件之上
|
//将配置文件应用于detekt的默认配置文件之上
|
||||||
buildUponDefaultConfig = true
|
buildUponDefaultConfig = true
|
||||||
source = files(
|
source = files(
|
||||||
|
"src/main/kotlin",
|
||||||
"src/main/java",
|
"src/main/java",
|
||||||
"src/jinlvvan/java",
|
"src/jinlvvan/java",
|
||||||
"src/driverm1/java"
|
"src/jinlvvan/kotlin",
|
||||||
|
"src/driverm1/java",
|
||||||
|
"src/driverm1/kotlin"
|
||||||
)
|
)
|
||||||
//规则集
|
//规则集
|
||||||
config.setFrom("${pmdConfigPath}/detekt.yml")
|
config.setFrom("${pmdConfigPath}/detekt.yml")
|
||||||
@@ -27,6 +30,10 @@ detekt{
|
|||||||
// ignoredVariants = ["productionRelease"]
|
// ignoredVariants = ["productionRelease"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0"
|
||||||
|
}
|
||||||
|
|
||||||
tasks.detekt.jvmTarget = "1.8"
|
tasks.detekt.jvmTarget = "1.8"
|
||||||
|
|
||||||
tasks.named("detekt").configure {
|
tasks.named("detekt").configure {
|
||||||
@@ -36,4 +43,11 @@ tasks.named("detekt").configure {
|
|||||||
html.required.set(true)
|
html.required.set(true)
|
||||||
html.outputLocation.set(destination)
|
html.outputLocation.set(destination)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project.afterEvaluate {
|
||||||
|
if (tasks.findByName("preBuild") != null) {
|
||||||
|
project.preBuild.dependsOn tasks.findByName("detekt")
|
||||||
|
println("project.preBuild.dependsOn tasks.findByName(\"detekt\")")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -150,9 +150,6 @@ class MogoTrafficLightManager : IMoGoChassisLocationGCJ02Listener,
|
|||||||
|
|
||||||
private fun outOfCrossRange(){
|
private fun outOfCrossRange(){
|
||||||
CallerLogger.d(M_V2X + TAG, "离开路口 , inRange:$inRange")
|
CallerLogger.d(M_V2X + TAG, "离开路口 , inRange:$inRange")
|
||||||
if(!inRange){
|
|
||||||
return
|
|
||||||
}
|
|
||||||
CallerTrafficLightListenerManager.invokeEnterCrossRoad(false)
|
CallerTrafficLightListenerManager.invokeEnterCrossRoad(false)
|
||||||
inRange = false
|
inRange = false
|
||||||
trafficLightResult = null
|
trafficLightResult = null
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
ext {
|
ext {
|
||||||
gradle_version = '3.5.3'
|
gradle_version = '4.0.1'
|
||||||
kotlin_plugin_version = '1.5.30'
|
kotlin_plugin_version = '1.5.30'
|
||||||
plugin_version = '10.0.0_mogo'
|
plugin_version = '10.0.0_mogo'
|
||||||
service_chain_version = '5.3.6'
|
service_chain_version = '5.3.6'
|
||||||
|
|||||||
Reference in New Issue
Block a user