81 lines
2.8 KiB
Kotlin
81 lines
2.8 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.korexlabs.dhinspeccion"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.korexlabs.dhinspeccion"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionCode = 26
|
|
versionName = "0.17.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables.useSupportLibrary = true
|
|
buildConfigField("String", "API_BASE_URL", "\"https://dhv2.korexlabs.com/api/v3/\"")
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix = ".debug"
|
|
versionNameSuffix = "-debug"
|
|
}
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro",
|
|
)
|
|
// La firma de release NO se redefine aquí. Se conservará la clave histórica.
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions.jvmTarget = "17"
|
|
|
|
packaging.resources.excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
|
|
dependencies {
|
|
val composeBom = platform("androidx.compose:compose-bom:2025.08.01")
|
|
implementation(composeBom)
|
|
androidTestImplementation(composeBom)
|
|
|
|
implementation("androidx.core:core-ktx:1.17.0")
|
|
implementation("androidx.activity:activity-compose:1.10.1")
|
|
implementation("androidx.fragment:fragment-ktx:1.8.9")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.2")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.2")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.biometric:biometric:1.1.0")
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
|
|
implementation("com.squareup.retrofit2:retrofit:2.11.0")
|
|
implementation("com.squareup.retrofit2:converter-moshi:2.11.0")
|
|
implementation("com.squareup.moshi:moshi-kotlin:1.15.2")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.google.android.gms:play-services-location:21.3.0")
|
|
implementation("androidx.exifinterface:exifinterface:1.4.1")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
}
|