-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
build.gradle.kts
111 lines (97 loc) · 3.63 KB
/
build.gradle.kts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins {
id("com.android.library")
kotlin("android")
`maven-publish`
}
val appiumCompileSdk: String by project
val appiumMinSdk: String by project
val appiumTargetSdk: String by project
val appiumBuildTools: String by project
val appiumSourceCompatibility: String by project
val appiumTargetCompatibility: String by project
val appiumJvmTarget: String by project
val appiumKotlin: String by project
val appiumAndroidxTestVersion: String by project
val appiumAnnotationVersion: String by project
val appiumComposeVersion: String by project
val appiumGsonVersion: String by project
val appiumEspressoVersion: String by project
val appiumNanohttpdVersion: String by project
val appiumRobolectricVersion: String by project
val appiumJUnitVersion: String by project
val appiumUiAutomatorVersion: String by project
android {
compileSdk = appiumCompileSdk.toInt()
buildToolsVersion = appiumBuildTools
namespace = "io.appium.espressoserver.lib"
defaultConfig {
minSdk = appiumMinSdk.toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.valueOf(appiumSourceCompatibility.uppercase())
targetCompatibility = JavaVersion.valueOf(appiumTargetCompatibility.uppercase())
}
packaging {
resources.excludes.add("META-INF/**")
}
kotlinOptions {
jvmTarget = appiumJvmTarget
}
lint {
targetSdk = appiumTargetSdk.toInt()
}
testOptions {
targetSdk = appiumTargetSdk.toInt()
unitTests.isReturnDefaultValues = true
}
publishing {
singleVariant("release") {
withSourcesJar()
}
}
}
publishing {
publications {
register<MavenPublication>("release") {
afterEvaluate {
from(components["release"])
}
}
}
}
dependencies {
// additionalAppDependencies placeholder (don't change or delete this line)
api("androidx.annotation:annotation:$appiumAnnotationVersion")
api("androidx.test.espresso:espresso-contrib:$appiumEspressoVersion") {
// Exclude transitive dependencies to limit conflicts with AndroidX libraries from AUT.
// Link to PR with fix and discussion https://github.com/appium/appium-espresso-driver/pull/596
isTransitive = false
}
api("androidx.test.espresso:espresso-web:$appiumEspressoVersion") {
because("Espresso Web Atoms support (mobile: webAtoms)")
}
api("androidx.test.uiautomator:uiautomator:$appiumUiAutomatorVersion") {
because("UiAutomator support (mobile: uiautomator)")
}
api("androidx.test:core:$appiumAndroidxTestVersion")
api("androidx.test:runner:$appiumAndroidxTestVersion")
api("androidx.test:rules:$appiumAndroidxTestVersion")
api("com.google.code.gson:gson:$appiumGsonVersion")
api("org.nanohttpd:nanohttpd-webserver:$appiumNanohttpdVersion")
api("org.jetbrains.kotlin:kotlin-stdlib:$appiumKotlin")
api("org.jetbrains.kotlin:kotlin-reflect:$appiumKotlin")
api("androidx.compose.ui:ui-test:$appiumComposeVersion") {
because("Android Compose support")
}
api("androidx.compose.ui:ui-test-junit4:$appiumComposeVersion") {
because("Android Compose support")
}
testImplementation("androidx.test.espresso:espresso-contrib:$appiumEspressoVersion")
testImplementation("junit:junit:$appiumJUnitVersion")
testImplementation("org.robolectric:robolectric:$appiumRobolectricVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test:$appiumKotlin")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$appiumKotlin")
constraints {
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$appiumKotlin")
}
}