185 lines
6.0 KiB
Plaintext
185 lines
6.0 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-kapt")
|
|
id("com.google.gms.google-services")
|
|
id("com.google.firebase.crashlytics")
|
|
id("com.google.devtools.ksp")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
}
|
|
|
|
android {
|
|
namespace = "es.verdnatura"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "es.verdnatura"
|
|
minSdk = 26
|
|
targetSdk = 33 // se deja con target si no Play Protect la bloquea
|
|
versionCode = 397 //JAF 393 en informatica
|
|
versionName = "25.6"
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
//debuggable = false
|
|
//shrinkResources = true
|
|
//minifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
|
)
|
|
}
|
|
getByName("debug") {
|
|
isMinifyEnabled = false
|
|
|
|
}
|
|
}
|
|
//package de la app general = "package_name": "es.verdnatura"
|
|
//package de la app beta = "package_name": "es.verdnatura.sfusion"
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
val flavorName = variant.productFlavors[0].name
|
|
val buildTypeName = variant.buildType.name
|
|
|
|
val apkName = when (flavorName) {
|
|
"beta" -> "vn-pickingBeta-${buildTypeName}.apk"
|
|
else -> "vn-picking-${buildTypeName}.apk"
|
|
}
|
|
output.outputFile.renameTo(File(output.outputFile.parentFile, apkName))
|
|
true
|
|
}
|
|
|
|
}
|
|
flavorDimensions += "version"
|
|
productFlavors {
|
|
create("beta") {
|
|
applicationIdSuffix = ".sfusion"
|
|
}
|
|
create("general") {}
|
|
}
|
|
kapt {
|
|
correctErrorTypes = true
|
|
useBuildCache = true
|
|
|
|
kotlinOptions {
|
|
languageVersion = "1.9"
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
//compose = true
|
|
|
|
/*kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.4.3"
|
|
}
|
|
*/
|
|
dataBinding = true
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
/* composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.15"
|
|
}*/
|
|
/* kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}*/
|
|
|
|
dependencies {
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
implementation(libs.firebase.crashlytics.ktx)
|
|
implementation(libs.firebase.analytics.ktx)
|
|
implementation(libs.play.services.location)
|
|
implementation(libs.navigation.fragment.ktx)
|
|
implementation(libs.androidx.navigation.ui.ktx)
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.recyclerview)
|
|
implementation(libs.androidx.room.ktx)
|
|
//kapt(libs.androidx.room.compiler)
|
|
ksp(libs.androidx.room.compiler)
|
|
implementation(libs.androidx.room.runtime)
|
|
implementation(libs.ink)
|
|
implementation(libs.kotlin.stdlib.jdk7)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.constraintlayout)
|
|
implementation(libs.androidx.legacy.support.v4)
|
|
implementation(libs.androidx.lifecycle.extensions)
|
|
implementation(libs.material)
|
|
implementation(libs.retrofit)
|
|
implementation(libs.converter.gson)
|
|
implementation(libs.converter.scalars)
|
|
implementation(libs.lottie)
|
|
implementation(libs.androidx.swiperefreshlayout)
|
|
implementation(libs.androidx.fragment.ktx)
|
|
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
|
implementation(libs.androidx.lifecycle.livedata.ktx)
|
|
implementation(libs.androidx.legacy.support.v4)
|
|
implementation(libs.koin.core)
|
|
implementation(libs.koin.android)
|
|
implementation(libs.koin.androidx.scope)
|
|
implementation(libs.koin.androidx.viewmodel)
|
|
implementation(libs.glide)
|
|
implementation(libs.okhttp3.integration)
|
|
ksp(libs.glide.ksp)
|
|
implementation(libs.firebase.analytics)
|
|
implementation(libs.android.image.picker)
|
|
implementation(libs.androidx.datastore.preferences)
|
|
implementation(libs.androidx.datastore.core)
|
|
implementation(libs.zxing.android.embedded) { isTransitive = false }
|
|
implementation(libs.core)
|
|
//implementation(libs.koin.androidx.compose)
|
|
|
|
// Compose
|
|
dependencies {
|
|
|
|
val composeBom = platform("androidx.compose:compose-bom:2024.10.01")
|
|
implementation(composeBom)
|
|
androidTestImplementation(composeBom)
|
|
|
|
// Choose one of the following:
|
|
// Material Design 3
|
|
implementation(libs.androidx.material3)
|
|
implementation(libs.androidx.ui)
|
|
// Android Studio Preview support
|
|
implementation(libs.androidx.ui.tooling.preview)
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
// UI Tests
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
|
debugImplementation(libs.androidx.ui.test.manifest)
|
|
// custom design system based on Foundation)
|
|
//implementation(libs.androidx.material.icons.core)
|
|
// Optional - Add full set of material icons
|
|
implementation(libs.androidx.material.icons.extended)
|
|
// Optional - Add window size utils
|
|
implementation(libs.androidx.adaptive)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation(libs.lottie.compose)
|
|
|
|
}
|
|
}
|
|
}
|
|
dependencies {
|
|
testImplementation(libs.junit)
|
|
}
|
|
|