diff --git a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/third/ThirdSocketManager.java b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/third/ThirdSocketManager.java index c8e74ce..70fc5bd 100644 --- a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/third/ThirdSocketManager.java +++ b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/third/ThirdSocketManager.java @@ -20,7 +20,7 @@ import static com.mogo.cloud.socket.SocketServicesConstants.SOCKET_CHANNEL_ID; import static com.mogo.cloud.socket.SocketServicesConstants.TAG; import static com.mogo.cloud.socket.SocketServicesConstants.getEnvironment; -public class ThirdSocketManager extends ConnectionLifecycleListener implements Callback { +public class ThirdSocketManager implements Callback { private static volatile ThirdSocketManager mInstance; private final MoGoAiCloudClientConfig cloudClientConfig; @@ -53,7 +53,7 @@ public class ThirdSocketManager extends ConnectionLifecycleListener implements C .setAuthPubKey(cloudClientConfig.getAuthPubKey()) .setDebug(cloudClientConfig.isShowDebugLog()); SocketClient.getInstance().registerSocketCallback(this); - SocketClient.getInstance().registerSocketConnCallback(this); +// SocketClient.getInstance().registerSocketConnCallback(this); SocketClient.getInstance().start(context); } @@ -89,24 +89,7 @@ public class ThirdSocketManager extends ConnectionLifecycleListener implements C } public void unregisterSocketConnCallback(ConnectionLifecycleListener listener){ - SocketClient.getInstance().registerSocketConnCallback(listener); + SocketClient.getInstance().unregisterSocketConnCallback(listener); } - @Override - public void onConnectLost(boolean reconnect) { - Logger.d(TAG,"ThirdSocketManager onConnectLost"); - super.onConnectLost(reconnect); - } - - @Override - public void onConnectFailure() { - Logger.d(TAG,"ThirdSocketManager onConnectFailure"); - super.onConnectFailure(); - } - - @Override - public void onConnectSuccess() { - Logger.d(TAG,"ThirdSocketManager onConnectSuccess"); - super.onConnectSuccess(); - } } diff --git a/gradle.properties b/gradle.properties index a8c5c06..b383093 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,22 +30,22 @@ PASSWORD=xintai2018 RELEASE=true # AI CLOUD 云平台 # 工具类 -MOGO_UTILS_VERSION=1.1.26 +MOGO_UTILS_VERSION=1.1.27 # 网络请求 -MOGO_NETWORK_VERSION=1.1.26 +MOGO_NETWORK_VERSION=1.1.27 # 网络DNS -MOGO_HTTPDNS_VERSION=1.1.26 +MOGO_HTTPDNS_VERSION=1.1.27 # 鉴权 -MOGO_PASSPORT_VERSION=1.1.26 +MOGO_PASSPORT_VERSION=1.1.27 # 常链接 -MOGO_SOCKET_VERSION=1.1.26 +MOGO_SOCKET_VERSION=1.1.27 # 数据采集 -MOGO_REALTIME_VERSION=1.1.26 +MOGO_REALTIME_VERSION=1.1.27 # 探路,道路事件发布,获取 -MOGO_TANLU_VERSION=1.1.26 +MOGO_TANLU_VERSION=1.1.27 # 直播推流 -MOGO_LIVE_VERSION=1.1.26 +MOGO_LIVE_VERSION=1.1.27 # 直播拉流 -MOGO_TRAFFICLIVE_VERSION=1.1.26 +MOGO_TRAFFICLIVE_VERSION=1.1.27 # 定位服务 -MOGO_LOCATION_VERSION=1.1.26 +MOGO_LOCATION_VERSION=1.1.27