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

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

build.gradle.kts56 lines · 1.8 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Store-listing screenshots come from Compose previews (src/screenshotTest).
4 id("common-conventions-preview-metadata")
5}
6
7launcherIcon {
8 symbol = "lock"
9}
10
11// Pixel Watch is armeabi-v7a (32-bit) only; the PGP native lib must ship armv7.
12nativeAbis {
13 armv7 = true
14}
15
16android {
17 defaultConfig {
18 applicationId = "com.vayunmathur.securemail"
19 }
20
21 buildFeatures {
22 buildConfig = true
23 }
24
25 packaging {
26 resources {
27 excludes += "/META-INF/{AL2.0,LGPL2.1}"
28 excludes += "META-INF/NOTICE.md"
29 excludes += "META-INF/LICENSE.md"
30 }
31 }
32}
33
34dependencies {
35 // Custom REST + WebSocket relay to mail.maemail.org (dynamic host → SYSTEM trust).
36 implementation(project(":library:network"))
37 // Biometric gate before the Keystore-wrapped PGP private key is unwrapped.
38 implementation(project(":library:biometric"))
39 // Periodic inbox poll as a backstop behind the live socket.
40 implementation(project(":library:work"))
41 implementation(project(":library:room"))
42 implementRoom(libs)
43 // Address token + onboarded flag.
44 implementation(libs.androidx.datastore.preferences)
45 // OpenPGP via the native Rust core (rPGP in libe2ee_pgp.so). No BouncyCastle.
46 // Split out of :library:e2ee-p2p so non-mail apps don't link rPGP (#873);
47 // securemail is the only consumer of the PGP surface.
48 implementation(project(":library:e2ee-openpgp"))
49 // Merged phone+watch Wear OS experience (single APK, FormFactor routing).
50 implementation(project(":library:wearlink"))
51 implementation(project(":library:log"))
52 implementation(libs.androidx.wear.compose.material)
53 implementation(libs.androidx.wear.compose.foundation)
54 implementation(libs.kotlinx.coroutines.android)
55 implementation(libs.kotlinx.serialization.json)
56}