Some checks failed
Android CI / build (push) Has been cancelled
- :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>
47 lines
1.7 KiB
Kotlin
47 lines
1.7 KiB
Kotlin
import com.android.build.api.dsl.LibraryExtension
|
|
|
|
plugins {
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
}
|
|
|
|
apply(plugin = "com.android.library")
|
|
|
|
// Theme, tokens and shared Compose components. Shared widgets may take :core:model value types
|
|
// (flags, preset picker); no ViewModels, stores or VPN runtime:
|
|
// feature screens map domain state to plain values before calling the other components.
|
|
extensions.configure<LibraryExtension> {
|
|
namespace = "io.github.zapretkvn.core.designsystem"
|
|
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("api", composeBom)
|
|
add("api", "androidx.compose.foundation:foundation")
|
|
add("api", "androidx.compose.material3:material3")
|
|
add("api", "androidx.compose.material:material-icons-core")
|
|
add("api", "androidx.compose.ui:ui")
|
|
add("api", project(":core:model"))
|
|
add("api", project(":core:ui-model"))
|
|
// Align transitive lifecycle/savedstate with :app so the module resolves only
|
|
// versions already pinned in gradle/verification-metadata.xml.
|
|
add("implementation", "androidx.lifecycle:lifecycle-runtime-compose:2.9.4")
|
|
add("implementation", "androidx.savedstate:savedstate-compose:1.3.2")
|
|
add("implementation", "androidx.core:core-ktx:1.18.0")
|
|
add("implementation", "androidx.activity:activity-compose:1.13.0")
|
|
add("implementation", "androidx.compose.ui:ui-tooling-preview")
|
|
add("testImplementation", "junit:junit:4.13.2")
|
|
}
|