-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (43 loc) · 1.21 KB
/
build.gradle.kts
File metadata and controls
54 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@file:Suppress("UnstableApiUsage")
plugins {
id("okhttp.base-conventions")
id("com.android.application")
}
android {
compileSdk {
version = release(37)
}
namespace = "okhttp.android.testapp"
// Release APKs can't be tested currently with AGP
testBuildType = "debug"
defaultConfig {
minSdk = 21
targetSdk = 37
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
targetCompatibility(JavaVersion.VERSION_11)
sourceCompatibility(JavaVersion.VERSION_11)
}
buildTypes {
release {
isShrinkResources = true
isMinifyEnabled = true
signingConfig = signingConfigs.getByName("debug")
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
testProguardFiles("test-proguard-rules.pro")
}
}
lint {
abortOnError = true
}
}
dependencies {
implementation(libs.playservices.safetynet)
implementation(projects.okhttp)
implementation(libs.androidx.activity)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation(libs.assertk)
}