836eb8dbc54f46454fe1b5590de1efb49f49fb7f.svn-base 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. applicationId "eVVM.apk"
  7. minSdkVersion 15
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. // EventBus Apt 索引类生成位置
  15. arguments = [eventBusIndex: applicationId + '.MyEventBusIndex']
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. // JNI 目录
  26. sourceSets {
  27. main {
  28. jniLibs.srcDirs = ['libs']
  29. }
  30. }
  31. }
  32. dependencies {
  33. // 依赖 libs 目录下所有 jar 包
  34. implementation fileTree(include: ['*.jar'], dir: 'libs')
  35. // 依赖 libs 目录下所有 aar 包
  36. implementation fileTree(include: ['*.aar'], dir: 'libs')
  37. implementation fileTree(dir: 'libs', include: ['*.jar'])
  38. // 基础库(不包任何第三方框架)
  39. implementation project(':base')
  40. // 自定义 View
  41. implementation project(':widget')
  42. // Dialog 封装
  43. implementation project(':dialog')
  44. // Glide 隔离
  45. implementation project(':image')
  46. implementation 'com.android.support:appcompat-v7:28.0.0'
  47. implementation 'com.android.support:support-v4:28.0.0'
  48. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  49. testImplementation 'junit:junit:4.12'
  50. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  51. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  52. implementation 'com.android.support:appcompat-v7:28.0.0'
  53. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  54. testImplementation 'junit:junit:4.12'
  55. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  56. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  57. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  58. // Dex分包,解决 64k 问题
  59. implementation 'com.android.support:multidex:1.0.3'
  60. // ButterKnife 注解库:https://github.com/JakeWharton/butterknife
  61. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  62. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  63. // EventBus 事件总线
  64. implementation "org.greenrobot:eventbus:3.1.1"
  65. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  66. //recyclerview
  67. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  68. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  69. // 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar
  70. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  71. // 侧滑功能:https://github.com/bingoogolapple/BGASwipeBackLayout-Android
  72. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  73. // 权限请求框架:https://github.com/getActivity/XXPermissions
  74. implementation 'com.hjq:xxpermissions:5.5'
  75. // 标题栏:https://github.com/getActivity/TitleBar
  76. implementation 'com.hjq:titlebar:5.0'
  77. // 吐司工具类:https://github.com/getActivity/ToastUtils
  78. implementation 'com.hjq:toast:6.0'
  79. // 圆形的ImageView:https://github.com/hdodenhof/CircleImageView
  80. implementation 'de.hdodenhof:circleimageview:2.2.0'
  81. // 支持放大缩放的ImageView:https://github.com/chrisbanes/PhotoView 出问题了看看 https://www.jianshu.com/p/f7a7a8765294
  82. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  83. //AutoSize 今日头条屏幕适配方案终极版
  84. implementation 'me.jessyan:autosize:1.1.2'
  85. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  86. //https://github.com/bingoogolapple/BGAQRCode-Android + https://github.com/bingoogolapple/BGAPhotoPicker-Android
  87. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  88. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  89. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  90. //recyclerview适配器 https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  91. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  92. // 布局优化:https://github.com/getActivity/Layouts
  93. // 分割线:https://github.com/getActivity/RecyclerItemDecoration
  94. // 国际化:https://github.com/getActivity/MultiLanguages
  95. // 悬浮窗:https://github.com/getActivity/XToast
  96. // 网络请求:https://github.com/zhou-you/RxEasyHttp
  97. // RxJava: https://github.com/ReactiveX/RxAndroid
  98. // RecyclerView:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  99. // 上拉刷新下拉加载:https://github.com/scwang90/SmartRefreshLayout
  100. // 工具类:https://github.com/Blankj/AndroidUtilCode
  101. // 图片选择:https://github.com/zhihu/Matisse
  102. // 轮播图:https://github.com/bingoogolapple/BGABanner-Android
  103. // 二维码:https://github.com/bingoogolapple/BGAQRCode-Android
  104. // 第三方支付:https://github.com/getActivity/RxPay
  105. // Log 打印:https://github.com/JakeWharton/timber
  106. // 重要数据存储:https://github.com/Tencent/MMKV
  107. }