|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("org.jetbrains.kotlin.android") |
| 4 | +} |
| 5 | + |
| 6 | +android { |
| 7 | + namespace = "com.google.android.fhir.workflow.demo" |
| 8 | + compileSdk = Sdk.COMPILE_SDK |
| 9 | + |
| 10 | + defaultConfig { |
| 11 | + applicationId = Releases.WorkflowDemo.applicationId |
| 12 | + minSdk = Sdk.MIN_SDK |
| 13 | + targetSdk = Sdk.TARGET_SDK |
| 14 | + versionCode = Releases.WorkflowDemo.versionCode |
| 15 | + versionName = Releases.WorkflowDemo.versionName |
| 16 | + testInstrumentationRunner = Dependencies.androidJunitRunner |
| 17 | + } |
| 18 | + |
| 19 | + buildTypes { |
| 20 | + release { |
| 21 | + isMinifyEnabled = false |
| 22 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") |
| 23 | + } |
| 24 | + } |
| 25 | + compileOptions { |
| 26 | + // sourceCompatibility = JavaVersion.VERSION_1_8 |
| 27 | + // targetCompatibility = JavaVersion.VERSION_1_8 |
| 28 | + // Flag to enable support for the new language APIs |
| 29 | + // See https://developer.android.com/studio/write/java8-support |
| 30 | + isCoreLibraryDesugaringEnabled = true |
| 31 | + } |
| 32 | + // kotlinOptions { |
| 33 | + // jvmTarget = "1.8" |
| 34 | + // } |
| 35 | + kotlin { jvmToolchain(11) } |
| 36 | + packaging { |
| 37 | + resources.excludes.addAll( |
| 38 | + listOf( |
| 39 | + "META-INF/ASL-2.0.txt", |
| 40 | + "META-INF/LGPL-3.0.txt", |
| 41 | + "META-INF/LICENSE.md", |
| 42 | + "META-INF/NOTICE.md", |
| 43 | + "META-INF/INDEX.LIST", |
| 44 | + ), |
| 45 | + ) |
| 46 | + } |
| 47 | +} |
| 48 | + |
| 49 | +dependencies { |
| 50 | + androidTestImplementation(libs.androidx.test.espresso.core) |
| 51 | + androidTestImplementation(libs.androidx.test.ext.junit) |
| 52 | + |
| 53 | + compileOnly(libs.opencds.cqf.fhir.cr) |
| 54 | + coreLibraryDesugaring(Dependencies.desugarJdkLibs) |
| 55 | + |
| 56 | + implementation(libs.androidx.appcompat) |
| 57 | + implementation(libs.androidx.constraintlayout) |
| 58 | + implementation(libs.androidx.core) |
| 59 | + implementation(libs.androidx.fragment) |
| 60 | + implementation(libs.androidx.lifecycle.livedata) |
| 61 | + implementation(libs.androidx.lifecycle.viewmodel) |
| 62 | + implementation(libs.material) |
| 63 | + implementation(project(":engine")) |
| 64 | + implementation(project(":knowledge")) { |
| 65 | + exclude(group = "com.google.android.fhir", module = "engine") |
| 66 | + } |
| 67 | + implementation(project(":workflow")) { |
| 68 | + exclude(group = "com.google.android.fhir", module = "engine") |
| 69 | + exclude(group = "com.google.android.fhir", module = "knowledge") |
| 70 | + } |
| 71 | + implementation(project(":workflow-testing")) |
| 72 | + |
| 73 | + testImplementation(libs.junit) |
| 74 | + constraints { |
| 75 | + Dependencies.hapiFhirConstraints().forEach { (libName, constraints) -> |
| 76 | + api(libName, constraints) |
| 77 | + implementation(libName, constraints) |
| 78 | + } |
| 79 | + } |
| 80 | +} |
0 commit comments