vn-warehouse/app/build.gradle

170 lines
5.7 KiB
Groovy
Raw Normal View History

2020-05-04 11:15:24 +00:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
2020-09-16 21:09:44 +00:00
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
2024-02-07 10:53:58 +00:00
apply plugin: 'com.google.devtools.ksp'
2020-05-04 11:15:24 +00:00
android {
2024-06-28 08:16:19 +00:00
namespace = "es.verdnatura"
2024-02-20 08:35:16 +00:00
compileSdk 34
2020-05-04 11:15:24 +00:00
defaultConfig {
applicationId "es.verdnatura"
2024-02-27 08:48:47 +00:00
minSdkVersion 26
2024-02-20 08:35:16 +00:00
targetSdkVersion 33 // se deja con target si no Play Protect la bloquea
2024-09-19 11:00:09 +00:00
versionCode 330
versionName = "24.38Beta"
2020-05-04 11:15:24 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
2024-07-24 11:32:32 +00:00
/*debuggable false
shrinkResources true
minifyEnabled true*/
2020-05-04 11:15:24 +00:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
2023-01-09 11:36:51 +00:00
//package de la app general = "package_name": "es.verdnatura"
//package de la app beta = "package_name": "es.verdnatura.sfusion"
2024-08-09 06:10:44 +00:00
applicationVariants.all { variant ->
variant.outputs.all { output ->
def flavorName = variant.productFlavors[0].name
def apkName
if (flavorName == "beta") {
apkName = "vn-pickingBeta.apk"
} else if (flavorName == "general") {
apkName = "vn-picking.apk"
} else {
apkName = "vn-picking.apk"
}
output.outputFileName = apkName
}
}
}
2024-02-09 10:38:38 +00:00
flavorDimensions += "version"
productFlavors {
create("beta") {
applicationIdSuffix = ".sfusion"
}
create("general") {
//versionNameSuffix = "General"
}
2020-05-04 11:15:24 +00:00
}
buildFeatures {
viewBinding = true
2024-02-27 08:48:47 +00:00
}
/*kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
2024-02-27 08:48:47 +00:00
kotlin {
jvmToolchain(8)
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.3"
}
*/
2020-05-04 11:15:24 +00:00
dataBinding {
enabled = true
}
2020-05-14 00:58:48 +00:00
compileOptions {
2024-07-01 09:48:41 +00:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2020-05-14 00:58:48 +00:00
}
2020-05-04 11:15:24 +00:00
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2024-08-12 10:32:29 +00:00
implementation 'com.google.firebase:firebase-crashlytics-ktx:19.0.3'
2024-06-28 08:16:19 +00:00
implementation 'com.google.firebase:firebase-analytics-ktx:22.0.2'
implementation 'com.google.android.gms:play-services-location:21.3.0'
2024-03-06 11:49:02 +00:00
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
2024-08-12 10:32:29 +00:00
implementation 'androidx.core:core-ktx:1.13.1'
2024-02-20 08:35:16 +00:00
kapt "androidx.room:room-compiler:2.6.1"
implementation 'androidx.room:room-ktx:2.6.1'
2020-05-04 11:15:24 +00:00
debugImplementation fileTree(dir: 'libs/debug', include: ['*.jar'])
releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar'])
2022-11-02 10:45:31 +00:00
//canvas
implementation 'com.simplify:ink:1.0.0'
2020-05-04 11:15:24 +00:00
// Kotlin and Android
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
2024-07-01 09:48:41 +00:00
implementation 'androidx.appcompat:appcompat:1.7.0'
2024-06-28 08:16:19 +00:00
implementation 'androidx.core:core-ktx:1.13.1'
2024-08-12 10:32:29 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
2020-05-04 11:15:24 +00:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
2024-03-12 11:27:25 +00:00
//tests
2024-02-07 10:53:58 +00:00
testImplementation 'junit:junit:4.13.2'
2024-07-01 09:48:41 +00:00
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
2024-06-28 08:16:19 +00:00
implementation 'com.google.android.material:material:1.12.0'
2024-02-07 10:53:58 +00:00
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
2020-05-04 11:15:24 +00:00
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation "com.airbnb.android:lottie:$lottieVersion"
2024-02-07 10:53:58 +00:00
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
//Fragments
2024-08-12 10:32:29 +00:00
implementation("androidx.fragment:fragment-ktx:1.8.2")
2020-05-04 11:15:24 +00:00
// Architecture components
2024-08-12 10:32:29 +00:00
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.8.4"
2024-02-07 10:53:58 +00:00
implementation "androidx.legacy:legacy-support-v4:1.0.0"
//Koin new resolve
implementation "io.insert-koin:koin-core:$koin"
implementation "io.insert-koin:koin-android:$koin"
implementation "io.insert-koin:koin-androidx-scope:$koin"
implementation "io.insert-koin:koin-androidx-viewmodel:$koin"
2020-05-04 11:15:24 +00:00
// Image libraries
implementation "io.coil-kt:coil:$coil"
implementation "com.github.bumptech.glide:glide:$glide"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide"
2024-08-12 10:32:29 +00:00
//kapt "com.github.bumptech.glide:compiler:$glide"
ksp("com.github.bumptech.glide:ksp:$glide")
2020-05-12 21:54:59 +00:00
2020-09-16 21:09:44 +00:00
// Add the Firebase Crashlytics SDK.
2024-06-28 08:16:19 +00:00
implementation 'com.google.firebase:firebase-analytics:22.0.2'
2020-09-16 21:09:44 +00:00
//search
implementation 'com.github.mirrajabi:search-dialog:1.1'
//logs
implementation 'com.jakewharton.timber:timber:4.7.1'
2022-11-02 10:45:31 +00:00
//pickerImage
implementation 'com.github.esafirm:android-image-picker:3.0.0-beta5'
//preferences
2024-06-28 08:16:19 +00:00
implementation("androidx.datastore:datastore-preferences:1.1.1")
implementation 'androidx.datastore:datastore-core:1.1.1'
2024-02-27 08:48:47 +00:00
// Compose
2024-04-23 06:06:21 +00:00
/* implementation(platform("androidx.compose:compose-bom:2024.02.01"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.material:material")
implementation("androidx.compose.runtime:runtime")
implementation("androidx.activity:activity-compose:1.8.2")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")*/
2020-05-04 11:15:24 +00:00
}