build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // +———————————————————————————————————
  2. // | Created by Yunbao
  3. // +———————————————————————————————————
  4. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  5. // +———————————————————————————————————
  6. // | Author: https://gitee.com/yunbaokeji
  7. // +———————————————————————————————————
  8. // | Date: 2022-04-30
  9. // +———————————————————————————————————
  10. apply plugin: 'com.android.library'
  11. android {
  12. compileSdkVersion rootProject.ext.android.compileSdkVersion
  13. buildToolsVersion rootProject.ext.android.buildToolsVersion
  14. defaultConfig {
  15. minSdkVersion rootProject.ext.android.minSdkVersion
  16. targetSdkVersion rootProject.ext.android.targetSdkVersion
  17. versionCode rootProject.ext.android.versionCode
  18. versionName rootProject.ext.android.versionName
  19. manifestPlaceholders = rootProject.ext.manifestPlaceholders
  20. ndk {
  21. abiFilters "armeabi-v7a", "arm64-v8a"
  22. }
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. }
  31. repositories {
  32. flatDir {
  33. dirs 'libs', '../libs'
  34. }
  35. }
  36. dependencies {
  37. compile fileTree(include: ['*.jar'], dir: 'libs')
  38. compile rootProject.ext.dependencies["appcompat-v7"]
  39. compile rootProject.ext.dependencies["recyclerview-v7"]
  40. compile rootProject.ext.dependencies["cardview-v7"]
  41. compile rootProject.ext.dependencies["design"]
  42. compile rootProject.ext.dependencies["multidex"]
  43. compile files('../libs/commons-io-1.4.jar')
  44. //okHttp网络请求
  45. compile rootProject.ext.dependencies["okhttp"], {
  46. exclude module: "okhttp"
  47. }
  48. //OkGo 是对okHttp的封装
  49. compile rootProject.ext.dependencies["okgo"]
  50. //OkGo上传下载扩展库
  51. compile rootProject.ext.dependencies["okserver"]
  52. //fastJson解析json
  53. compile rootProject.ext.dependencies["fastjson"]
  54. //eventbus事件总线
  55. compile rootProject.ext.dependencies["eventbus"]
  56. //使用Glide加载图片
  57. compile rootProject.ext.dependencies["glide"]
  58. //一个基于Glide的transformation库,拥有裁剪,着色,模糊,滤镜等多种转换效果
  59. compile rootProject.ext.dependencies["glide-transformations"]
  60. //带圆角,边框的的ImageView
  61. compile rootProject.ext.dependencies["roundedimageview"]
  62. //gif库,播放礼物gif用
  63. compile rootProject.ext.dependencies["gif-drawable"]
  64. //svga播放器
  65. compile rootProject.ext.dependencies["SVGAPlayer"]
  66. //七牛云存储
  67. compile rootProject.ext.dependencies["qiniu-sdk"]
  68. //腾讯云存储
  69. compile(rootProject.ext.dependencies["tencent-cosxml"]) {
  70. exclude group: 'com.tencent.qcloud', module: 'beacon-android-release' //关闭上报功能
  71. }
  72. //图片裁剪
  73. compile rootProject.ext.dependencies["ucrop"]
  74. //鲁班
  75. compile rootProject.ext.dependencies["Luban"]
  76. //下拉刷新上拉加载
  77. compile rootProject.ext.dependencies["smartRefreshLayout"]
  78. //ViewPager指示器
  79. compile rootProject.ext.dependencies["magicIndicator"]
  80. //腾讯短视频sdk
  81. compile(name: 'LiteAVSDK_Professional_9.5.11349', ext: 'aar')
  82. compile files('libs/AndroidPicker-1.5.6.jar')
  83. compile 'com.google.android:flexbox:1.0.0'
  84. }