Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 117 for Android (0.28 sec)

  1. settings.gradle.kts

    val androidHome = System.getenv("ANDROID_HOME")
    val localProperties = Properties().apply {
      val file = File("local.properties")
      if (file.exists()) {
        load(file.inputStream())
      }
    }
    val sdkDir = localProperties.getProperty("sdk.dir")
    if ((androidHome != null || sdkDir != null) && !isKnownBrokenIntelliJ()) {
      include(":okhttp-android")
      include(":android-test")
      include(":android-test-app")
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp.android.test.alpn
    
    import android.os.Build
    import android.util.Log
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import okhttp3.Call
    import okhttp3.Connection
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .addHeader("Cookie", "a=android")
        assertThat(headersToList(response))
          .containsExactly("Cookie: s=square", "Cookie: a=android")
      }
    
      @Test
      fun mockResponseSetHeader() {
        val response =
          MockResponse()
            .clearHeaders()
            .addHeader("Cookie: s=square")
            .addHeader("Cookie: a=android")
            .addHeader("Cookies: delicious")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

        // Configure a DNS that returns our local MockWebServer for android.com.
        val dns = FakeDns()
        dns["android.com"] = Dns.SYSTEM.lookup(server.url("/").host)
        client =
          client.newBuilder()
            .dns(dns)
            .build()
        server.enqueue(MockResponse())
        val request = Request(server.url("/").newBuilder().host("android.com").build())
        executeSynchronously(request).assertCode(200)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  6. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/PublicSuffixDatabaseTest.kt

     * limitations under the License.
     */
    package okhttp3.android
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Test
    
    /**
     * Run with "./gradlew :android-test-app:connectedCheck -PandroidBuild=true" and make sure ANDROID_SDK_ROOT is set.
     */
    class PublicSuffixDatabaseTest {
      @Test
      fun testTopLevelDomain() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1K bytes
    - Viewed (0)
  7. android-test-app/build.gradle.kts

    @file:Suppress("UnstableApiUsage")
    
    plugins {
      id("com.android.application")
      id("kotlin-android")
    }
    
    android {
      compileSdk = 34
    
      namespace = "okhttp.android.testapp"
    
      testBuildType = "release"
    
      defaultConfig {
        minSdk = 21
        targetSdk = 34
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  8. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

     *
     */
    
    package okhttp3.android
    
    import android.net.DnsResolver
    import android.net.Network
    import android.os.Build
    import androidx.annotation.RequiresApi
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.Executors
    import okhttp3.AsyncDns
    import okhttp3.ExperimentalOkHttpApi
    
    /**
     * DNS implementation based on android.net.DnsResolver, which submits a request for
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 10:07:48 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    import android.util.Log
    import java.util.concurrent.CopyOnWriteArraySet
    import java.util.logging.Handler
    import java.util.logging.Level
    import java.util.logging.LogRecord
    import java.util.logging.Logger
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. docs/features/r8_proguard.md

    R8 / ProGuard
    =============
    
    If you use OkHttp as a dependency in an Android project which uses R8 as a default compiler you
    don't have to do anything. The specific rules are [already bundled][okhttp3_pro] into the JAR which can be
    interpreted by R8 automatically.
    
    If you, however, don't use R8 you have to apply the rules from [this file][okhttp3_pro]. You might
    also need rules from [Okio][okio] which is a dependency of this library.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 607 bytes
    - Viewed (0)
Back to top