87 lines
2.6 KiB
Kotlin
87 lines
2.6 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.ksp) // <-- CAMBIO: Usamos el plugin KSP en lugar de kapt
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.desarrollo"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.desarrollo"
|
|
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 {
|
|
compose = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.11"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// --- Core y Utilidades ---
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation("io.coil-kt:coil-compose:2.6.0")
|
|
|
|
// --- Jetpack Compose (BOM) ---
|
|
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.compose.material.icons.extended)
|
|
|
|
// --- Navegación ---
|
|
implementation(libs.androidx.navigation.compose)
|
|
|
|
// --- State Management y ViewModel ---
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation("androidx.compose.runtime:runtime-livedata")
|
|
|
|
// --- Persistencia de Datos (Room y DataStore) ---
|
|
implementation(libs.androidx.datastore.preferences)
|
|
|
|
// Implementaciones de Room
|
|
implementation(libs.androidx.room.runtime)
|
|
implementation(libs.androidx.room.ktx)
|
|
ksp(libs.androidx.room.compiler) // <-- CAMBIO: Se usa ksp para el procesador de anotaciones
|
|
|
|
// --- Testing ---
|
|
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)
|
|
}
|