build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. }
  5. android {
  6. namespace 'com.hx.utils.mydemoapplication'
  7. compileSdk 35
  8. defaultConfig {
  9. applicationId "com.hx.utils.mydemoapplication"
  10. minSdk 21
  11. targetSdk 35
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. compileOptions {
  23. sourceCompatibility JavaVersion.VERSION_1_8
  24. targetCompatibility JavaVersion.VERSION_1_8
  25. }
  26. kotlinOptions {
  27. jvmTarget = '1.8'
  28. }
  29. buildFeatures {
  30. viewBinding true
  31. }
  32. }
  33. dependencies {
  34. implementation libs.androidx.core.ktx
  35. implementation libs.androidx.appcompat
  36. implementation libs.material
  37. implementation libs.androidx.constraintlayout
  38. implementation libs.androidx.lifecycle.livedata.ktx
  39. implementation libs.androidx.lifecycle.viewmodel.ktx
  40. implementation libs.androidx.navigation.fragment.ktx
  41. implementation libs.androidx.navigation.ui.ktx
  42. implementation libs.androidx.legacy.support.v4
  43. implementation libs.androidx.recyclerview
  44. implementation libs.androidx.preference
  45. testImplementation libs.junit
  46. androidTestImplementation libs.androidx.junit
  47. androidTestImplementation libs.androidx.espresso.core
  48. }