build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. // 图片加载库
  34. implementation 'com.github.bumptech.glide:glide:4.16.0'
  35. // CardView
  36. implementation 'androidx.cardview:cardview:1.0.0'
  37. testImplementation libs.junit
  38. androidTestImplementation libs.ext.junit
  39. androidTestImplementation libs.espresso.core
  40. }