1
0
mobiliosios-internetines-pa.../Lab1/app/build.gradle.kts
2024-11-17 18:42:25 +02:00

81 lines
2.4 KiB
Plaintext

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
id("kotlin-android")
id("kotlin-kapt")
}
android {
namespace = "com.example.lab_v4"
compileSdk = 35
defaultConfig {
applicationId = "com.example.lab_v4"
minSdk = 24
targetSdk = 34
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 {
viewBinding = true
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.activity)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
// Material Design
implementation("com.google.android.material:material:1.12.0")
// Navigation Component
implementation("androidx.navigation:navigation-fragment-ktx:2.8.3")
implementation("androidx.navigation:navigation-ui-ktx:2.8.3")
// Room components
implementation("androidx.room:room-runtime:2.6.1")
kapt("androidx.room:room-compiler:2.6.1")
implementation("androidx.room:room-ktx:2.6.1")
// Lifecycle components
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
implementation("androidx.lifecycle:lifecycle-common-java8:2.8.7")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")
// Kotlin components
//implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72")
//api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
//api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9")
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
//DataBinding
//kapt("com.android.databinding:compiler:3.2.0-alpha10")
}