148 lines
5.0 KiB
Groovy
148 lines
5.0 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'com.google.gms.google-services'
|
|
apply plugin: 'com.google.firebase.crashlytics'
|
|
|
|
|
|
android {
|
|
compileSdk 33
|
|
// buildToolsVersion "29.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "es.verdnatura"
|
|
minSdkVersion 24 //21
|
|
targetSdkVersion 33
|
|
versionCode 246
|
|
versionName = "24.2Beta" //23.48Beta son la misma
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
|
|
//package de la app general = "package_name": "es.verdnatura"
|
|
//package de la app beta = "package_name": "es.verdnatura.sfusion"
|
|
|
|
}
|
|
|
|
flavorDimensions "version"
|
|
productFlavors {
|
|
create("beta") {
|
|
applicationIdSuffix = ".sfusion"
|
|
}
|
|
create("general") {
|
|
//versionNameSuffix = "General"
|
|
}
|
|
create("alpha"){
|
|
applicationIdSuffix = ".alpha"
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.9'
|
|
implementation 'com.google.firebase:firebase-analytics-ktx:20.1.2'
|
|
implementation 'com.google.android.gms:play-services-location:19.0.1'
|
|
kapt "androidx.room:room-compiler:2.5.1"
|
|
implementation 'androidx.room:room-ktx:2.5.1'
|
|
debugImplementation fileTree(dir: 'libs/debug', include: ['*.jar'])
|
|
releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar'])
|
|
|
|
//canvas
|
|
implementation 'com.simplify:ink:1.0.0'
|
|
|
|
//navigation
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
|
|
implementation("androidx.drawerlayout:drawerlayout:1.1.1")
|
|
|
|
// Kotlin and Android
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
|
|
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
|
|
implementation "com.airbnb.android:lottie:$lottieVersion"
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
|
|
|
|
//preferences
|
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
|
|
|
//Fragments
|
|
implementation("androidx.fragment:fragment-ktx:1.3.6")
|
|
|
|
|
|
// Architecture components
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle"
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
|
|
//Koin new resolve
|
|
//kotlin implementation in mavencentral--> jcenter deprecated
|
|
|
|
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"
|
|
|
|
// Koin for DI
|
|
//implementation "org.koin:koin-core:$koin"
|
|
//implementation "org.koin:koin-android:$koin"
|
|
//implementation "org.koin:koin-androidx-scope:$koin"
|
|
//implementation "org.koin:koin-androidx-viewmodel:$koin"
|
|
|
|
|
|
// 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"
|
|
|
|
// Add the Firebase Crashlytics SDK.
|
|
implementation 'com.google.firebase:firebase-analytics:17.5.0'
|
|
//implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
|
|
|
|
//search
|
|
implementation 'com.github.mirrajabi:search-dialog:1.1'
|
|
|
|
//logs
|
|
implementation 'com.jakewharton.timber:timber:4.7.1'
|
|
|
|
//pickerImage
|
|
implementation 'com.github.esafirm:android-image-picker:3.0.0-beta5'
|
|
|
|
//linphone
|
|
// implementation 'org.linphone:linphone-sdk-android:5.1.0+'
|
|
//implementation 'androidx.media:media:1.6.0'
|
|
}
|