build.gradle 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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 "com.zy.bvvm"
  8. minSdkVersion 15
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 105
  11. versionName "1.0.5"
  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_APPKEY : "d91511ac7950582a85e5e5de", //JPush 上注册的包名对应的 Appkey.
  29. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  30. ]
  31. }
  32. packagingOptions {
  33. doNotStrip '*/mips/*.so'
  34. doNotStrip '*/mips64/*.so'
  35. }
  36. buildTypes {
  37. release {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. // JNI 目录
  43. sourceSets {
  44. main {
  45. jniLibs.srcDirs = ['libs']
  46. }
  47. }
  48. }
  49. greendao {
  50. /**
  51. * 数据库版本
  52. */
  53. schemaVersion 1
  54. /**
  55. * greenDao输出到Dao数据库实体操作类文件目录
  56. */
  57. daoPackage 'greendao'
  58. /**
  59. * GreenDao实体类dao文件目录
  60. */
  61. targetGenDir 'src/main/java'
  62. }
  63. dependencies {
  64. // 依赖 libs 目录下所有 jar 包
  65. implementation fileTree(include: ['*.jar'], dir: 'libs')
  66. // 依赖 libs 目录下所有 aar 包
  67. implementation fileTree(include: ['*.aar'], dir: 'libs')
  68. implementation fileTree(dir: 'libs', include: ['*.jar'])
  69. // 基础库(不包任何第三方框架)
  70. implementation project(':base')
  71. // 自定义 View
  72. implementation project(':widget')
  73. // Dialog 封装
  74. implementation project(':dialog')
  75. // Glide
  76. implementation project(':image')
  77. implementation 'com.android.support:appcompat-v7:28.0.0'
  78. implementation 'com.android.support:support-v4:28.0.0'
  79. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  80. testImplementation 'junit:junit:4.12'
  81. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  82. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  83. implementation 'com.android.support:appcompat-v7:28.0.0'
  84. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  85. testImplementation 'junit:junit:4.12'
  86. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  87. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  88. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  89. implementation 'com.alibaba:fastjson:1.1.71.android'
  90. // Dex分包,解决 64k 问题
  91. implementation 'com.android.support:multidex:1.0.3'
  92. // ButterKnife
  93. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  94. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  95. // EventBus
  96. implementation "org.greenrobot:eventbus:3.1.1"
  97. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  98. //recyclerview
  99. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  100. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  101. // 状态栏沉浸
  102. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  103. // 侧滑功能
  104. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  105. // 权限请求框架
  106. implementation 'com.hjq:xxpermissions:5.5'
  107. // 标题栏
  108. implementation 'com.hjq:titlebar:5.0'
  109. // 吐司工具类
  110. implementation 'com.hjq:toast:6.0'
  111. // viewhelper
  112. implementation 'com.nineoldandroids:library:2.4.0'
  113. // 圆形的ImageView
  114. implementation 'de.hdodenhof:circleimageview:2.2.0'
  115. // 支持放大缩放的ImageView
  116. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  117. //AutoSize
  118. implementation 'me.jessyan:autosize:1.1.2'
  119. //BGAQRCode-Android 二维码 + 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适配器
  125. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  126. //网络请求框架
  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. implementation 'cn.jiguang.sdk:jpush:3.8.6'
  132. implementation 'cn.jiguang.sdk:jcore:2.5.5'
  133. //netcheck
  134. implementation 'com.github.tianma8023:NetDetector:v0.2.0'
  135. //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout
  136. implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1'
  137. //pdfview https://github.com/barteksc/AndroidPdfViewer
  138. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  139. //安卓数据库
  140. implementation 'org.greenrobot:greendao:3.3.0' // add library
  141. implementation 'org.greenrobot:greendao-generator:3.3.0'
  142. //百分比布局
  143. implementation 'com.zhy:percent-support-extends:1.1.1'
  144. // add library
  145. implementation 'org.greenrobot:greendao-generator:3.3.0'
  146. implementation 'com.github.dfqin:grantor:2.1.0'
  147. //腾讯bugly
  148. implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
  149. implementation 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
  150. }