Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / measure / build.gradle.kts
build.gradle.kts35 lines · 983 BRaw
| 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 `:measure:metadata` task name either way. |
| 5 | id("common-conventions-preview-metadata") |
| 6 | } |
| 7 | |
| 8 | launcherIcon { |
| 9 | symbol = "straighten" |
| 10 | } |
| 11 | |
| 12 | android { |
| 13 | defaultConfig { |
| 14 | applicationId = "com.vayunmathur.measure" |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | androidComponents { |
| 19 | onVariants { variant -> |
| 20 | variant.sources.jniLibs?.addStaticSourceDirectory( |
| 21 | layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath |
| 22 | ) |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Visual-inertial odometry engine (Rust). See measure/src/main/rust/. |
| 27 | rustNativeLib("measure_vio", "measure") |
| 28 | |
| 29 | dependencies { |
| 30 | implementation(libs.androidx.camera.core) |
| 31 | implementation(libs.androidx.camera.camera2) |
| 32 | implementation(libs.androidx.camera.lifecycle) |
| 33 | implementation(libs.androidx.camera.compose) |
| 34 | implementation(libs.androidx.datastore.preferences) |
| 35 | } |