Skip to content

Commit

Permalink
Minor refacotring
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Jan 7, 2025
1 parent 36ccf80 commit 10a2877
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"
}
}

0 comments on commit 10a2877

Please sign in to comment.