forked from google/android-fhir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (93 loc) · 3.31 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion sdk_versions.compile_sdk
defaultConfig {
minSdkVersion sdk_versions.min_sdk
targetSdkVersion sdk_versions.target_sdk
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// need to specify this to prevent junit runner from going deep into our dependencies
testInstrumentationRunnerArguments = ['package': 'com.google.android.fhir']
// Required when setting minSdkVersion to 20 or lower
// See https://developer.android.com/studio/write/java8-support
multiDexEnabled true
}
sourceSets {
// shared code between junit and instrumentation tests
androidTest.java.srcDirs += "src/test-common/java"
test.java.srcDirs += "src/test-common/java"
test {
resources.srcDirs += ['sampledata']
}
androidTest {
resources.srcDirs += ['sampledata']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
// Flag to enable support for the new language APIs
// See https://developer.android.com/studio/write/java8-support
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
// See https://developer.android.com/studio/write/java8-support
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/ASL-2.0.txt'
exclude 'META-INF/LGPL-3.0.txt'
}
// See https://developer.android.com/studio/write/java8-support
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
configurations {
all {
exclude module: 'json'
exclude module: 'xpp3'
exclude module: 'hamcrest-all'
exclude module: 'jaxb-impl'
exclude module: 'jaxb-core'
exclude module: 'jakarta.activation-api'
exclude module: 'javax.activation'
exclude module: 'jakarta.xml.bind-api'
// TODO: the following line can be removed from the next CQL engine release.
exclude module: 'hapi-fhir-jpaserver-base'
}
}
dependencies {
androidTestImplementation deps.atsl.core
androidTestImplementation deps.atsl.ext_junit_ktx
androidTestImplementation deps.atsl.runner
androidTestImplementation deps.junit
androidTestImplementation deps.truth
api deps.cql_engine.core
api (deps.hapi_r4) {
exclude module: 'junit'
}
coreLibraryDesugaring deps.desugar
// Needed for use of HAPI's FHIRPathEngine.
// See https://github.com/hapifhir/hapi-fhir/issues/2444.
implementation deps.caffeine
implementation deps.cql_engine.fhir
implementation deps.guava
implementation deps.kotlin.stdlib
implementation deps.room.ktx
implementation deps.room.runtime
implementation deps.work.runtime
implementation deps.json_tools.json_patch
kapt deps.room.compiler
testImplementation deps.atsl.core
testImplementation deps.junit
testImplementation deps.robolectric
testImplementation deps.truth
}