70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
plugins {
|
||
id("com.android.application")
|
||
id("org.jetbrains.kotlin.android")
|
||
id("org.jetbrains.kotlin.plugin.compose")
|
||
id("org.jetbrains.kotlin.plugin.serialization")
|
||
id("com.google.devtools.ksp")
|
||
}
|
||
|
||
android {
|
||
namespace = "com.watchbody.phone"
|
||
compileSdk = 36
|
||
|
||
defaultConfig {
|
||
applicationId = "com.watchbody.phone"
|
||
minSdk = 26
|
||
targetSdk = 36
|
||
versionCode = 1
|
||
versionName = "0.1.0"
|
||
}
|
||
buildTypes {
|
||
release {
|
||
isMinifyEnabled = false
|
||
}
|
||
}
|
||
buildFeatures {
|
||
compose = true
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility = JavaVersion.VERSION_17
|
||
targetCompatibility = JavaVersion.VERSION_17
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = "17"
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
// LocalDb (архитектура 1.2) — Room + KSP
|
||
implementation("androidx.room:room-runtime:2.7.1")
|
||
implementation("androidx.room:room-ktx:2.7.1")
|
||
ksp("androidx.room:room-compiler:2.7.1")
|
||
|
||
// очередь синхронизации — WorkManager (tech-req 5)
|
||
implementation("androidx.work:work-runtime-ktx:2.10.0")
|
||
|
||
// настройки — DataStore (Preferences)
|
||
implementation("androidx.datastore:datastore-preferences:1.1.4")
|
||
|
||
// API-клиент: Retrofit + OkHttp + kotlinx-serialization
|
||
implementation("com.squareup.retrofit2:retrofit:2.11.0")
|
||
implementation("com.squareup.retrofit2:converter-kotlinx-serialization:2.11.0")
|
||
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
|
||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1")
|
||
|
||
// UI (m10): Compose + Material 3, тёмная тема (tech-req ОВ-6)
|
||
val composeBom = platform("androidx.compose:compose-bom:2024.12.01")
|
||
implementation(composeBom)
|
||
implementation("androidx.compose.ui:ui")
|
||
implementation("androidx.compose.material3:material3")
|
||
implementation("androidx.activity:activity-compose:1.9.3")
|
||
implementation("androidx.navigation:navigation-compose:2.8.5")
|
||
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
||
debugImplementation("androidx.compose.ui:ui-tooling")
|
||
implementation("androidx.compose.ui:ui-tooling-preview")
|
||
|
||
testImplementation("junit:junit:4.13.2")
|
||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1")
|
||
}
|