build.gradle 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.yihucha.hbyhc'
  7. compileSdk 33
  8. defaultConfig {
  9. applicationId "com.yihucha.hbyhc"
  10. minSdk 21
  11. targetSdk 33
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. ndk {
  16. //选择要添加的对应cpu类型的.so库。
  17. //热修复支持五种
  18. abiFilters 'arm64-v8a', 'armeabi', 'armeabi-v7a', 'x86', 'x86_64'
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_11
  29. targetCompatibility JavaVersion.VERSION_11
  30. }
  31. viewBinding {
  32. enabled = true
  33. }
  34. dependenciesInfo {
  35. includeInBundle false
  36. includeInApk false
  37. }
  38. applicationVariants.configureEach { variant ->
  39. variant.outputs.all { output ->
  40. def outputFile = output.outputFile
  41. if (outputFile != null && outputFile.name.endsWith('.apk')) {
  42. //打包的apk包名变为了
  43. //app-具体的渠道名-release-1.0.apk
  44. // def fileName = outputFile.name.replace(".apk", ".apk")
  45. // outputFileName = fileName
  46. //Cxb_xiaomi_20200808_V3.0.0.apk
  47. def fileName = outputFile.name.replace("app-", "").replace("-release.apk", "")
  48. outputFileName = "XFB_" + fileName + "_" + new Date().format("yyyyMMdd") + "_V" + defaultConfig.versionName + ".apk"
  49. }
  50. }
  51. }
  52. signingConfigs {
  53. debug {
  54. storeFile file('yihucha.keystore')
  55. storePassword "yihucha123"
  56. keyAlias "yihucha"
  57. keyPassword "yihucha123"
  58. }
  59. release {
  60. storeFile file('yihucha.keystore')
  61. storePassword "yihucha123"
  62. keyAlias "yihucha"
  63. keyPassword "yihucha123"
  64. }
  65. /* debug {
  66. storeFile file('chuxubao.keystore')
  67. storePassword "tdba123"
  68. keyAlias "chuxubao"
  69. keyPassword "tdba123"
  70. }*/
  71. }
  72. }
  73. dependencies {
  74. configurations {
  75. configureEach {
  76. exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
  77. }
  78. }
  79. implementation 'androidx.appcompat:appcompat:1.4.1'
  80. implementation 'com.google.android.material:material:1.5.0'
  81. implementation project(path: ':easyPhotos')
  82. testImplementation 'junit:junit:4.13.2'
  83. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  84. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  85. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  86. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
  87. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
  88. // implementation 'androidx.navigation:navigation-fragment:2.3.5'
  89. // implementation 'androidx.navigation:navigation-ui:2.3.5'
  90. // implementation 'org.chromium.net:cronet-api:76.3809.111'
  91. implementation(fileTree("libs"))
  92. //图片加载框架
  93. //Glide
  94. // https://github.com/bumptech/glide
  95. api 'com.github.bumptech.glide:glide:4.12.0'
  96. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  97. api 'jp.wasabeef:glide-transformations:4.3.0'
  98. //微信
  99. // api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
  100. api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
  101. //屏幕适配
  102. implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
  103. //网络请求
  104. //retrofit2
  105. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  106. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  107. //日志拦截器
  108. implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
  109. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  110. //rxjava
  111. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  112. implementation 'io.reactivex.rxjava2:rxjava:2.2.12'
  113. //gson
  114. implementation 'com.google.code.gson:gson:2.8.7'
  115. //腾讯MMKV
  116. implementation 'com.tencent:mmkv:1.2.11'
  117. //轮播图
  118. implementation 'io.github.youth5201314:banner:2.2.2'
  119. //刷新
  120. implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
  121. //AndroidUtilCode 包含常用工具库
  122. implementation 'com.blankj:utilcodex:1.31.0'
  123. //状态栏
  124. // After AndroidX
  125. implementation('com.github.niorgai:StatusBarCompat:2.3.3', {
  126. exclude group: 'androidx.appcompat:appcompat'
  127. exclude group: 'com.google.android.material:material'
  128. })
  129. //适配器
  130. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
  131. //搜索历史 流式布局 tab选项
  132. // implementation 'com.hyman:flowlayout-lib:1.1.2'
  133. implementation project(':flowlayout-lib')
  134. //json
  135. implementation 'com.alibaba:fastjson:1.1.54.android'
  136. //视频播放 https://www.jianshu.com/p/8f1af9790c69
  137. // implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
  138. //瀑布流LayoutManager
  139. implementation 'com.google.android.flexbox:flexbox:3.0.0'
  140. //okhttp网络下载
  141. implementation 'com.squareup.okhttp3:okhttp:3.14.7'
  142. //地址联动
  143. implementation 'com.github.gamekonglee:regionSelector:2.0'
  144. //dialog
  145. implementation 'com.github.liys666666:LDialog:V2.1.2'
  146. //事件传递
  147. implementation 'org.greenrobot:eventbus:3.0.0'
  148. //时间选择器
  149. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  150. //评分
  151. implementation 'com.github.KaelLi1989:NiceRatingBar:1.0.0'
  152. //图片压缩
  153. // implementation 'com.github.ZS-ZhangsShun:EasyImageCompressor:1.0.7'
  154. //支付宝
  155. api 'com.alipay.sdk:alipaysdk-android:+@aar'
  156. //权限申请
  157. implementation 'com.yanzhenjie:permission:2.0.3' //添加依赖
  158. //版本更新
  159. //----------AndroidX 版本
  160. //app-updater
  161. implementation 'com.github.jenly1314.AppUpdater:app-updater:1.1.3'
  162. //app-dialog
  163. implementation 'com.github.jenly1314.AppUpdater:app-dialog:1.1.3'
  164. // For Java
  165. implementation 'androidx.work:work-runtime:2.7.1'
  166. //二维码
  167. implementation 'com.google.zxing:core:3.3.0'
  168. //日历选择开始和结束时间
  169. implementation 'com.github.TurnTears:CalendarRangeSelect:1.1.1'
  170. //京东联盟
  171. api project(':jd_sdk_lib')
  172. //穿山甲
  173. // implementation 'com.pangle.cn:ads-sdk-pro:4.4.0.9'
  174. // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
  175. implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
  176. implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
  177. implementation 'com.umeng.umsdk:abtest:1.0.1'//使用U-App中ABTest能力,可选
  178. implementation 'com.umeng.umsdk:apm:1.7.0'// U-APM产品包依赖(必选)
  179. //友盟Push依赖
  180. api 'com.umeng.umsdk:push:6.5.4'
  181. implementation 'com.umeng.umsdk:share-core:7.2.1'//分享核心库,必选
  182. implementation 'com.umeng.umsdk:share-board:7.2.1'//分享面板功能,可选
  183. implementation 'com.umeng.umsdk:share-wx:7.2.1'//微信完整版
  184. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'//微信官方依赖库,必选
  185. //Android数据库LitePal
  186. implementation 'org.litepal.android:java:3.0.0'
  187. //WebViewJavascriptBridge实现JS与java安全交互
  188. implementation 'com.github.lzyzsd:jsbridge:1.0.4'
  189. //文字轮播
  190. implementation 'com.sunfusheng:marqueeview:1.3.3'
  191. //毕加索图片加载
  192. implementation 'com.squareup.picasso:picasso:2.8'
  193. //解析html代码
  194. implementation 'org.jsoup:jsoup:1.9.2'
  195. //BASE加密
  196. implementation "commons-codec:commons-codec:1.10"
  197. //MaterialButton
  198. implementation 'com.google.android.material:material:1.2.1'
  199. //加载gif
  200. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
  201. //wheelview
  202. // implementation 'com.contrarywind:Android-WheelView:1.1.8'
  203. implementation('com.fasterxml.jackson.core:jackson-core:2.11.1')
  204. implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.1')
  205. implementation('com.fasterxml.jackson.core:jackson-databind:2.11.1')
  206. //zxing 二维码扫描
  207. implementation 'com.journeyapps:zxing-android-embedded:3.5.0'
  208. //toast 吐司通知框架
  209. implementation 'com.github.getActivity:Toaster:12.6'
  210. }