Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / vpn / build.gradle.kts
build.gradle.kts41 lines · 1.1 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 `:vpn:metadata` task name either way. |
| 5 | id("common-conventions-preview-metadata") |
| 6 | alias(libs.plugins.ksp) |
| 7 | } |
| 8 | |
| 9 | launcherIcon { |
| 10 | symbol = "vpn_lock" |
| 11 | } |
| 12 | |
| 13 | android { |
| 14 | defaultConfig { |
| 15 | applicationId = "com.vayunmathur.vpn" |
| 16 | minSdk = 31 // required for VpnService with per-app config etc (keep same as others) |
| 17 | } |
| 18 | packaging { |
| 19 | jniLibs { |
| 20 | pickFirsts.add("**/libc++_shared.so") |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | androidComponents { |
| 26 | onVariants { variant -> |
| 27 | variant.sources.jniLibs?.addStaticSourceDirectory( |
| 28 | layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath |
| 29 | ) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | rustNativeLib("vpn_wireguard", "vpn") |
| 34 | |
| 35 | dependencies { |
| 36 | implementRoom(libs) |
| 37 | implementation(project(":library:room")) |
| 38 | implementation(libs.androidx.datastore.preferences) |
| 39 | // User-supplied VPN endpoint: cannot pin, must use platform SYSTEM trust; document escape hatch. |
| 40 | implementation(project(":library:network")) |
| 41 | } |