Merge branch 'jj'
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -13,7 +13,7 @@
|
||||
<option name="HEAP_SIZE" value="1024" />
|
||||
<option name="LOCALE" value="zh_CN" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="12" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -50,4 +50,5 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.rxjava
|
||||
implementation rootProject.ext.dependencies.rxandroid
|
||||
implementation project(path: ':modules:mogo-realtime')
|
||||
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public class RealTimeActivity extends AppCompatActivity {
|
||||
SnapshotUploadInTime.getInstance().start(getApplicationContext(), "com.mogo.launcher", new IMogoCloudOnMsgListener() {
|
||||
@Override
|
||||
public void onMsgReceived(MogoSnapshotSetData mogoSnapshotSetData) {
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
46
app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java
Normal file
46
app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package com.mogo.cloud;
|
||||
|
||||
import com.elegant.spi.annotations.Service;
|
||||
import com.mogo.realtime.Interface.RealTimeProvider;
|
||||
import com.mogo.realtime.entity.ADASRecognizedResult;
|
||||
import com.mogo.realtime.entity.CloudLocationInfo;
|
||||
import com.mogo.realtime.socket.IMogoCloudOnMsgListener;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 描述
|
||||
* @since: 2021/1/26
|
||||
*/
|
||||
@Service(value = RealTimeProvider.class)
|
||||
class SPIRealTimeTestClass implements RealTimeProvider {
|
||||
|
||||
@Override
|
||||
public List<ADASRecognizedResult> getLastADASRecognizedResult() {
|
||||
List<ADASRecognizedResult> list = null;
|
||||
ADASRecognizedResult recognizedResult = new ADASRecognizedResult();
|
||||
recognizedResult.lat = 39.968309;
|
||||
recognizedResult.lon = 116.410871;
|
||||
recognizedResult.carId = "11";
|
||||
recognizedResult.alt = 55;
|
||||
recognizedResult.speed = 7.0;
|
||||
list.add(recognizedResult);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerOnMessageListener(IMogoCloudOnMsgListener listener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unRegisterOnMessageListener(IMogoCloudOnMsgListener listener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CloudLocationInfo> getLocationMsg() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -119,6 +119,7 @@ ext {
|
||||
|
||||
mogoutils : "com.mogo.commons:mogo-utils:2.0.12",
|
||||
cossdk : "com.zhidao.cosupload:cosuploadsdk:1.1.6",
|
||||
spi : 'com.elegant.spi:api:1.0.9' //运行时spi库
|
||||
|
||||
]
|
||||
|
||||
|
||||
@@ -25,20 +25,11 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-releases/'
|
||||
}
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-public/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
implementation project(path: ':foudations:mogo-passport')
|
||||
api rootProject.ext.dependencies.spi
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:commons:${MOGO_COMMONS_VERSION}"
|
||||
@@ -47,7 +38,5 @@ dependencies {
|
||||
implementation project(":foudations:mogo-socket")
|
||||
implementation project(":foudations:mogo-commons")
|
||||
}
|
||||
implementation 'com.elegant.spi:api:1.0.9' //运行时库
|
||||
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user