vn-warehouse/app/build.gradle

132 lines
4.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-02-07 10:53:58 +00:00
compileSdk 33 //si 34 problemas con AAPT2
2023-10-10 08:08:02 +00:00
// buildToolsVersion "29.0.3"
2020-05-04 11:15:24 +00:00
defaultConfig {
applicationId "es.verdnatura"
minSdkVersion 24 //21
2024-02-07 10:53:58 +00:00
//targetSdkVersion 33
2024-01-30 09:06:14 +00:00
versionCode 254
versionName = "24.4Beta" //23.48Beta son la misma
2020-05-04 11:15:24 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
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-02-07 10:53:58 +00:00
flavorDimensions( "version")
productFlavors {
create("beta") {
applicationIdSuffix = ".sfusion"
}
create("general") {
//versionNameSuffix = "General"
}
2023-05-31 14:03:41 +00:00
create("alpha"){
applicationIdSuffix = ".alpha"
}
2020-05-04 11:15:24 +00:00
}
buildFeatures {
viewBinding = true
}
2020-05-04 11:15:24 +00:00
dataBinding {
enabled = true
}
2020-05-14 00:58:48 +00:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2020-05-04 11:15:24 +00:00
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2024-02-07 10:53:58 +00:00
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.6.1'
implementation 'com.google.firebase:firebase-analytics-ktx:21.5.0'
implementation 'com.google.android.gms:play-services-location:21.1.0'
kapt "androidx.room:room-compiler:2.5.1" // Problema de string dinámico
implementation 'androidx.room:room-ktx:2.5.1'//Problema de string dinámico
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-02-07 10:53:58 +00:00
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.core:core-ktx:1.11.+'
implementation 'androidx.constraintlayout:constraintlayout:2.0'//si >2.0 revisar pantalla Ajustes
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-02-07 10:53:58 +00:00
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.google.android.material:material:1.6.0'//hasta la 1.6
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-02-07 10:53:58 +00:00
implementation("androidx.fragment:fragment-ktx:1.5.2") // Problema de inferir event
2020-05-04 11:15:24 +00:00
// Architecture components
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle"
2024-02-07 10:53:58 +00:00
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"//versión más nueva compileSdk 34 y no infiere el event
2020-05-04 11:15:24 +00:00
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle"
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"
kapt "com.github.bumptech.glide:compiler:$glide"
2020-05-12 21:54:59 +00:00
2020-09-16 21:09:44 +00:00
// Add the Firebase Crashlytics SDK.
2024-02-07 10:53:58 +00:00
implementation 'com.google.firebase:firebase-analytics:21.5.0'
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
implementation("androidx.datastore:datastore-preferences:1.0.0")
implementation 'androidx.datastore:datastore-core:1.0.0'
2023-11-06 15:50:27 +00:00
//linphone
// implementation 'org.linphone:linphone-sdk-android:5.1.0+'
//implementation 'androidx.media:media:1.6.0'
2020-05-04 11:15:24 +00:00
}