b4473af72346df09dfd5a8f8d0f8d57a247dab87.svn-base 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 101
  11. versionName "1.0.1"
  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. // Dex分包,解决 64k 问题
  89. implementation 'com.android.support:multidex:1.0.3'
  90. // ButterKnife 注解库:https://github.com/JakeWharton/butterknife
  91. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  92. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  93. // EventBus 事件总线
  94. implementation "org.greenrobot:eventbus:3.1.1"
  95. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  96. //recyclerview
  97. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  98. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  99. // 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar
  100. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  101. // 侧滑功能:https://github.com/bingoogolapple/BGASwipeBackLayout-Android
  102. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  103. // 权限请求框架:https://github.com/getActivity/XXPermissions
  104. implementation 'com.hjq:xxpermissions:5.5'
  105. // 标题栏:https://github.com/getActivity/TitleBar
  106. implementation 'com.hjq:titlebar:5.0'
  107. // 吐司工具类:https://github.com/getActivity/ToastUtils
  108. implementation 'com.hjq:toast:6.0'
  109. // viewhelper
  110. implementation 'com.nineoldandroids:library:2.4.0'
  111. // 圆形的ImageView:https://github.com/hdodenhof/CircleImageView
  112. implementation 'de.hdodenhof:circleimageview:2.2.0'
  113. // 支持放大缩放的ImageView:https://github.com/chrisbanes/PhotoView 出问题了看看 https://www.jianshu.com/p/f7a7a8765294
  114. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  115. //AutoSize 今日头条屏幕适配方案终极版
  116. implementation 'me.jessyan:autosize:1.1.2'
  117. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  118. //https://github.com/bingoogolapple/BGAQRCode-Android + https://github.com/bingoogolapple/BGAPhotoPicker-Android
  119. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  120. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  121. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  122. implementation 'cn.bingoogolapple:bga-banner:2.2.6@aar'
  123. //recyclerview适配器 https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  124. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  125. //网络请求框架 https://github.com/lygttpod/RxHttpUtils
  126. implementation 'com.github.lygttpod:RxHttpUtils:2.3.3'
  127. //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/
  128. implementation 'cn.jiguang.sdk:jpush:3.3.2'
  129. implementation 'cn.jiguang.sdk:jcore:2.0.1'
  130. //netcheck
  131. implementation 'com.github.tianma8023:NetDetector:v0.2.0'
  132. //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout 可结合BaseRecyclerViewAdapterHelper
  133. implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1'
  134. //pdfview https://github.com/barteksc/AndroidPdfViewer
  135. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  136. //安卓数据库
  137. implementation 'org.greenrobot:greendao:3.2.2' // add library
  138. implementation 'org.greenrobot:greendao-generator:3.2.2'
  139. // 布局优化:https://github.com/getActivity/Layouts
  140. // 分割线:https://github.com/getActivity/RecyclerItemDecoration
  141. // 国际化:https://github.com/getActivity/MultiLanguages
  142. // 悬浮窗:https://github.com/getActivity/XToast
  143. // 网络请求:https://github.com/zhou-you/RxEasyHttp
  144. // RxJava: https://github.com/ReactiveX/RxAndroid
  145. // RecyclerView:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
  146. // 上拉刷新下拉加载:https://github.com/scwang90/SmartRefreshLayout
  147. // 工具类:https://github.com/Blankj/AndroidUtilCode
  148. // 图片选择:https://github.com/zhihu/Matisse
  149. // 轮播图:https://github.com/bingoogolapple/BGABanner-Android
  150. // 二维码:https://github.com/bingoogolapple/BGAQRCode-Android
  151. // 第三方支付:https://github.com/getActivity/RxPay
  152. // Log 打印:https://github.com/JakeWharton/timber
  153. // 重要数据存储:https://github.com/Tencent/MMKV
  154. }