050a43b5720a15804addcf9525a0970a729e506a.svn-base 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.greenrobot.greendao' // apply plugin
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. buildToolsVersion rootProject.ext.buildToolsVersion
  6. defaultConfig {
  7. applicationId "eVVM.apk"
  8. minSdkVersion 15
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 103
  11. versionName "1.0.3"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. multiDexEnabled true
  14. javaCompileOptions {
  15. annotationProcessorOptions {
  16. // EventBus Apt 索引类生成位置
  17. arguments = [eventBusIndex: applicationId + '.MyEventBusIndex']
  18. }
  19. }
  20. ndk {
  21. //选择要添加的对应 cpu 类型的 .so 库。
  22. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
  23. // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
  24. }
  25. manifestPlaceholders = [
  26. JPUSH_PKGNAME: applicationId,
  27. JPUSH_APPKEY : "a34cef708ddaa15e2d8367f0", //JPush 上注册的包名对应的 Appkey.
  28. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  29. ]
  30. }
  31. packagingOptions {
  32. doNotStrip '*/mips/*.so'
  33. doNotStrip '*/mips64/*.so'
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. // JNI 目录
  42. sourceSets {
  43. main {
  44. jniLibs.srcDirs = ['libs']
  45. }
  46. }
  47. }
  48. greendao {
  49. /**
  50. * 数据库版本
  51. */
  52. schemaVersion 1
  53. /**
  54. * greenDao输出到Dao数据库实体操作类文件目录
  55. */
  56. daoPackage 'greendao'
  57. /**
  58. * GreenDao实体类dao文件目录
  59. */
  60. targetGenDir 'src/main/java'
  61. }
  62. dependencies {
  63. // 依赖 libs 目录下所有 jar 包
  64. implementation fileTree(include: ['*.jar'], dir: 'libs')
  65. // 依赖 libs 目录下所有 aar 包
  66. implementation fileTree(include: ['*.aar'], dir: 'libs')
  67. implementation fileTree(dir: 'libs', include: ['*.jar'])
  68. // 基础库(不包任何第三方框架)
  69. implementation project(':base')
  70. // 自定义 View
  71. implementation project(':widget')
  72. // Dialog 封装
  73. implementation project(':dialog')
  74. // Glide 隔离
  75. implementation project(':image')
  76. implementation 'com.android.support:appcompat-v7:28.0.0'
  77. implementation 'com.android.support:support-v4:28.0.0'
  78. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  79. testImplementation 'junit:junit:4.12'
  80. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  81. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  82. implementation 'com.android.support:appcompat-v7:28.0.0'
  83. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  84. testImplementation 'junit:junit:4.12'
  85. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  86. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  87. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  88. implementation 'com.alibaba:fastjson:1.1.71.android'
  89. // Dex分包,解决 64k 问题
  90. implementation 'com.android.support:multidex:1.0.3'
  91. // ButterKnife 注解库:https://github.com/JakeWharton/butterknife
  92. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  93. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  94. // EventBus 事件总线
  95. implementation "org.greenrobot:eventbus:3.1.1"
  96. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  97. //recyclerview
  98. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  99. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  100. // 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar
  101. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  102. // 侧滑功能:https://github.com/bingoogolapple/BGASwipeBackLayout-Android
  103. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  104. // 权限请求框架:https://github.com/getActivity/XXPermissions
  105. implementation 'com.hjq:xxpermissions:5.5'
  106. // 标题栏:https://github.com/getActivity/TitleBar
  107. implementation 'com.hjq:titlebar:5.0'
  108. // 吐司工具类:https://github.com/getActivity/ToastUtils
  109. implementation 'com.hjq:toast:6.0'
  110. // viewhelper
  111. implementation 'com.nineoldandroids:library:2.4.0'
  112. // 圆形的ImageView:https://github.com/hdodenhof/CircleImageView
  113. implementation 'de.hdodenhof:circleimageview:2.2.0'
  114. // 支持放大缩放的ImageView:https://github.com/chrisbanes/PhotoView 出问题了看看 https://www.jianshu.com/p/f7a7a8765294
  115. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  116. //AutoSize 今日头条屏幕适配方案终极版
  117. implementation 'me.jessyan:autosize:1.1.2'
  118. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  119. //https://github.com/bingoogolapple/BGAQRCode-Android + https://github.com/bingoogolapple/BGAPhotoPicker-Android
  120. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  121. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  122. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  123. implementation 'cn.bingoogolapple:bga-banner:2.2.6@aar'
  124. //recyclerview适配器 https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  125. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  126. //网络请求框架 https://github.com/lygttpod/RxHttpUtils
  127. implementation 'com.github.lygttpod:RxHttpUtils:2.3.3'
  128. //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/
  129. implementation 'cn.jiguang.sdk:jpush:3.3.2'
  130. implementation 'cn.jiguang.sdk:jcore:2.0.1'
  131. //netcheck
  132. implementation 'com.github.tianma8023:NetDetector:v0.2.0'
  133. //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout 可结合BaseRecyclerViewAdapterHelper
  134. implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1'
  135. //pdfview https://github.com/barteksc/AndroidPdfViewer
  136. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  137. //安卓数据库
  138. implementation 'org.greenrobot:greendao:3.2.2' // add library
  139. implementation 'org.greenrobot:greendao-generator:3.2.2'
  140. // 布局优化:https://github.com/getActivity/Layouts
  141. // 分割线:https://github.com/getActivity/RecyclerItemDecoration
  142. // 国际化:https://github.com/getActivity/MultiLanguages
  143. // 悬浮窗:https://github.com/getActivity/XToast
  144. // 网络请求:https://github.com/zhou-you/RxEasyHttp
  145. // RxJava: https://github.com/ReactiveX/RxAndroid
  146. // RecyclerView:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  147. // 上拉刷新下拉加载:https://github.com/scwang90/SmartRefreshLayout
  148. // 工具类:https://github.com/Blankj/AndroidUtilCode
  149. // 图片选择:https://github.com/zhihu/Matisse
  150. // 轮播图:https://github.com/bingoogolapple/BGABanner-Android
  151. // 二维码:https://github.com/bingoogolapple/BGAQRCode-Android
  152. // 第三方支付:https://github.com/getActivity/RxPay
  153. // Log 打印:https://github.com/JakeWharton/timber
  154. // 重要数据存储:https://github.com/Tencent/MMKV
  155. }