vn-warehouse/app/build.gradle

154 lines
5.1 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-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-02-27 08:48:47 +00:00
versionCode 260
2024-02-20 08:35:16 +00:00
versionName = "24.8Beta" //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-09 10:38:38 +00:00
flavorDimensions += "version"
productFlavors {
create("beta") {
applicationIdSuffix = ".sfusion"
}
create("general") {
//versionNameSuffix = "General"
}
2024-02-20 08:35:16 +00:00
create("alpha") {
2023-05-31 14:03:41 +00:00
applicationIdSuffix = ".alpha"
}
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 {
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'
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-02-07 10:53:58 +00:00
implementation 'androidx.appcompat:appcompat:1.6.1'
2024-02-20 08:35:16 +00:00
implementation 'androidx.core:core-ktx:1.12.0'
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-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'
2024-02-20 08:35:16 +00:00
implementation 'com.google.android.material:material:1.11.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-02-20 08:35:16 +00:00
implementation("androidx.fragment:fragment-ktx:1.6.2")
2020-05-04 11:15:24 +00:00
// Architecture components
2024-02-20 08:35:16 +00:00
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
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
2024-02-20 08:35:16 +00:00
// implementation 'org.linphone:linphone-sdk-android:5.1.0+'
2023-11-06 15:50:27 +00:00
//implementation 'androidx.media:media:1.6.0'
2024-02-27 08:48:47 +00:00
// Compose
/* 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
}