123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- plugins {
- alias(libs.plugins.android.application)
- alias(libs.plugins.kotlin.android)
- kotlin("plugin.serialization") version "1.8.20"
- }
- android {
- namespace = "com.example.eatwell"
- compileSdk = 34
- defaultConfig {
- applicationId = "com.example.eatwell"
- minSdk = 24
- targetSdk = 34
- versionCode = 1
- versionName = "1.0"
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- vectorDrawables {
- useSupportLibrary = true
- }
- }
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
- // Настройка для компиляции Java с JDK 11
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
- }
- // Настройка для компиляции Kotlin с JVM Target 11
- kotlinOptions {
- jvmTarget = "11"
- }
- buildFeatures {
- compose = true
- }
- composeOptions {
- kotlinCompilerExtensionVersion = "1.5.1"
- }
- packaging {
- resources {
- excludes += "/META-INF/{AL2.0,LGPL2.1}"
- }
- }
- }
- 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)
- implementation(libs.androidx.navigation.compose)
- implementation(libs.androidx.junit.ktx)
- 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)
- testImplementation ("junit:junit:4.13.2")
- testImplementation ("org.mockito:mockito-core:4.0.0")
- testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0")
- testImplementation ("androidx.arch.core:core-testing:2.1.0")
- testImplementation ("org.mockito:mockito-inline:4.0.0")
- testImplementation("androidx.test:core:1.5.0")
- testImplementation("org.mockito.kotlin:mockito-kotlin:5.0.0")
- testImplementation("io.mockk:mockk:1.13.5")
- testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
- implementation(platform("io.github.jan-tennert.supabase:bom:2.6.1"))
- implementation("io.github.jan-tennert.supabase:postgrest-kt")
- implementation("io.ktor:ktor-client-android:2.3.10")
- implementation("io.github.jan-tennert.supabase:storage-kt:2.6.1")
- implementation("io.coil-kt:coil-compose:2.2.0")
- implementation ("com.google.accompanist:accompanist-adaptive:0.30.1")
- }
|