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'
|
2023-02-21 15:00:50 +00:00
|
|
|
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-07-10 05:37:05 +00:00
|
|
|
versionCode 314
|
|
|
|
versionName = "24.28Beta"
|
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'
|
|
|
|
}
|
2022-12-09 09:59:58 +00:00
|
|
|
|
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"
|
2022-12-09 09:59:58 +00:00
|
|
|
|
2023-02-21 15:00:50 +00:00
|
|
|
}
|
2022-12-09 09:59:58 +00:00
|
|
|
|
2024-02-09 10:38:38 +00:00
|
|
|
flavorDimensions += "version"
|
2023-02-21 15:00:50 +00:00
|
|
|
productFlavors {
|
|
|
|
create("beta") {
|
|
|
|
applicationIdSuffix = ".sfusion"
|
|
|
|
}
|
|
|
|
create("general") {
|
|
|
|
//versionNameSuffix = "General"
|
|
|
|
}
|
2020-05-04 11:15:24 +00:00
|
|
|
}
|
|
|
|
|
2021-10-22 08:58:14 +00:00
|
|
|
buildFeatures {
|
2021-11-26 10:42:10 +00:00
|
|
|
viewBinding = true
|
2024-02-27 08:48:47 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
/*kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
2021-10-22 08:58:14 +00:00
|
|
|
}
|
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-06-28 08:16:19 +00:00
|
|
|
implementation 'com.google.firebase:firebase-crashlytics-ktx:19.0.2'
|
|
|
|
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-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-02-27 08:48:47 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0'
|
|
|
|
//si >2.0 revisar pantalla (ej:Ajustes)
|
2024-02-20 08:35:16 +00:00
|
|
|
|
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'
|
2021-10-14 06:26:50 +00:00
|
|
|
|
|
|
|
//Fragments
|
2024-07-01 09:48:41 +00:00
|
|
|
implementation("androidx.fragment:fragment-ktx:1.8.1")
|
2020-05-04 11:15:24 +00:00
|
|
|
|
|
|
|
// Architecture components
|
2024-07-01 09:48:41 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.2"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.8.2"
|
2024-02-07 10:53:58 +00:00
|
|
|
implementation "androidx.legacy:legacy-support-v4:1.0.0"
|
2021-10-22 08:58:14 +00:00
|
|
|
|
|
|
|
//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-06-28 08:16:19 +00:00
|
|
|
implementation 'com.google.firebase:firebase-analytics:22.0.2'
|
2020-09-16 21:09:44 +00:00
|
|
|
|
2021-07-05 05:49:54 +00:00
|
|
|
//search
|
|
|
|
implementation 'com.github.mirrajabi:search-dialog:1.1'
|
|
|
|
|
2021-10-14 06:26:50 +00:00
|
|
|
//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'
|
2021-10-14 06:26:50 +00:00
|
|
|
|
2024-01-26 10:30:04 +00:00
|
|
|
//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-01-26 10:30:04 +00:00
|
|
|
|
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
|
|
|
}
|