Some checks failed
Android CI / build (push) Has been cancelled
Рефакторинг без смены поведения (вывод профилей и runtime JSON побайтно прежний). - ParsedConfig: профиль разбирается один раз на подключение (было ~21 разбора одного JSON); перегрузки ConfigAnalyzer/BootstrapConfig/RoutingConfigEditor/ FailoverPlanner/RuntimeConfigBuilder, String-версии — тонкие обёртки; ParsedConfigEquivalenceTest на всех фикстурах и пресетах. - core/model: ProfileSkeleton — единственный каркас профиля (tun, selector, direct, hijack-dns, dns) для подписок и WireGuard; OutboundSpec — одна сборка sing-box outbound/endpoint по протоколу; JsonConfig перенесён в core/model. Golden-тесты импорта и WireGuard проходят без правки ожиданий. - VpnController 1218 → 502 строк: ConnectionDiagnosticsRecorder, LatencyPublisher. - VpnRuntime 1656 → 1010 строк: NetworkAutomationCoordinator, RecoveryCoordinator, ServerSwitchCoordinator; состояние по-прежнему меняется только в акторе. - SessionHealthVerifier: одна DNS/HTTPS-проверка для запуска и переключения. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
593 B
Kotlin
23 lines
593 B
Kotlin
import com.android.build.api.dsl.LibraryExtension
|
|
|
|
apply(plugin = "com.android.library")
|
|
|
|
extensions.configure<LibraryExtension> {
|
|
namespace = "io.github.zapretkvn.wireguardimport"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
add("implementation", project(":core:model"))
|
|
add("implementation", "org.jetbrains.kotlinx:kotlinx-serialization-json:1.10.0")
|
|
add("testImplementation", "junit:junit:4.13.2")
|
|
}
|