Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / share / build.gradle.kts
build.gradle.kts34 lines · 967 BRaw
| 1 | plugins { |
| 2 | id("common-conventions-app") |
| 3 | id("common-conventions-preview-metadata") |
| 4 | } |
| 5 | |
| 6 | launcherIcon { |
| 7 | symbol = "share" |
| 8 | } |
| 9 | |
| 10 | android { |
| 11 | defaultConfig { |
| 12 | applicationId = "com.vayunmathur.share" |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | androidComponents { |
| 17 | onVariants { variant -> |
| 18 | variant.sources.jniLibs?.addStaticSourceDirectory( |
| 19 | layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath |
| 20 | ) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // Rust protocol crate (UKEY2, protobuf framing, secure messages, payload). |
| 25 | // See share/src/main/rust/ and share/PROTOCOL_CONTRACT.md. |
| 26 | rustNativeLib("share_nearby", "share") |
| 27 | |
| 28 | dependencies { |
| 29 | // ViewModel/Compose already via common-conventions-app; explicit lifecycle for clarity. |
| 30 | implementation(libs.androidx.lifecycle.viewmodel.ktx) |
| 31 | // @SystemApi NetworkAgent/NetworkProvider for the Mosey `mosey0` AirDrop link; compile-only, |
| 32 | // must NOT be packaged. See :library:aosp-stubs. |
| 33 | compileOnly(project(":library:aosp-stubs")) |
| 34 | } |