build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. namespace 'com.example.stores'
  8. compileSdk 33
  9. defaultConfig {
  10. applicationId "com.example.stores"
  11. minSdk 21
  12. targetSdk 33
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. viewBinding {
  24. enabled = true
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = '1.8'
  32. }
  33. }
  34. dependencies {
  35. implementation 'androidx.core:core-ktx:1.7.0'
  36. implementation 'androidx.appcompat:appcompat:1.6.1'
  37. implementation 'com.google.android.material:material:1.9.0'
  38. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  39. testImplementation 'junit:junit:4.13.2'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  42. var room_version = "2.5.0"
  43. implementation("androidx.room:room-ktx:$room_version")
  44. kapt("androidx.room:room-compiler:$room_version")
  45. // Persistencia de datos - Tutorial arisdev
  46. implementation "androidx.datastore:datastore-preferences:1.0.0"
  47. // Crea como una base de datos: https://developer.android.com/jetpack/androidx/releases/datastore?hl=es-419
  48. implementation "org.jetbrains.anko:anko-commons:0.10.8"
  49. implementation 'com.github.bumptech.glide:glide:4.16.0'
  50. }