ZapretKVN-android/masking/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

26 lines
906 B
Kotlin

import com.android.build.api.dsl.LibraryExtension
apply(plugin = "com.android.library")
// Masking ("Маскировка"): the settings model, the global + per-server merge, validation that
// cites the native cores, and the pure emitters that turn settings into the exact JSON fields
// each native core already reads (Xray mux/xmux/finalmask, Amnezia junk and I1-I5, sing-box TLS
// fragment). No I/O and no Android API, so the whole module is checked by JVM tests.
extensions.configure<LibraryExtension> {
namespace = "io.github.zapretkvn.masking"
compileSdk = 36
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
add("api", "org.jetbrains.kotlinx:kotlinx-serialization-json:1.10.0")
add("testImplementation", "junit:junit:4.13.2")
}