修复location引起的无法编译问题

This commit is contained in:
董宏宇
2021-07-22 15:24:25 +08:00
parent 831e7ec43c
commit d6d1261198
4 changed files with 31 additions and 9 deletions

2
.idea/gradle.xml generated
View File

@@ -5,7 +5,7 @@
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="delegatedBuild" value="true" />
<option name="testRunner" value="GRADLE" />
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8" />

View File

@@ -8,6 +8,7 @@ import com.mogo.cloud.socket.IMogoCloudSocketMsgAckListener;
import com.mogo.cloud.socket.IMogoCloudSocketOnMessageListener;
import com.mogo.cloud.socket.SocketManager;
import com.mogo.cloud.socket.entity.MsgBody;
import com.mogo.service.connection.IMogoLifecycleListener;
import com.mogo.service.connection.IMogoMsgAckListener;
import com.mogo.service.connection.IMogoOnMessageListener;
import com.mogo.service.connection.IMogoSocketManager;
@@ -101,6 +102,16 @@ public class MogoAiCloudSocketManager implements IMogoSocketManager {
SocketManager.getInstance().unregisterOnMessageListener(msgType, mogoCloudSocketOnMessageListener);
}
@Override
public void registerLifecycleListener(int msgType, IMogoLifecycleListener listener) {
}
@Override
public void unregisterLifecycleListener(int msgType) {
}
@Override
public void sendMsg(MsgBody body, IMogoMsgAckListener listener) {
Logger.d(TAG, "sendMsg.");

View File

@@ -158,21 +158,21 @@ LOGLIB_VERSION = 1.0.4
######## MogoAiCloudSDK Version
# 网络请求
MOGO_NETWORK_VERSION=1.1.24
MOGO_NETWORK_VERSION=1.1.26
# 鉴权
MOGO_PASSPORT_VERSION=1.1.24
MOGO_PASSPORT_VERSION=1.1.26
# 常链接
MOGO_SOCKET_VERSION=1.1.24
MOGO_SOCKET_VERSION=1.1.26
# 数据采集
MOGO_REALTIME_VERSION=1.1.24
MOGO_REALTIME_VERSION=1.1.26
# 探路,道路事件发布,获取
MOGO_TANLU_VERSION=1.1.24
MOGO_TANLU_VERSION=1.1.26
# 直播推流
MOGO_LIVE_VERSION=1.1.24
MOGO_LIVE_VERSION=1.1.26
# 直播拉流
MOGO_TRAFFICLIVE_VERSION=1.1.24
MOGO_TRAFFICLIVE_VERSION=1.1.26
# 定位服务
MOGO_LOCATION_VERSION=1.1.24
MOGO_LOCATION_VERSION=1.1.26
######## Foundation MogoAiCloud Module

View File

@@ -5,6 +5,7 @@ import android.content.Context;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.mogo.cloud.socket.entity.MsgBody;
import com.mogo.service.MogoServicePaths;
import com.mogo.service.connection.IMogoLifecycleListener;
import com.mogo.service.connection.IMogoMsgAckListener;
import com.mogo.service.connection.IMogoOnMessageListener;
import com.mogo.service.connection.IMogoSocketManager;
@@ -52,6 +53,16 @@ public class MogoSocketManager implements IMogoSocketManager {
}
}
@Override
public void registerLifecycleListener(int msgType, IMogoLifecycleListener listener) {
}
@Override
public void unregisterLifecycleListener(int msgType) {
}
@Override
public void sendMsg(MsgBody body, IMogoMsgAckListener listener ) {
if ( mDelegate != null ) {