Skip to content

Commit

Permalink
Rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 15, 2024
1 parent e8dd071 commit 5dfca43
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -4,7 +4,7 @@

package io.ktor.client.plugins.platform

internal expect object Platform {
internal expect object PlatformJvm {

fun isCleartextTrafficPermitted(hostname: String): Boolean
}
Expand Up @@ -12,7 +12,7 @@ import io.ktor.utils.io.errors.UnknownServiceException
public val Platforming: ClientPlugin<Any> = createClientPlugin("Platforming", ::Any) {
onRequest { request, _ ->
val host = request.host
if (!Platform.isCleartextTrafficPermitted(host)) {
if (!PlatformJvm.isCleartextTrafficPermitted(host)) {
throw UnknownServiceException(
"CLEARTEXT communication to $host not permitted by network security policy"
)
Expand Down
Expand Up @@ -4,7 +4,7 @@

package io.ktor.client.plugins.platform

internal actual object Platform {
internal actual object PlatformJs {

/**
* Not supported on JS.
Expand Down
Expand Up @@ -6,7 +6,7 @@ package io.ktor.client.plugins.platform

import java.lang.reflect.InvocationTargetException

internal actual object Platform {
internal actual object PlatformJvm {
/**
* This explicit check avoids activating in Android Studio with Android specific classes available when running plugins inside the IDE.
*/
Expand Down
Expand Up @@ -4,7 +4,7 @@

package io.ktor.client.plugins.platform

internal actual object Platform {
internal actual object PlatformNative {

/**
* Not supported on native.
Expand Down

0 comments on commit 5dfca43

Please sign in to comment.