Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Build$VERSION (0.24 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

        val isSupported: Boolean =
          when {
            !isAndroid -> false
            Build.VERSION.SDK_INT >= 30 -> false // graylisted methods are banned
            else -> {
              // Fail Fast
              check(
                Build.VERSION.SDK_INT >= 21,
              ) { "Expected Android API level 21+ but was ${Build.VERSION.SDK_INT}" }
    
              true
            }
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/Android10Platform.kt

      override fun getStackTraceForCloseable(closer: String): Any? {
        return 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 {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            when {
              Build.VERSION.SDK_INT >= 24 -> {
                // Conscrypt 2.5+ defaults to SSLEngine-based SSLSocket
                assertEquals("org.conscrypt.Java8EngineSocket", socketClass)
              }
              Build.VERSION.SDK_INT < 22 -> {
                assertEquals("org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter", socketClass)
              }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

          .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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt

            **/build/website-checkout/data/releases.xml
            **/build/git-checkout/build/reports/integTest/** => distribution-tests
            **/smoke-tests/build/reports/tests/** => post-smoke-tests
            **/build/version-info.properties => version-info.properties
            """.trimIndent()
    
            dependencies {
                snapshot(RelativeId("Check_Stage_${******@****.***rName}_Trigger")) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 07 17:05:02 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. 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")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

        }
      }
    
      @SuppressSignatureCheck
      companion object {
        fun buildIfSupported(): SocketAdapter? = if (isSupported()) Android10SocketAdapter() else null
    
        fun isSupported() = isAndroid && Build.VERSION.SDK_INT >= 29
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/site/apt/index.apt

    *----+------+------+
    | <<<maven.build.version>>> | The full build version of the current Maven execution <(since 3.0.4)>. For example, "<<<Apache Maven 3.2.2 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19T14:51:28+01:00)>>>". | <<<$\{maven.build.version\}>>> |
    *----+------+------+
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. guava/module.json

        "version": "${pom.version}",
        "attributes": {
          "org.gradle.status": "${module.status}"
        }
      },
      "createdBy": {
        "maven": {
          "version": "${maven.version}",
          "buildId": "${maven.build.version}"
        }
      },
      "variants": [
        {
          "name": "${variant.jvmEnvironmentVariantName}ApiElements",
          "attributes": {
            "org.gradle.category": "library",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Sep 23 17:17:08 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. android-test/src/androidTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

        // These tests wont actually run before Android 8.0 as per
        // https://github.com/mannodermaus/android-junit5
        // Raised https://github.com/mannodermaus/android-junit5/issues/228 to reevaluate
        val androidMorEarlier = Build.VERSION.SDK_INT <= 23
    
        val clientBuilder = OkHttpClient.Builder()
    
        if (androidMorEarlier) {
          val cert: X509Certificate =
            """
            -----BEGIN CERTIFICATE-----
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top