ZapretKVN-android/core/ui-model/build.gradle.kts
loop-uh ac64b1b4af
Some checks failed
Android CI / build (push) Has been cancelled
Модули: :core:model и :feature:{home,servers,routing,settings}
- :core:model: типы значений для UI (состояние VPN, профили, маршруты,
  приложения, диагностика, настройки, обновления) с прежними пакетами;
  типы обновлений вынесены из :app-updater, смешанные файлы разделены.
- :feature:*: экраны, презентеры и их JVM-тесты; *Route.kt, ViewModel,
  BuildConfig и QR-лаунчеры остаются в :app. Общие флаги, release notes,
  PresetPicker, DiagnosticShareButton — в :core:designsystem, форматтер
  задержки и ScreenshotPrivacy — в :core:ui-model.
- verify-project.sh: запрет зависимости :feature:* от :app и импорта рантайма
  VPN/ViewModel/AppContainer из feature/**; пути delay и AboutPage обновлены.
- CI и build-test-bundle запускают testDebugUnitTest всех модулей.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:37:48 +03:00

25 lines
744 B
Kotlin

import com.android.build.api.dsl.LibraryExtension
apply(plugin = "com.android.library")
// Pure presentation helpers (formatting, Russian plurals, server-name parsing).
// The code must stay free of Android and domain types so host tests stay fast.
extensions.configure<LibraryExtension> {
namespace = "io.github.zapretkvn.core.uimodel"
compileSdk = 36
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
// formatLatency reads the latency value types (LatencyProbeState) from :core:model.
add("api", project(":core:model"))
add("testImplementation", "junit:junit:4.13.2")
}