ZapretKVN-android/feature/settings/build.gradle.kts
loop-uh 551bcc4c35 Masking (Маскировка): WireGuard junk/I1, Xray mux/xmux/fragment, TLS fragment
Owner request 2026-11-15, plan approved 2026-11-16. Off by default.

- New pure module :masking (model, codec shared with Windows, global +
  per-server merge, per-core rules citing the pinned cores, presets,
  the screen draft, tester decisions); 54 JVM tests.
- RuntimeConfigBuilder applies masking to the runtime copy of servers
  (slot servers included); the stored profile is never edited; one
  runtime-log line per session.
- Core patch 0016: VLESS option xray_masking -> Xray mux / xmux /
  finalmask, xmux into XHTTP extra when present, unknown keys refused;
  tested through the real Xray parser, libbox rebuilt.
- Settings -> «Маскировка» with per-server choices for the active
  profile; a change restarts a connected VPN («Смена маскировки»).
- WireGuard importer refuses the <c> tag: amneziawg-go v3.1 has no
  builder for it, such a profile never connected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:10:34 -05:00

51 lines
1.9 KiB
Kotlin

import com.android.build.api.dsl.LibraryExtension
plugins {
id("org.jetbrains.kotlin.plugin.compose")
}
apply(plugin = "com.android.library")
// Screens, presenters and UI mappers of one feature. They read only :core:* modules:
// state and callbacks arrive as plain arguments from the *Route.kt adapters in :app,
// so this module must never depend on :app (scripts/verify-project.sh enforces it).
extensions.configure<LibraryExtension> {
namespace = "io.github.zapretkvn.feature.settings"
compileSdk = 36
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
buildFeatures {
compose = true
}
}
dependencies {
val composeBom = platform("androidx.compose:compose-bom:2026.06.00")
add("implementation", project(":core:model"))
add("implementation", project(":core:ui-model"))
add("implementation", project(":core:designsystem"))
add("implementation", project(":masking"))
add("implementation", composeBom)
add("implementation", "androidx.compose.foundation:foundation")
add("implementation", "androidx.compose.material:material-icons-core")
add("implementation", "androidx.compose.material3:material3")
add("implementation", "androidx.compose.ui:ui")
add("implementation", "androidx.compose.ui:ui-tooling-preview")
add("implementation", "androidx.core:core-ktx:1.18.0")
add("implementation", "androidx.activity:activity-compose:1.13.0")
add("implementation", "androidx.lifecycle:lifecycle-runtime-compose:2.9.4")
add("implementation", "androidx.savedstate:savedstate-compose:1.3.2")
add("implementation", "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
add("testImplementation", "junit:junit:4.13.2")
add("testImplementation", "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
}