build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins.apply('com.android.library')
  2. android {
  3. compileSdk 34
  4. defaultConfig {
  5. minSdk 21
  6. targetSdk 34
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. multiDexEnabled true
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. dependencies {
  24. api userLibs.get('appcompat')
  25. api userLibs.get('material')
  26. api userLibs.get('constraintlayout')
  27. api userLibs.get('mmkv')
  28. api userLibs.get('okhttp3') {
  29. exclude(module: 'support-annotations')
  30. exclude(module: 'gson')
  31. }
  32. api userLibs.get('glide')
  33. api userLibs.get('glide_compiler')
  34. // api userLibs.get('glide_transformations')
  35. // api userLibs.get('freereflection')
  36. api userLibs.get('orhanbutlogger')
  37. api userLibs.get('LongImage')
  38. api userLibs.get('Toaster')
  39. api userLibs.get('Multidex')
  40. api userLibs.get('splashscreen')
  41. //全局共用一个点击时间
  42. implementation 'cc.taylorzhang:single-click:1.1.0'
  43. //zxing
  44. implementation 'com.google.zxing:android-core:3.3.0'
  45. implementation 'com.google.zxing:core:3.5.3'
  46. //友盟统计SDK
  47. api 'com.umeng.umsdk:common:9.6.7'// 必选
  48. api 'com.umeng.umsdk:asms:1.8.2'// 必选
  49. testImplementation testLibs.get('junit')
  50. androidTestImplementation testLibs.get('junitAndroid')
  51. androidTestImplementation testLibs.get('espresso')
  52. }