All Downloads are FREE. Search and download functionalities are using the official Maven repository.

appleMain.com.apollographql.apollo.testing.platform.apple.kt Maven / Gradle / Ivy

@file:Suppress("DEPRECATION")

package com.apollographql.apollo.testing

import com.apollographql.apollo.annotations.ApolloDeprecatedSince
import com.apollographql.apollo.annotations.ApolloInternal

/**
 * The current platform. This is used from tests because Double.toString() doesn't behave the same on JS and other platforms.
 * Prefer more specific functions like `assertMainThreadOnNative` when possible instead of checking the platform.
 */
@ApolloInternal
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
@Deprecated("This function is not Apollo specific and will be removed in a future version. Copy/paste it in your codebase if you need it")
actual fun platform() = Platform.Native




© 2015 - 2025 Weber Informatics LLC | Privacy Policy