No Description

build.gradle 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.greenrobot.greendao'
  3. android {
  4. signingConfigs {
  5. config {
  6. storeFile file('../liedouyx')
  7. storePassword '123456'
  8. keyAlias 'liedouyx'
  9. keyPassword '123456'
  10. }
  11. }
  12. compileSdkVersion 30
  13. buildToolsVersion "30.0.3"
  14. defaultConfig {
  15. applicationId "com.kx.liedouYX"
  16. minSdkVersion 19
  17. targetSdkVersion 30
  18. versionCode 118
  19. versionName "1.0.18"
  20. ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  21. multiDexEnabled true
  22. // signingConfig signingConfigs.config
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled true
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. signingConfig signingConfigs.config
  29. }
  30. debug {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. signingConfig signingConfigs.config
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility 1.8
  38. targetCompatibility 1.8
  39. }
  40. // 友盟多渠道打包
  41. productFlavors {
  42. huawei {}
  43. xiaomi {}
  44. oppo {}
  45. vivo {}
  46. }
  47. productFlavors.all { flavor ->
  48. flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
  49. }
  50. flavorDimensions 'versionCode'
  51. }
  52. greendao {
  53. schemaVersion 4 //当前数据库版本
  54. daoPackage 'com.kx.liedouYX.db.dao'
  55. targetGenDir 'src/main/java'
  56. }
  57. repositories {
  58. flatDir {
  59. dirs 'libs', '../libs'
  60. }
  61. }
  62. dependencies {
  63. implementation fileTree(include: ['*.jar'], dir: 'libs')
  64. implementation fileTree(include: ['*.aar'], dir: 'libs/common/common_android_9.6.6')
  65. implementation 'androidx.appcompat:appcompat:1.0.2'
  66. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  67. implementation 'junit:junit:4.12'
  68. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  69. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  70. implementation 'com.google.android.material:material:1.0.2'
  71. //butterknife
  72. implementation 'com.jakewharton:butterknife:10.2.1'
  73. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
  74. //RxJava依赖
  75. implementation 'io.reactivex.rxjava2:rxjava:2.1.3'
  76. implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
  77. //rxbinding
  78. implementation 'com.jakewharton.rxbinding2:rxbinding:2.2.0'
  79. // okhttp3依赖
  80. implementation 'com.squareup.okhttp3:okhttp:3.12.2'
  81. //日志拦截器依赖
  82. implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
  83. // retrofit依赖
  84. implementation 'com.squareup.retrofit2:retrofit:2.5.0'
  85. //gson转换器依赖
  86. implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
  87. // RxJava和Retrofit混用的适配器
  88. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
  89. //gson依赖
  90. implementation 'com.google.code.gson:gson:2.8.5'
  91. //用于自动绑定生命周期
  92. implementation 'com.uber.autodispose:autodispose-android-archcomponents:1.0.0-RC2'
  93. //本地核心库
  94. implementation project(path: ':lib_core')
  95. //eventbus
  96. implementation 'org.greenrobot:eventbus:3.3.1'
  97. //轮播控件
  98. implementation 'io.github.youth5201314:banner:2.2.2'
  99. //添加StatusBarUtil的依赖
  100. implementation 'com.jaeger.statusbarutil:library:1.5.1'
  101. //仿iOS加载等待dialog
  102. // implementation 'com.github.gittjy:LoadingDialog:1.0.2'
  103. // implementation 'com.github.BenShanYang:LoadingDialog:1.0.1'
  104. //指示器
  105. // implementation 'com.github.hackware1993:MagicIndicator:1.7.0'
  106. // greendao 数据库
  107. implementation 'org.greenrobot:greendao:3.2.2'
  108. //glide https://blog.csdn.net/qq_21154101/article/details/95103799
  109. annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
  110. implementation 'com.github.bumptech.glide:glide:4.14.2'
  111. implementation 'jp.wasabeef:glide-transformations:2.0.1'
  112. //上拉加载和下拉刷新控件 https://blog.csdn.net/qq_37328546/article/details/126478991
  113. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
  114. // 没有使用特殊Header,可以不加这一依赖
  115. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.3'
  116. // Java language implementation
  117. implementation 'androidx.core:core:1.3.2'
  118. //较全的弹窗
  119. implementation 'com.github.li-xiaojun:XPopup:2.6.8'
  120. implementation 'com.github.adnan-SM:TimelyTextView:1.0'
  121. //仿iOS滚动选择控件库
  122. implementation project(':pickerview_library')
  123. implementation 'androidx.multidex:multidex:2.0.1'
  124. //exoplayer
  125. api 'com.google.android.exoplayer:exoplayer:2.11.3'
  126. //video cache
  127. api 'com.danikula:videocache:2.7.1'
  128. //微信sdk
  129. api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
  130. //zxing的core库
  131. implementation 'com.google.zxing:core:3.5.1'
  132. //zxing
  133. implementation 'com.google.zxing:zxing-parent:3.5.1'
  134. //zxing
  135. implementation 'com.journeyapps:zxing-android-embedded:4.1.0'
  136. //图片大图预览
  137. implementation 'com.ycjiang:ImagePreview:2.3.7'
  138. //淘宝sdk
  139. implementation(name: 'alibclogin-5.0.1.9', ext: 'aar')
  140. // applink
  141. implementation(name: 'alibcapplink-5.0.1.9', ext: 'aar')
  142. // 广告SDK
  143. implementation(name: 'alibcad-5.0.1.9', ext: 'aar')
  144. // 小程序
  145. implementation(name: 'alibctriver-5.0.1.9', ext: 'aar')
  146. // c++基础库(如果工程中没有接入该so包:libc++_shared.so,需要接入该sdk)
  147. implementation(name: 'cpp_shared-0.0.3', ext: 'aar')
  148. // 直播
  149. implementation(name: 'alibctriver_live-5.0.1.9', ext: 'aar')
  150. // 直播业务需要cardview
  151. implementation 'com.android.support:cardview-v7:28.0.0'
  152. // webview容器
  153. implementation(name: 'alibcwebview-5.0.1.9', ext: 'aar')
  154. //文字动画显示,用粒子动画显示各种文字
  155. implementation 'yasic.library.ParticleTextView:particletextview:0.0.3'
  156. // 电商基础组件
  157. implementation(name: 'alibctradecommon-5.0.1.9', ext: 'aar')
  158. implementation(name: 'alibcnbtrade-5.0.1.9', ext: 'aar')
  159. implementation(name: 'alibcprotocol-5.0.1.9', ext: 'aar')
  160. implementation 'com.alibaba:fastjson:1.1.71.android'
  161. // 该模块主要包括任务激励、TOP授权逻辑,媒体侧可根据自己业务上是否接入来决定是否需要引入该模块
  162. implementation(name: 'alibcextend-5.0.1.9', ext: 'aar')
  163. // 安全保镖v6版本
  164. implementation(name: 'miscaar3-5.5.9.1-preInstall', ext: 'aar')
  165. implementation(name: 'nocaptchaaar3-5.5.8.1-preInstall', ext: 'aar')
  166. implementation(name: 'sgmiddletieraar3-5.6.230509-preInstall', ext: 'aar')
  167. implementation(name: 'securitybodyaar3-5.6.230509-preInstall', ext: 'aar')
  168. implementation(name: 'securityguardaar3-5.6.230509-preInstall', ext: 'aar')
  169. // 其他(业务按需)
  170. implementation('com.facebook.fresco:fresco:0.10.0') {
  171. exclude(module: 'support-v4')
  172. }
  173. implementation project(path: ':magicindicator')
  174. implementation project(path: ':pre-loader')
  175. // 友盟统计SDK
  176. // implementation 'com.umeng.umsdk:common:9.6.5'// (必选)
  177. // implementation 'com.umeng.umsdk:asms:1.8.0'// 必选
  178. // implementation 'com.umeng.umsdk:uyumao:1.1.2'//使用U-App中ABTest能力,可选
  179. implementation files('libs/push/push_android_6.6.2/umeng-umdid-1.1.0.jar')
  180. implementation files('libs/push/push_android_6.6.2/umeng-alicloud_beacon-1.0.5.jar')
  181. implementation files('libs/push/push_android_6.6.2/umeng-alicloud-utils-2.0.0.1.jar')
  182. implementation files('libs/push/push_android_6.6.2/umeng-alicloud-httpdns-1.3.2.3.1.jar')
  183. implementation files('libs/push/push_android_6.6.2/umeng-agoo_networksdk-3.5.8.7.jar')
  184. implementation files('libs/push/push_android_6.6.2/umeng-agoo-accs-3.4.2.7.9.jar')
  185. }