- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for Build$VERSION (0.07 seconds)
-
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
override fun isCleartextTrafficPermitted(hostname: String): Boolean = when { Build.VERSION.SDK_INT >= 24 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname) Build.VERSION.SDK_INT >= 23 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted else -> true }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 10 05:19:46 GMT 2025 - 6.5K bytes - Click Count (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
response.use { assertEquals(200, response.code) } } @Test fun testLocalhostInsecure() { assumeTrue(Build.VERSION.SDK_INT >= 24) val clientCertificates = HandshakeCertificates .Builder() .apply { if (Build.VERSION.SDK_INT >= 24) { addInsecureHost(server.hostName) } }.build() client = clientCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 29.9K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt
override fun getStackTraceForCloseable(closer: String): Any? = if (Build.VERSION.SDK_INT >= 30) { CloseGuard().apply { open(closer) } } else { super.getStackTraceForCloseable(closer) } override fun logCloseableLeak( message: String, stackTrace: Any?, ) { if (Build.VERSION.SDK_INT >= 30) { (stackTrace as CloseGuard).warnIfOpen() } else {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Jul 20 11:25:50 GMT 2025 - 4.5K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt
// If the API version is 0, assume this is the Android artifact, but running on the JVM without Robolectric. if (Build.VERSION.SDK_INT == 0) { return Jdk9Platform.buildIfSupported() ?: Platform() } throw IllegalStateException("Expected Android API level 21+ but was ${Build.VERSION.SDK_INT}") } actual val isAndroid: Boolean get() = true var applicationContext: Context?Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.6K bytes - Click Count (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
.Builder() .build() @Test fun getWithCustomSocketFactory() { assumeTrue(Build.VERSION.SDK_INT >= 24) class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val parameters = sslSocket.sslParameters
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.6K bytes - Click Count (0) -
.teamcity/scripts/update_wrapper_and_create_pr.sh
source version-info-final-release/promote-projects/gradle/build/version-info.properties export WRAPPER_VERSION="$promotedVersion" elif [[ "$TRIGGERED_BY" == *"Release - Release Candidate"* ]]; then source version-info-release-candidate/promote-projects/gradle/build/version-info.properties export WRAPPER_VERSION="$promotedVersion" fiCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Jul 29 03:20:20 GMT 2025 - 2.9K bytes - Click Count (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/TestApplication.kt
} } private fun isSecondaryProcess(): Boolean = getProcess() != packageName @SuppressLint("DiscouragedPrivateApi") private fun getProcess(): String? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { getProcessName() } else { Class .forName("android.app.ActivityThread") .getDeclaredMethod("currentProcessName") .apply { isAccessible = true }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Aug 19 08:10:39 GMT 2025 - 1.3K bytes - Click Count (0) -
regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java
*/ @RunWith(AndroidJUnit4.class) public class LetsEncryptTest { @Test public void getFailsWithoutAdditionalCert() throws IOException { OkHttpClient client = new OkHttpClient(); boolean androidMorEarlier = Build.VERSION.SDK_INT <= 23; try { sendRequest(client, "https://valid-isrgrootx1.letsencrypt.org/robots.txt"); if (androidMorEarlier) { fail(); } } catch (SSLHandshakeException sslhe) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 17 07:40:31 GMT 2020 - 6.1K bytes - Click Count (0) -
.teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt
**/build/git-checkout/build/reports/integTest/** => distribution-tests **/build/releases-data-checkout/data/releases.xml **/smoke-tests/build/reports/tests/** => post-smoke-tests **/build/version-info.properties => version-info.properties """.trimIndent(), ) dependencies { snapshot(RelativeId("Check_Stage_${******@****.***rName}_Trigger")) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 3.2K bytes - Click Count (0) -
android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt
@Tag("Remote") class AlpnOverrideTest { class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val parameters = sslSocket.sslParameters Log.d("CustomSSLSocketFactory", "old applicationProtocols: $parameters.applicationProtocols")Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.8K bytes - Click Count (0)