2025-02-13 16:26:51 +00:00
|
|
|
plugins {
|
|
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.21" // Обновите если необходимо
|
|
|
|
id("kotlin-android")
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
alias(libs.plugins.kotlin.compose)
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.example.testktor"
|
|
|
|
compileSdk = 35
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.example.testktor"
|
|
|
|
minSdk = 24
|
|
|
|
targetSdk = 35
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
|
|
implementation(libs.androidx.ui)
|
|
|
|
implementation(libs.androidx.ui.graphics)
|
|
|
|
implementation(libs.androidx.ui.tooling.preview)
|
|
|
|
implementation(libs.androidx.material3)
|
2025-02-18 20:42:49 +00:00
|
|
|
implementation(libs.androidx.navigation.compose)
|
2025-02-13 16:26:51 +00:00
|
|
|
testImplementation(libs.junit)
|
|
|
|
androidTestImplementation(libs.androidx.junit)
|
|
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
|
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
|
|
debugImplementation(libs.androidx.ui.test.manifest)
|
|
|
|
|
|
|
|
// Ktor dependencies
|
|
|
|
implementation("io.ktor:ktor-client-core:2.0.0")
|
|
|
|
implementation("io.ktor:ktor-client-android:2.0.0")
|
|
|
|
implementation("io.ktor:ktor-client-content-negotiation:2.0.0")
|
|
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:2.0.0")
|
|
|
|
|
|
|
|
// Kotlinx serialization dependencies
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
|
2025-02-18 20:42:49 +00:00
|
|
|
|
|
|
|
// implementation("libs.androidx.navigation.compose")
|
|
|
|
val voyagerVersion = "1.1.0-beta02"
|
|
|
|
implementation("cafe.adriel.voyager:voyager-navigator:$voyagerVersion")
|
|
|
|
implementation("cafe.adriel.voyager:voyager-screenmodel:$voyagerVersion")
|
|
|
|
|
|
|
|
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
|
|
testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
|
|
|
|
|
|
|
|
|
|
|
|
implementation(platform("io.github.jan-tennert.supabase:bom:3.0.3"))
|
|
|
|
implementation("io.github.jan-tennert.supabase:postgrest-kt")
|
|
|
|
implementation("io.ktor:ktor-client-android:3.0.3")
|
2025-02-13 16:26:51 +00:00
|
|
|
}
|