-
Notifications
You must be signed in to change notification settings - Fork 248
/
build.gradle.kts
69 lines (62 loc) · 2.39 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
plugins {
id(Plugins.BuildPlugins.application)
id(Plugins.BuildPlugins.kotlinAndroid)
id(Plugins.BuildPlugins.kotlinKapt)
id(Plugins.BuildPlugins.navSafeArgs)
}
configureRuler()
android {
compileSdk = Sdk.compileSdk
defaultConfig {
applicationId = Releases.Demo.applicationId
minSdk = Sdk.minSdk
targetSdk = Sdk.targetSdk
versionCode = Releases.Demo.versionCode
versionName = Releases.Demo.versionName
testInstrumentationRunner = Dependencies.androidJunitRunner
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
buildFeatures { viewBinding = true }
compileOptions {
// Flag to enable support for the new language APIs
// See https://developer.android.com/studio/write/java8-support
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = Java.sourceCompatibility
targetCompatibility = Java.targetCompatibility
}
kotlinOptions { jvmTarget = Java.kotlinJvmTarget.toString() }
packagingOptions {
resources.excludes.addAll(listOf("META-INF/ASL-2.0.txt", "META-INF/LGPL-3.0.txt"))
}
}
dependencies {
androidTestImplementation(Dependencies.AndroidxTest.extJunit)
androidTestImplementation(Dependencies.Espresso.espressoCore)
coreLibraryDesugaring(Dependencies.desugarJdkLibs)
implementation(Dependencies.Androidx.activity)
implementation(Dependencies.Androidx.appCompat)
implementation(Dependencies.Androidx.constraintLayout)
implementation(Dependencies.Androidx.fragmentKtx)
implementation(Dependencies.Androidx.recyclerView)
implementation(Dependencies.Androidx.workRuntimeKtx)
implementation(Dependencies.Kotlin.kotlinCoroutinesAndroid)
implementation(Dependencies.Kotlin.kotlinCoroutinesCore)
implementation(Dependencies.Kotlin.stdlib)
implementation(Dependencies.Lifecycle.liveDataKtx)
implementation(Dependencies.Lifecycle.runtime)
implementation(Dependencies.Lifecycle.viewModelKtx)
implementation(Dependencies.Navigation.navFragmentKtx)
implementation(Dependencies.Navigation.navUiKtx)
implementation(Dependencies.material)
implementation(Dependencies.timber)
implementation(project(":datacapture")) {
exclude(group = Dependencies.androidFhirGroup, module = Dependencies.androidFhirEngineModule)
}
implementation(project(":engine"))
testImplementation(Dependencies.junit)
}