diff --git a/commonLib/src/main/java/com/common/commonlib/utils/KtExtensions.kt b/commonLib/src/main/java/com/common/commonlib/utils/KtExtensions.kt index 8c87623..e23b66d 100644 --- a/commonLib/src/main/java/com/common/commonlib/utils/KtExtensions.kt +++ b/commonLib/src/main/java/com/common/commonlib/utils/KtExtensions.kt @@ -4,13 +4,9 @@ package com.common.commonlib.utils import android.app.Activity -import android.content.Context -import android.content.ContextWrapper import android.content.res.Resources import android.util.TypedValue import android.view.View -import androidx.fragment.app.FragmentActivity -import androidx.recyclerview.widget.RecyclerView /** * Kt扩展属性,判断Activity是否存活 diff --git a/commonLib/src/main/java/com/common/commonlib/utils/NetworkHelper.kt b/commonLib/src/main/java/com/common/commonlib/utils/NetworkHelper.kt index 71cf95a..704a4ea 100644 --- a/commonLib/src/main/java/com/common/commonlib/utils/NetworkHelper.kt +++ b/commonLib/src/main/java/com/common/commonlib/utils/NetworkHelper.kt @@ -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 {