okhttp

Форк
0
/
build.gradle.kts 
55 строк · 1.6 Кб
1
plugins {
2
  id("com.android.library")
3
  kotlin("android")
4
}
5

6
android {
7
  compileSdk = 34
8

9
  namespace = "okhttp.android.regression"
10

11
  defaultConfig {
12
    minSdk = 21
13
    targetSdk = 34
14

15
    // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
16
    testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
17
    testInstrumentationRunnerArguments += mapOf(
18
      "notClass" to "org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter,org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests"
19
    )
20
  }
21

22
  compileOptions {
23
    targetCompatibility(JavaVersion.VERSION_11)
24
    sourceCompatibility(JavaVersion.VERSION_11)
25
  }
26

27
  kotlinOptions {
28
    jvmTarget = JavaVersion.VERSION_11.toString()
29
  }
30

31
  // issue merging due to conflict with httpclient and something else
32
  packagingOptions.resources.excludes += setOf(
33
    "META-INF/DEPENDENCIES"
34
  )
35
}
36

37

38
dependencies {
39
  val okhttpLegacyVersion = "3.12.12"
40

41
  implementation(libs.kotlin.reflect)
42
  implementation(libs.playservices.safetynet)
43
  implementation("com.squareup.okhttp3:okhttp:${okhttpLegacyVersion}")
44
  implementation("com.squareup.okhttp3:okhttp-tls:${okhttpLegacyVersion}") {
45
    exclude("org.bouncycastle")
46
  }
47
  androidTestImplementation("com.squareup.okhttp3:mockwebserver:${okhttpLegacyVersion}")
48
  androidTestImplementation(libs.bouncycastle.bcprov)
49
  androidTestImplementation(libs.bouncycastle.bctls)
50
  androidTestImplementation(libs.androidx.junit)
51
  androidTestImplementation(libs.androidx.espresso.core)
52
  androidTestImplementation(libs.httpClient5)
53
  androidTestImplementation(libs.squareup.moshi)
54
  androidTestImplementation(libs.squareup.moshi.kotlin)
55
}
56

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.