Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / passwords / build.gradle.kts
build.gradle.kts53 lines · 1.8 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 `:<module>:metadata` task name either way. |
| 5 | id("common-conventions-preview-metadata") |
| 6 | alias(libs.plugins.ksp) |
| 7 | } |
| 8 | |
| 9 | launcherIcon { |
| 10 | symbol = "key_vertical" |
| 11 | } |
| 12 | |
| 13 | android { |
| 14 | defaultConfig { |
| 15 | minSdk = 35 |
| 16 | applicationId = "com.vayunmathur.passwords" |
| 17 | } |
| 18 | packaging { |
| 19 | resources.excludes += "META-INF/INDEX.LIST" |
| 20 | } |
| 21 | testOptions { |
| 22 | // CtapProcessor logs through android.util.Log, which is a stub that throws in JVM unit |
| 23 | // tests. Returning defaults lets the CTAP logic be tested without stripping the logging |
| 24 | // that makes caBLE sessions diagnosable on a device. |
| 25 | unitTests.isReturnDefaultValues = true |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | androidComponents { |
| 30 | onVariants { variant -> |
| 31 | variant.sources.jniLibs?.addStaticSourceDirectory( |
| 32 | layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath |
| 33 | ) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // Native KDBX (KeePass) read/write (Rust `keepass` crate). See passwords/src/main/rust/. |
| 38 | // Sole KDBX implementation (replaced keepassjava2 + Bouncy Castle, both now removed); |
| 39 | // existing .kdbx vaults stay interoperable. |
| 40 | rustNativeLib("passwords_kdbx", "passwords-kdbx") |
| 41 | |
| 42 | dependencies { |
| 43 | implementation(project(":library:biometric")) |
| 44 | implementRoom(libs) |
| 45 | implementation(project(":library:room")) |
| 46 | implementation(libs.androidx.fragment.ktx) |
| 47 | implementation(libs.androidx.biometric) |
| 48 | implementation(libs.androidx.credentials.lib) |
| 49 | implementation(libs.androidx.autofill) |
| 50 | implementation(libs.androidx.work.runtime.ktx) |
| 51 | // Own WebSocketClient via :library:network – no Ktor |
| 52 | implementation(project(":library:network")) |
| 53 | } |