ZapretKVN-android/client-reports/build.gradle.kts
loop-uh dfc306ae88
All checks were successful
Android CI / build (push) Successful in 22m0s
Connection reports for status.zapret.moe (S4, dormant until zapret-server-ids)
The service's subscriptions get a report per check of one of their servers:
POST https://reports.zapret.moe/v1/reports, vpnbot client_reports schema 1,
with no prompt and no setting (owner decisions 15-19.11.2026).

- New pure module client-reports: contract and JSON, the zapret-server-ids
  header parser, AttemptClassifier (core failure code and traffic facts to the
  vpnbot ladder; local errors, lost network and DNS mode give no report),
  disk queue and the network token cache. 11 JVM tests.
- The subscription fetch keeps the zapret-server-ids header value
  (HttpURLConnection and the Chromium transport); ServerIdStore maps it to
  server tags per subscription URL hash.
- ClientReporter hooks SessionHealthVerifier.verify (start, fallback, switch)
  and the bootstrap TCP preflight; sends directly first, then through the
  tunnel; GET /v1/network only directly, token kept per Android network.
- docs/CLIENT_REPORTS.md; verify-project knows the new module.

No server is reported until the subscription reply carries the header
(vpnbot task c_c7rxblknfc).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 06:55:15 -05:00

25 lines
1,006 B
Kotlin
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import com.android.build.api.dsl.LibraryExtension
apply(plugin = "com.android.library")
// Отчёты о подключениях для status.zapret.moe (reports.zapret.moe, контракт vpnbot client_reports schema 1):
// формат, очередь на диске, классификация попытки, сетевой токен. Только JDK и kotlinx-json, без Android API,
// поэтому весь модуль проверяется JVM-тестами; сеть и привязка к Android — в приложении.
extensions.configure<LibraryExtension> {
namespace = "io.github.zapretkvn.clientreports"
compileSdk = 36
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
add("implementation", "org.jetbrains.kotlinx:kotlinx-serialization-json:1.10.0")
add("testImplementation", "junit:junit:4.13.2")
}