build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. applicationId "com.codingstuff.shoeapp"
  8. minSdk 22
  9. targetSdk 32
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. }
  25. dependencies {
  26. implementation 'androidx.appcompat:appcompat:1.4.1'
  27. implementation 'com.google.android.material:material:1.5.0'
  28. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  29. testImplementation 'junit:junit:4.13.2'
  30. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  31. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  32. def room_version = "2.4.2"
  33. implementation "androidx.room:room-runtime:$room_version"
  34. annotationProcessor "androidx.room:room-compiler:$room_version"
  35. def lifecycle_version = "2.5.0-alpha04"
  36. // ViewModel
  37. implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
  38. // LiveData
  39. implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
  40. }