refs #6411 feat:update libraries

This commit is contained in:
Sergio De la torre 2024-02-20 09:35:16 +01:00
parent 3b245cb901
commit 985a63b9c6
2 changed files with 20 additions and 25 deletions

View File

@ -6,17 +6,15 @@ apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.devtools.ksp' apply plugin: 'com.google.devtools.ksp'
android { android {
compileSdk 34 //si 34 problemas con AAPT2 compileSdk 34
// buildToolsVersion "29.0.3"
defaultConfig { defaultConfig {
applicationId "es.verdnatura" applicationId "es.verdnatura"
minSdkVersion 24 //21 minSdkVersion 24
//targetSdkVersion 33 targetSdkVersion 33 // se deja con target si no Play Protect la bloquea
versionCode 254 versionCode 258
versionName = "24.4Beta" //23.48Beta son la misma versionName = "24.8Beta" //23.48Beta son la misma
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
@ -39,7 +37,7 @@ android {
create("general") { create("general") {
//versionNameSuffix = "General" //versionNameSuffix = "General"
} }
create("alpha"){ create("alpha") {
applicationIdSuffix = ".alpha" applicationIdSuffix = ".alpha"
} }
} }
@ -63,8 +61,8 @@ dependencies {
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.6.1' implementation 'com.google.firebase:firebase-crashlytics-ktx:18.6.1'
implementation 'com.google.firebase:firebase-analytics-ktx:21.5.0' implementation 'com.google.firebase:firebase-analytics-ktx:21.5.0'
implementation 'com.google.android.gms:play-services-location:21.1.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 kapt "androidx.room:room-compiler:2.6.1"
implementation 'androidx.room:room-ktx:2.5.1'//Problema de string dinámico implementation 'androidx.room:room-ktx:2.6.1'
debugImplementation fileTree(dir: 'libs/debug', include: ['*.jar']) debugImplementation fileTree(dir: 'libs/debug', include: ['*.jar'])
releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar']) releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar'])
@ -74,14 +72,15 @@ dependencies {
// Kotlin and Android // Kotlin and Android
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.core:core-ktx:1.11.+' implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0'//si >2.0 revisar pantalla Ajustes implementation 'androidx.constraintlayout:constraintlayout:2.0'//si >2.0 revisar pantalla (ej:Ajustes)
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.google.android.material:material:1.6.0'//hasta la 1.6 implementation 'com.google.android.material:material:1.11.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2' implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0' implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
@ -89,11 +88,10 @@ dependencies {
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
//Fragments //Fragments
implementation("androidx.fragment:fragment-ktx:1.5.2") // Problema de inferir event implementation("androidx.fragment:fragment-ktx:1.6.2")
// Architecture components // Architecture components
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"//versión más nueva compileSdk 34 y no infiere el event
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle"
implementation "androidx.legacy:legacy-support-v4:1.0.0" implementation "androidx.legacy:legacy-support-v4:1.0.0"
@ -126,6 +124,6 @@ dependencies {
implementation 'androidx.datastore:datastore-core:1.0.0' implementation 'androidx.datastore:datastore-core:1.0.0'
//linphone //linphone
// implementation 'org.linphone:linphone-sdk-android:5.1.0+' // implementation 'org.linphone:linphone-sdk-android:5.1.0+'
//implementation 'androidx.media:media:1.6.0' //implementation 'androidx.media:media:1.6.0'
} }

View File

@ -1,16 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.8.22'//1.4.20//1.5.31 ext.kotlin_version = '1.9.0'
ext { ext {
// UI components // UI components
lottieVersion = '3.4.0' lottieVersion = '3.4.0'
lifecycle = '2.2.0' lifecycle = '2.7.0'
koin = '2.1.6'//2.0.1// koin = '2.1.6'
// Images // Images
glide = '4.11.0' glide = '4.11.0'
// piccasso = '2.71828'
coil = '1.4.0'//0.9.5 coil = '1.4.0'//0.9.5
} }
repositories { repositories {
@ -21,15 +20,13 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.4.2' classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.4.0' classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
} }
plugins { plugins {
id 'com.google.devtools.ksp' version '1.8.22-1.0.11' apply false id 'com.google.devtools.ksp' version '1.9.0-1.0.11' apply false
} }
allprojects { allprojects {
repositories { repositories {