From 10a2877e1558e5af43a5904fa679d4149c5f539a Mon Sep 17 00:00:00 2001 From: Georgy Steshin Date: Tue, 7 Jan 2025 13:56:09 +0200 Subject: [PATCH] Minor refacotring --- .../network/NetworkingModuleReflected.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/detox/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/network/NetworkingModuleReflected.kt b/detox/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/network/NetworkingModuleReflected.kt index ddb0a89c53..0a913fac59 100644 --- a/detox/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/network/NetworkingModuleReflected.kt +++ b/detox/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/network/NetworkingModuleReflected.kt @@ -7,6 +7,11 @@ import okhttp3.OkHttpClient import org.joor.Reflect import org.joor.ReflectException + +private const val LOG_TAG = "RNNetworkingModuleRefl" + +private const val FIELD_OKHTTP_CLIENT = "mClient" + internal class NetworkingModuleReflected(private val reactContext: ReactContext) { fun getHttpClient(): OkHttpClient? { val networkNativeModule = reactContext.getNativeModule(NetworkingModule::class.java) @@ -17,10 +22,4 @@ internal class NetworkingModuleReflected(private val reactContext: ReactContext) return null } } - - companion object { - private const val LOG_TAG = "RNNetworkingModuleRefl" - - private const val FIELD_OKHTTP_CLIENT = "mClient" - } }