Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / watch-wear / build.gradle.kts
build.gradle.kts41 lines · 1.2 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-wear") |
| 3 | id("common-conventions-preview-metadata") |
| 4 | } |
| 5 | |
| 6 | launcherIcon { |
| 7 | symbol = "watch" |
| 8 | } |
| 9 | |
| 10 | android { |
| 11 | // Same applicationId + signing as the phone Watch app: the conduit |
| 12 | // handshake and the signature permission require one identity. |
| 13 | namespace = "com.vayunmathur.watch.wear" |
| 14 | defaultConfig { |
| 15 | applicationId = "com.vayunmathur.watch" |
| 16 | minSdk = 31 |
| 17 | // Pixel Watch 5 is armeabi-v7a (32-bit) only: common-conventions-wear |
| 18 | // hardcodes arm64-v8a in its release build type, so an arm64-only APK |
| 19 | // is rejected at install. This module uses that convention (not |
| 20 | // common-conventions-app), so there is no nativeAbis opt-in here — |
| 21 | // declare the equivalent abiFilter directly. |
| 22 | ndk { |
| 23 | abiFilters.add("armeabi-v7a") |
| 24 | } |
| 25 | } |
| 26 | buildTypes { |
| 27 | release { |
| 28 | ndk { |
| 29 | abiFilters.add("armeabi-v7a") |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | dependencies { |
| 36 | implementation(project(":library:wearlink")) |
| 37 | implementation(libs.androidx.wear.watchface) |
| 38 | implementation(libs.kotlinx.coroutines.android) |
| 39 | testImplementation(libs.kotlin.test) |
| 40 | testImplementation(libs.kotlin.test.junit) |
| 41 | } |