-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
build.gradle.kts
93 lines (80 loc) · 2.91 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
plugins {
id("com.android.application")
kotlin("android")
}
val appiumCompileSdk: String by project
val appiumMinSdk: String by project
val appiumTargetSdk: String by project
val appiumBuildTools: String by project
val appiumTargetPackage: 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 appiumMockitoVersion: 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"
defaultConfig {
// <instrumentation android:targetPackage=""/>
applicationId = appiumTargetPackage
// <manifest package=""/>
testApplicationId = "io.appium.espressoserver.test"
testHandleProfiling = false
testFunctionalTest = false
minSdk = appiumMinSdk.toInt()
targetSdk = appiumTargetSdk.toInt()
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
signingConfigs {
getByName("debug") {
findProperty("appiumKeystoreFile")?.also {
storeFile = file(it.toString())
}
findProperty("appiumKeystorePassword")?.also {
storePassword = it.toString()
}
findProperty("appiumKeyAlias")?.also {
keyAlias = it.toString()
}
findProperty("appiumKeyPassword")?.also {
keyPassword = it.toString()
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.valueOf(appiumSourceCompatibility.uppercase())
targetCompatibility = JavaVersion.valueOf(appiumTargetCompatibility.uppercase())
}
kotlinOptions {
jvmTarget = appiumJvmTarget
}
packaging {
resources.excludes.add("META-INF/**")
}
}
dependencies {
androidTestImplementation(project(":library"))
androidTestImplementation("junit:junit:$appiumJUnitVersion")
androidTestImplementation("androidx.test:core:$appiumAndroidxTestVersion")
androidTestImplementation("androidx.test:runner:$appiumAndroidxTestVersion")
// additionalAndroidTestDependencies placeholder (don't change or delete this line)
}