|
@@ -1,40 +1,17 @@
|
1
|
1
|
package com.xhly.manageapp.service.websocket
|
2
|
2
|
|
3
|
|
-import android.content.ComponentName
|
4
|
3
|
import android.content.Context
|
5
|
|
-import android.content.Intent
|
6
|
|
-import android.widget.Toast
|
7
|
|
-import com.billbook.lib.downloader.Download
|
8
|
|
-import com.billbook.lib.downloader.Downloader
|
9
|
4
|
import com.xhly.corelib.Const
|
10
|
|
-import com.xhly.corelib.bean.AppInfo
|
11
|
5
|
import com.xhly.corelib.eventbus.UIEvent
|
12
|
|
-import com.xhly.corelib.network.RetrofitService
|
13
|
|
-import com.xhly.corelib.utils.AppUtils
|
14
|
6
|
import com.xhly.corelib.utils.GsonUtils
|
15
|
7
|
import com.xhly.corelib.utils.LogShow
|
16
|
8
|
import com.xhly.corelib.utils.MD5Utils
|
17
|
|
-import com.xhly.corelib.utils.SharedPreferencesUtils
|
18
|
9
|
import com.xhly.manageapp.ManageApplication
|
19
|
|
-import com.xhly.manageapp.bean.EventLog
|
20
|
|
-import com.xhly.manageapp.bean.log.LogAppStartBean
|
21
|
|
-import com.xhly.manageapp.bean.log.LogdOperateBean
|
22
|
|
-import com.xhly.manageapp.network.log.LogService
|
23
|
10
|
import com.xhly.websocket.bean.WebSocketData
|
24
|
11
|
import com.xhly.websocket.bean.WebSocketUserBean
|
25
|
12
|
import com.xhly.websocket.service.SocketClient
|
26
|
13
|
import com.xhly.websocket.service.WebSocketHelper
|
27
|
14
|
import com.xhly.websocket.utils.SocketPushUtils
|
28
|
|
-import kotlinx.coroutines.CoroutineScope
|
29
|
|
-import kotlinx.coroutines.Dispatchers
|
30
|
|
-import kotlinx.coroutines.MainScope
|
31
|
|
-import kotlinx.coroutines.cancel
|
32
|
|
-import kotlinx.coroutines.launch
|
33
|
|
-import kotlinx.coroutines.withContext
|
34
|
|
-import org.greenrobot.eventbus.EventBus
|
35
|
|
-import org.greenrobot.eventbus.Subscribe
|
36
|
|
-import org.greenrobot.eventbus.ThreadMode
|
37
|
|
-import java.io.File
|
38
|
15
|
import java.util.UUID
|
39
|
16
|
|
40
|
17
|
object AppSocket : SocketClient() {
|