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

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

build.gradle.kts40 lines · 1.3 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
4 // instrumented test on a device. Same `:web:metadata` task name either way.
5 id("common-conventions-preview-metadata")
6 alias(libs.plugins.ksp)
7}
8
9launcherIcon {
10 symbol = "language"
11}
12
13android {
14 defaultConfig {
15 applicationId = "com.vayunmathur.web"
16 }
17}
18
19androidComponents {
20 onVariants { variant ->
21 val rustDir = layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath
22 variant.sources.jniLibs?.addStaticSourceDirectory(rustDir)
23 }
24}
25
26// Brave Shields engine (Rust + adblock-rust). See web/src/main/rust/.
27rustNativeLib("web_shields", "shields")
28
29dependencies {
30 implementRoom(libs)
31 implementation(project(":library:room"))
32 implementation(libs.androidx.webkit)
33 implementation(libs.androidx.browser)
34 implementation(libs.androidx.datastore.preferences)
35 implementation(libs.androidx.lifecycle.runtime.compose)
36 implementation(libs.brotli.dec) // shields filter lists ship brotli-compressed
37 implementation(project(":library:image"))
38 // Browser must allow all certs (any host + corp proxies via user CAs) — SYSTEM permissive, documents intent.
39 implementation(project(":library:network"))
40}