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

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

build.gradle.kts34 lines · 967 BRaw
1plugins {
2 id("common-conventions-app")
3 id("common-conventions-preview-metadata")
4}
5
6launcherIcon {
7 symbol = "share"
8}
9
10android {
11 defaultConfig {
12 applicationId = "com.vayunmathur.share"
13 }
14}
15
16androidComponents {
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.
26rustNativeLib("share_nearby", "share")
27
28dependencies {
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}