-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
122 lines (101 loc) · 3.44 KB
/
build.gradle
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
112
113
114
115
116
117
118
119
120
121
buildscript {
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.j256.ormlite:ormlite-android:6.1'
implementation 'org.apache.poi:poi:3.15'
implementation 'org.apache.commons:commons-csv:1.9.0'
implementation "androidx.multidex:multidex:2.0.1"
// Bosch internal protocol
implementation files('../CaveSurveyBoschGLM/binary/CaveSurveyBoschGLM.jar')
// kotlin
implementation 'androidx.core:core-ktx:1.12.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation 'androidx.documentfile:documentfile:1.0.1'
// unit tests
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.hamcrest:hamcrest:2.2'
// container tests
androidTestImplementation 'org.hamcrest:hamcrest-library:2.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'androidx.test.espresso:espresso-web:3.5.1'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test:rules:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.1'
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation "androidx.test.espresso:espresso-idling-resource:3.5.1"
}
android {
namespace 'com.astoev.cave.survey'
compileSdk 34
defaultConfig {
minSdk 14
targetSdk 34
versionCode 63
versionName "2.10"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
// We can leave these in environment variables
storeFile file("CaveSurvey.keystore")
keyAlias "CaveSurvey"
// These two lines make gradle believe that the signingConfigs
// section is complete. Without them, tasks like installRelease
// will not be available!
storePassword System.getenv("CaveSurveyKeystorePassword")
keyPassword System.getenv("CaveSurveyKeyPassword")
}
}
buildTypes {
release {
// minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
packaging {
resources {
excludes += ['LICENSE.txt', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt']
}
}
testOptions {
unitTests{
all {
useJUnitPlatform()
}
returnDefaultValues = true
includeAndroidResources = true
animationsDisabled = true
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
lint {
abortOnError false
}
}
kotlin {
jvmToolchain 17
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}