build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 30
  5. defaultConfig {
  6. minSdkVersion 24
  7. targetSdkVersion 30
  8. versionCode 1
  9. versionName "1.0"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled true
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility JavaVersion.VERSION_1_8
  19. targetCompatibility JavaVersion.VERSION_1_8
  20. }
  21. }
  22. dependencies {
  23. implementation fileTree(dir: 'libs', include: ['*.jar'])
  24. api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  25. api 'androidx.core:core-ktx:1.3.2'
  26. api 'androidx.appcompat:appcompat:1.3.1'
  27. api 'com.google.android.material:material:1.4.0'
  28. //工具集
  29. api 'com.blankj:utilcodex:1.31.0'
  30. //toast
  31. api 'com.github.getActivity:ToastUtils:10.5'
  32. //Gson
  33. api 'com.google.code.gson:gson:2.8.5'
  34. //网络
  35. api 'com.github.bumptech.glide:okhttp3-integration:4.9.0'
  36. //自动更新
  37. api 'com.teprinciple:updateapputilsx:2.3.0'
  38. //okgo
  39. api 'com.lzy.net:okgo:3.0.4'
  40. //qrcode
  41. api 'com.github.yoojia:next-qrcode:2.0-2'
  42. //QMUI
  43. api 'com.qmuiteam:qmui:2.0.0-alpha10'
  44. //recyclerview
  45. api 'androidx.recyclerview:recyclerview:1.2.0-alpha05'
  46. //glide
  47. api 'com.github.bumptech.glide:glide:4.9.0'
  48. annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  49. //photoview
  50. api 'com.github.chrisbanes:PhotoView:2.1.3'
  51. //悬浮窗框架
  52. api 'com.github.princekin-f:EasyFloat:1.3.4'
  53. api 'com.zhy:okhttputils:2.6.0'
  54. //leak
  55. // debugApi 'com.squareup.leakcanary:leakcanary-android:1.5.4'
  56. // releaseApi 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  57. // testApi 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  58. }
  59. repositories {
  60. mavenCentral()
  61. }