Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for Android (0.16 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/OkHttp.android.kt

     * limitations under the License.
     */
    package okhttp3
    
    import android.content.Context
    import okhttp3.internal.CONST_VERSION
    import okhttp3.internal.platform.PlatformRegistry
    
    actual object OkHttp {
      @JvmField
      actual val VERSION: String = CONST_VERSION
    
      /**
       * Configure the ApplicationContext. Not needed unless the AndroidX Startup [Initializer] is disabled, or running
       * a robolectric test.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. okhttp/src/androidUnitTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.android.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.publicsuffix
    
    import androidx.test.core.app.ApplicationProvider
    import okhttp3.internal.platform.PlatformRegistry
    import org.robolectric.RobolectricTestRunner
    
    actual typealias PublicSuffixTestRunner = RobolectricTestRunner
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 08:21:20 UTC 2025
    - 974 bytes
    - Viewed (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

    import okhttp3.internal.platform.android.AndroidCertificateChainCleaner
    import okhttp3.internal.platform.android.AndroidSocketAdapter
    import okhttp3.internal.platform.android.BouncyCastleSocketAdapter
    import okhttp3.internal.platform.android.ConscryptSocketAdapter
    import okhttp3.internal.platform.android.DeferredSocketAdapter
    import okhttp3.internal.platform.android.StandardAndroidSocketAdapter
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. gradle/libs.versions.toml

    amazonCorretto = "software.amazon.cryptools:AmazonCorrettoCryptoProvider:2.5.0"
    androidx-activity = "androidx.activity:activity-ktx:1.10.1"
    androidx-annotation = "androidx.annotation:annotation:1.9.1"
    androidx-espresso-core = "androidx.test.espresso:espresso-core:3.7.0"
    androidx-junit = "androidx.test.ext:junit:1.3.0"
    #noinspection UnusedVersionCatalogEntry
    androidx-lint-gradle = { module = "androidx.lint:lint-gradle", version.ref = "lintGradle" }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 31 17:41:20 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  5. .github/workflows/build.yml

              script: ./gradlew :android-test-app:connectedCheck
            env:
              API_LEVEL: ${{ matrix.api-level }}
    
          - name: Build Release App
            run: ./gradlew android-test-app:lint android-test-app:assembleRelease
    
          - name: Run Release Tests
            uses: reactivecircus/android-emulator-runner@v2
            with:
              api-level: ${{ matrix.api-level }}
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 07:15:58 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

        get(serverUrl)
        val request = server.takeRequest()
        assertThat(request.headers["Cookie"]).isEqualTo("a=android; b=banana")
      }
    
      @Test
      fun receiveAndSendMultipleCookies() {
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Set-Cookie", "a=android")
            .addHeader("Set-Cookie", "b=banana")
            .build(),
        )
        server.enqueue(MockResponse())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. okhttp/build.gradle.kts

        if (javaLauncher.get().metadata.languageVersion.asInt() < 9) {
          // Work around robolectric requirements and limitations
          // https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:build-system/gradle-core/src/main/java/com/android/build/gradle/tasks/factory/AndroidUnitTest.java;l=339
          allJvmArgs = allJvmArgs.filter { !it.startsWith("--add-opens") }
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 03:59:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. README.md

        return response.body().string();
      }
    }
    ```
    
    Further examples are on the [OkHttp Recipes page][recipes].
    
    
    Requirements
    ------------
    
    OkHttp works on Android 5.0+ (API level 21+) and Java 8+.
    
    On Android, OkHttp uses [AndroidX Startup][androidx_startup]. If you disable the initializer in the manifest,
    then apps are responsible for calling `OkHttp.initialize(applicationContext)` in `Application.onCreate`.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. android-test-app/build.gradle.kts

    @file:Suppress("UnstableApiUsage")
    
    plugins {
      id("com.android.application")
      id("kotlin-android")
    }
    
    android {
      compileSdk = 36
    
      namespace = "okhttp.android.testapp"
    
      testBuildType = "release"
    
      defaultConfig {
        minSdk = 21
        targetSdk = 36
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 12:35:48 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  10. android-test/build.gradle.kts

    @file:Suppress("UnstableApiUsage")
    
    plugins {
      id("com.android.library")
      kotlin("android")
      id("de.mannodermaus.android-junit5")
    }
    
    val androidBuild = property("androidBuild").toString().toBoolean()
    
    android {
      compileSdk = 35
    
      namespace = "okhttp.android.test"
    
      defaultConfig {
        minSdk = 21
    
        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 20:01:04 UTC 2025
    - 3.8K bytes
    - Viewed (2)
Back to top