build.gradle 8.4 KB

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