|
|
|
@ -1,10 +1,8 @@
|
|
|
|
|
package com.common.commonlib.utils
|
|
|
|
|
|
|
|
|
|
import android.annotation.SuppressLint
|
|
|
|
|
import android.app.Activity
|
|
|
|
|
import android.content.Context
|
|
|
|
|
import android.content.Intent
|
|
|
|
|
import android.graphics.Bitmap
|
|
|
|
|
import android.net.ConnectivityManager
|
|
|
|
|
import android.net.Network
|
|
|
|
|
import android.net.NetworkRequest
|
|
|
|
@ -13,10 +11,6 @@ import androidx.fragment.app.FragmentActivity
|
|
|
|
|
import androidx.lifecycle.Lifecycle
|
|
|
|
|
import androidx.lifecycle.LifecycleObserver
|
|
|
|
|
import androidx.lifecycle.OnLifecycleEvent
|
|
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
|
|
import kotlinx.coroutines.GlobalScope
|
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
|
import kotlinx.coroutines.withContext
|
|
|
|
|
|
|
|
|
|
object NetworkHelper {
|
|
|
|
|
|
|
|
|
|