- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for AndroidPlatform (0.07 sec)
-
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
import okhttp3.internal.tls.BasicTrustRootIndex import okhttp3.internal.tls.CertificateChainCleaner import okhttp3.internal.tls.TrustRootIndex /** Android 5 to 9 (API 21 to 28). */ @SuppressSignatureCheck class AndroidPlatform : Platform(), ContextAwarePlatform { override var applicationContext: Context? = null private val socketAdapters = listOfNotNull( StandardAndroidSocketAdapter.buildIfSupported(),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu May 29 16:52:38 UTC 2025 - 6.5K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt
actual object PlatformRegistry { actual fun findPlatform(): Platform { AndroidLog.enable() val androidPlatform = Android10Platform.buildIfSupported() ?: AndroidPlatform.buildIfSupported() if (androidPlatform != null) return androidPlatform // If the API version is 0, assume this is the Android artifact, but running on the JVM without Robolectric.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 1.6K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt
import java.net.UnknownHostException import okhttp3.ConnectionSpec import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.internal.platform.AndroidPlatform import okhttp3.logging.HttpLoggingInterceptor import okhttp3.logging.LoggingEventListener import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 3.2K bytes - Viewed (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt
import okhttp3.Response import okhttp3.internal.platform.AndroidPlatform import okio.IOException open class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val client = OkHttpClient() // Ensure we are compiling against the right variant println(AndroidPlatform.isSupported)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Aug 19 08:10:39 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
import android.os.Build import java.lang.reflect.InvocationTargetException import java.lang.reflect.Method import javax.net.ssl.SSLSocket import okhttp3.Protocol import okhttp3.internal.platform.AndroidPlatform import okhttp3.internal.platform.Platform /** * Modern reflection based SocketAdapter for Conscrypt class SSLSockets. * * This is used directly for providers where class name is known e.g. the Google Play Provider
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt
* limitations under the License. */ package okhttp3.internal.platform import android.content.Context import androidx.startup.Initializer /** * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context. */ class PlatformInitializer : Initializer<Platform> { override fun create(context: Context): Platform { PlatformRegistry.applicationContext = context
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Dec 31 14:50:53 UTC 2024 - 1K bytes - Viewed (1) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt
import javax.net.ssl.SSLSocket import javax.net.ssl.SSLSocketFactory import javax.net.ssl.X509TrustManager import okhttp3.Protocol import okhttp3.internal.SuppressSignatureCheck import okhttp3.internal.platform.AndroidPlatform.Companion.Tag import okhttp3.internal.platform.android.Android10SocketAdapter import okhttp3.internal.platform.android.AndroidCertificateChainCleaner import okhttp3.internal.platform.android.AndroidSocketAdapter
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Jul 20 11:25:50 UTC 2025 - 4.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt
* chain. This class duplicates the clean chain building performed during the TLS handshake. We * prefer other mechanisms where they exist, such as with * [okhttp3.internal.platform.AndroidPlatform.AndroidCertificateChainCleaner]. * * This class includes code from [Conscrypt's][Conscrypt] [TrustManagerImpl] and * [TrustedCertificateIndex]. * * [Conscrypt]: https://conscrypt.org/ */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.8K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
import okhttp3.dnsoverhttps.DnsOverHttps import okhttp3.internal.concurrent.TaskRunner import okhttp3.internal.http2.Http2 import okhttp3.internal.platform.Android10Platform import okhttp3.internal.platform.AndroidPlatform import okhttp3.internal.platform.Platform import okhttp3.internal.platform.PlatformRegistry import okhttp3.logging.LoggingEventListener import okhttp3.testing.PlatformRule import okhttp3.tls.HandshakeCertificates
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 14:12:28 UTC 2025 - 29K bytes - Viewed (0) -
okhttp/src/androidMain/baseline-prof.txt
Lokhttp3/internal/http2/PushObserver; Lokhttp3/internal/http2/Settings; Lokhttp3/internal/http2/StreamResetException; Lokhttp3/internal/platform/Android10Platform; Lokhttp3/internal/platform/AndroidPlatform$Companion; Lokhttp3/internal/platform/AndroidPlatform; Lokhttp3/internal/platform/BouncyCastlePlatform$Companion; Lokhttp3/internal/platform/BouncyCastlePlatform; Lokhttp3/internal/platform/ConscryptPlatform$Companion;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Dec 30 23:28:56 UTC 2024 - 127.9K bytes - Viewed (0)