build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. }
  4. android {
  5. namespace 'com.example.base'
  6. compileSdk 36
  7. defaultConfig {
  8. applicationId "com.example.base"
  9. minSdk 24
  10. targetSdk 36
  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_11
  23. targetCompatibility JavaVersion.VERSION_11
  24. }
  25. }
  26. dependencies {
  27. implementation libs.appcompat
  28. implementation libs.material
  29. implementation libs.activity
  30. implementation libs.constraintlayout
  31. // 网络请求库
  32. implementation 'com.squareup.okhttp3:okhttp:4.12.0'
  33. implementation 'com.android.volley:volley:1.2.1'
  34. // 图片加载库
  35. implementation 'com.github.bumptech.glide:glide:4.16.0'
  36. // CardView
  37. implementation 'androidx.cardview:cardview:1.0.0'
  38. // 图表库
  39. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  40. testImplementation libs.junit
  41. androidTestImplementation libs.ext.junit
  42. androidTestImplementation libs.espresso.core
  43. }