1db45ea01e473c7bfc6a1fdc0acb48aa0f1477b7.svn-base 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. ndk {
  19. //选择要添加的对应 cpu 类型的 .so 库。
  20. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
  21. // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
  22. }
  23. manifestPlaceholders = [
  24. JPUSH_PKGNAME : applicationId,
  25. JPUSH_APPKEY : "a34cef708ddaa15e2d8367f0", //JPush 上注册的包名对应的 Appkey.
  26. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  27. ]
  28. }
  29. packagingOptions {
  30. doNotStrip '*/mips/*.so'
  31. doNotStrip '*/mips64/*.so'
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. // JNI 目录
  40. sourceSets {
  41. main {
  42. jniLibs.srcDirs = ['libs']
  43. }
  44. }
  45. }
  46. dependencies {
  47. // 依赖 libs 目录下所有 jar 包
  48. implementation fileTree(include: ['*.jar'], dir: 'libs')
  49. // 依赖 libs 目录下所有 aar 包
  50. implementation fileTree(include: ['*.aar'], dir: 'libs')
  51. implementation fileTree(dir: 'libs', include: ['*.jar'])
  52. // 基础库(不包任何第三方框架)
  53. implementation project(':base')
  54. // 自定义 View
  55. implementation project(':widget')
  56. // Dialog 封装
  57. implementation project(':dialog')
  58. // Glide 隔离
  59. implementation project(':image')
  60. implementation 'com.android.support:appcompat-v7:28.0.0'
  61. implementation 'com.android.support:support-v4:28.0.0'
  62. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  63. testImplementation 'junit:junit:4.12'
  64. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  65. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  66. implementation 'com.android.support:appcompat-v7:28.0.0'
  67. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  68. testImplementation 'junit:junit:4.12'
  69. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  70. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  71. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  72. // Dex分包,解决 64k 问题
  73. implementation 'com.android.support:multidex:1.0.3'
  74. // ButterKnife 注解库:https://github.com/JakeWharton/butterknife
  75. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  76. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  77. // EventBus 事件总线
  78. implementation "org.greenrobot:eventbus:3.1.1"
  79. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  80. //recyclerview
  81. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  82. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  83. // 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar
  84. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  85. // 侧滑功能:https://github.com/bingoogolapple/BGASwipeBackLayout-Android
  86. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  87. // 权限请求框架:https://github.com/getActivity/XXPermissions
  88. implementation 'com.hjq:xxpermissions:5.5'
  89. // 标题栏:https://github.com/getActivity/TitleBar
  90. implementation 'com.hjq:titlebar:5.0'
  91. // 吐司工具类:https://github.com/getActivity/ToastUtils
  92. implementation 'com.hjq:toast:6.0'
  93. // 圆形的ImageView:https://github.com/hdodenhof/CircleImageView
  94. implementation 'de.hdodenhof:circleimageview:2.2.0'
  95. // 支持放大缩放的ImageView:https://github.com/chrisbanes/PhotoView 出问题了看看 https://www.jianshu.com/p/f7a7a8765294
  96. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  97. //AutoSize 今日头条屏幕适配方案终极版
  98. implementation 'me.jessyan:autosize:1.1.2'
  99. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  100. //https://github.com/bingoogolapple/BGAQRCode-Android + https://github.com/bingoogolapple/BGAPhotoPicker-Android
  101. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  102. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  103. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  104. //recyclerview适配器 https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  105. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  106. //网络请求框架 https://github.com/lygttpod/RxHttpUtils
  107. implementation 'com.github.lygttpod:RxHttpUtils:2.3.3'
  108. //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/
  109. implementation 'cn.jiguang.sdk:jpush:3.3.2'
  110. implementation 'cn.jiguang.sdk:jcore:2.0.1'
  111. // 布局优化:https://github.com/getActivity/Layouts
  112. // 分割线:https://github.com/getActivity/RecyclerItemDecoration
  113. // 国际化:https://github.com/getActivity/MultiLanguages
  114. // 悬浮窗:https://github.com/getActivity/XToast
  115. // 网络请求:https://github.com/zhou-you/RxEasyHttp
  116. // RxJava: https://github.com/ReactiveX/RxAndroid
  117. // RecyclerView:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  118. // 上拉刷新下拉加载:https://github.com/scwang90/SmartRefreshLayout
  119. // 工具类:https://github.com/Blankj/AndroidUtilCode
  120. // 图片选择:https://github.com/zhihu/Matisse
  121. // 轮播图:https://github.com/bingoogolapple/BGABanner-Android
  122. // 二维码:https://github.com/bingoogolapple/BGAQRCode-Android
  123. // 第三方支付:https://github.com/getActivity/RxPay
  124. // Log 打印:https://github.com/JakeWharton/timber
  125. // 重要数据存储:https://github.com/Tencent/MMKV
  126. }