build.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'org.greenrobot.greendao' // apply plugin
  4. android {
  5. compileSdkVersion rootProject.ext.compileSdkVersion
  6. buildToolsVersion rootProject.ext.buildToolsVersion
  7. defaultConfig {
  8. applicationId "com.zy.bvvm"
  9. minSdkVersion 21
  10. targetSdkVersion rootProject.ext.targetSdkVersion
  11. versionCode 106
  12. versionName "1.0.6"
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. multiDexEnabled true
  15. javaCompileOptions {
  16. annotationProcessorOptions {
  17. // EventBus Apt 索引类生成位置
  18. arguments = [eventBusIndex: applicationId + '.MyEventBusIndex']
  19. }
  20. }
  21. ndk {
  22. //选择要添加的对应 cpu 类型的 .so 库。
  23. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
  24. // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
  25. }
  26. manifestPlaceholders = [
  27. JPUSH_PKGNAME: applicationId,
  28. // JPUSH_APPKEY : "a34cef708ddaa15e2d8367f0", //JPush 上注册的包名对应的 Appkey.
  29. JPUSH_APPKEY : "d91511ac7950582a85e5e5de", //JPush 上注册的包名对应的 Appkey.
  30. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  31. ]
  32. }
  33. packagingOptions {
  34. doNotStrip '*/mips/*.so'
  35. doNotStrip '*/mips64/*.so'
  36. }
  37. buildTypes {
  38. release {
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. }
  43. // JNI 目录
  44. sourceSets {
  45. main {
  46. jniLibs.srcDirs = ['libs']
  47. }
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_8
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. }
  53. }
  54. greendao {
  55. /**
  56. * 数据库版本
  57. */
  58. schemaVersion 1
  59. /**
  60. * greenDao输出到Dao数据库实体操作类文件目录
  61. */
  62. daoPackage 'greendao'
  63. /**
  64. * GreenDao实体类dao文件目录
  65. */
  66. targetGenDir 'src/main/java'
  67. }
  68. dependencies {
  69. // 依赖 libs 目录下所有 jar 包
  70. implementation fileTree(include: ['*.jar'], dir: 'libs')
  71. // 依赖 libs 目录下所有 aar 包
  72. implementation fileTree(include: ['*.aar'], dir: 'libs')
  73. implementation fileTree(dir: 'libs', include: ['*.jar'])
  74. // 基础库(不包任何第三方框架)
  75. implementation project(':base')
  76. // 自定义 View
  77. implementation project(':widget')
  78. // Dialog 封装
  79. implementation project(':dialog')
  80. // Glide
  81. implementation project(':image')
  82. implementation 'com.android.support:appcompat-v7:28.0.0'
  83. implementation 'com.android.support:support-v4: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:appcompat-v7:28.0.0'
  89. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  90. testImplementation 'junit:junit:4.12'
  91. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  92. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  93. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  94. implementation 'com.alibaba:fastjson:1.1.71.android'
  95. // Dex分包,解决 64k 问题
  96. implementation 'com.android.support:multidex:1.0.3'
  97. // ButterKnife
  98. // implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  99. // annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  100. implementation 'com.jakewharton:butterknife:10.1.0'
  101. annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
  102. // EventBus
  103. implementation "org.greenrobot:eventbus:3.1.1"
  104. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  105. //recyclerview
  106. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  107. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  108. // 状态栏沉浸
  109. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  110. // 侧滑功能
  111. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  112. // 权限请求框架
  113. implementation 'com.hjq:xxpermissions:5.5'
  114. // 标题栏
  115. implementation 'com.hjq:titlebar:5.0'
  116. // 吐司工具类
  117. implementation 'com.hjq:toast:6.0'
  118. // viewhelper
  119. implementation 'com.nineoldandroids:library:2.4.0'
  120. // 圆形的ImageView
  121. implementation 'de.hdodenhof:circleimageview:2.2.0'
  122. // 支持放大缩放的ImageView
  123. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  124. //AutoSize
  125. implementation 'me.jessyan:autosize:1.1.2'
  126. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  127. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  128. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  129. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  130. implementation 'cn.bingoogolapple:bga-banner:2.2.6@aar'
  131. //recyclerview适配器
  132. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  133. //网络请求框架
  134. implementation 'com.github.lygttpod:RxHttpUtils:2.3.3'
  135. //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/
  136. // implementation 'cn.jiguang.sdk:jpush:3.3.2'
  137. // implementation 'cn.jiguang.sdk:jcore:2.0.1'
  138. implementation 'cn.jiguang.sdk:jpush:3.8.6'
  139. implementation 'cn.jiguang.sdk:jcore:2.5.5'
  140. //netcheck
  141. implementation 'com.github.tianma8023:NetDetector:v0.2.0'
  142. //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout
  143. implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1'
  144. //pdfview https://github.com/barteksc/AndroidPdfViewer
  145. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  146. //安卓数据库
  147. implementation 'org.greenrobot:greendao:3.3.0' // add library
  148. implementation 'org.greenrobot:greendao-generator:3.3.0'
  149. //百分比布局
  150. implementation 'com.zhy:percent-support-extends:1.1.1'
  151. // add library
  152. implementation 'org.greenrobot:greendao-generator:3.3.0'
  153. implementation 'com.github.dfqin:grantor:2.1.0'
  154. //腾讯bugly
  155. implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
  156. implementation 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
  157. implementation 'com.teprinciple:updateapputilsx:2.3.0'
  158. implementation "androidx.core:core-ktx:1.3.2"
  159. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  160. //弹窗样式
  161. implementation 'com.github.limxing:Android-PromptDialog:1.1.3'
  162. }