Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / health / build.gradle.kts
build.gradle.kts41 lines · 1.2 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-app") |
| 3 | // Listing screenshots come from Compose previews (src/screenshotTest), not from an |
| 4 | // instrumented test on a device. Same `:health:metadata` task name either way. |
| 5 | id("common-conventions-preview-metadata") |
| 6 | alias(libs.plugins.ksp) |
| 7 | } |
| 8 | |
| 9 | launcherIcon { |
| 10 | symbol = "ecg_heart" |
| 11 | } |
| 12 | |
| 13 | android { |
| 14 | defaultConfig { |
| 15 | applicationId = "com.vayunmathur.health" |
| 16 | } |
| 17 | |
| 18 | androidResources { |
| 19 | // The food database asset is already brotli-compressed by |
| 20 | // scripts/generate_food_db.py. Letting AAPT deflate it again costs |
| 21 | // build time, gains nothing, and makes the app pay a second inflate |
| 22 | // pass on top of its own when unpacking it. |
| 23 | noCompress += "br" |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | dependencies { |
| 28 | // healthconnect |
| 29 | implementation(libs.androidx.connect.client) |
| 30 | |
| 31 | implementation(libs.androidx.work.runtime.ktx) |
| 32 | |
| 33 | // room |
| 34 | implementRoom(libs) |
| 35 | implementation(project(":library:room")) |
| 36 | implementation(project(":sdk:openassistant")) |
| 37 | |
| 38 | // Decodes the brotli-compressed food database asset. This is the only |
| 39 | // reason the app links a codec at all; it does not use the network. |
| 40 | implementation(libs.brotli.dec) |
| 41 | } |