Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / contacts / build.gradle.kts

build.gradle.kts40 lines · 1.5 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
4 // instrumented test on a device. Same `:contacts:metadata` task name either way.
5 id("common-conventions-preview-metadata")
6}
7
8launcherIcon {
9 symbol = "person"
10}
11
12// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.
13nativeAbis {
14 armv7 = true
15}
16
17android {
18 defaultConfig {
19 applicationId = "com.vayunmathur.contacts"
20 }
21 // vCard parser tests call the real Log facade on the JVM: without this every
22 // android.util stub throws "not mocked". Same flag :maps sets for its
23 // side-file reader tests.
24 testOptions.unitTests.isReturnDefaultValues = true
25}
26
27dependencies {
28 // VCF export/import now uses java.io BufferedReader/Writer – no okio needed
29 implementation(libs.libphonenumber)
30 // Both sides of the Wear OS sync live in this one APK (same
31 // applicationId and signing on phone and watch):
32 // sync/WearContactsSync publishes the phone snapshot, sync/WearLinkBridge
33 // receives it on a watch. FormFactor picks the side at runtime.
34 implementation(project(":library:wearlink"))
35 implementation(libs.androidx.work.runtime.ktx)
36 // Watch experience (ui/Wear*): Wear Compose for the watch screens.
37 implementation(libs.androidx.wear.compose.material)
38 implementation(libs.androidx.wear.compose.foundation)
39 implementation(libs.kotlinx.coroutines.android)
40}