build.gradle 1.5 KB

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