build.gradle 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.greenrobot.greendao'
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. buildToolsVersion rootProject.ext.buildToolsVersion
  6. defaultConfig {
  7. applicationId "com.timichat.app"
  8. minSdkVersion rootProject.ext.minSdkVersion
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 202108190
  11. versionName "1.6.6"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. multiDexEnabled true
  14. // 是否有第三方登录
  15. buildConfigField("int", "IM_APPID", "1400453457")
  16. buildConfigField("String", "RONG_APP_KEY", "\"e0x9wycfevs5q\"")
  17. buildConfigField("String", "VIDEO_APPID", "\"043acc9a37da411490226379cb1a6681\"")
  18. buildConfigField("String", "api", "\"https://api.timichat.com\"")
  19. buildConfigField("String", "FILE_PROVIDER_NAME", "\"com.timichat.app.FileProvider\"")
  20. manifestPlaceholders = [
  21. app_Id : "com.timichat.app",
  22. app_name : "TiMi语音",
  23. channel_id : "3",
  24. qq_app_id : "",
  25. map_api_key : "fd732c3845297b3e1dd744a8b425ec3f",
  26. ali_app_key : "32000822",
  27. ali_app_secret: "7abc4d3022947c40dae14977be97b041"
  28. ]
  29. ndk {
  30. abiFilters 'armeabi-v7a'/*, 'arm64-v8a'*/
  31. }
  32. }
  33. dexOptions {
  34. javaMaxHeapSize "4g"
  35. }
  36. greendao {
  37. schemaVersion 22
  38. daoPackage 'com.starbuds.app.entity.db'
  39. targetGenDir 'src/main/java'
  40. }
  41. signingConfigs {
  42. release {
  43. storeFile file('../boluojie.keystore')
  44. storePassword "boluojie.china.com"
  45. keyAlias "boluojie"
  46. keyPassword "boluojie.china.com"
  47. v1SigningEnabled true
  48. v2SigningEnabled true
  49. }
  50. }
  51. buildTypes {
  52. debug {
  53. debuggable true
  54. minifyEnabled false
  55. shrinkResources false
  56. zipAlignEnabled true
  57. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  58. buildConfigField("String", "RONG_APP_KEY", "\"82hegw5u8164x\"")
  59. buildConfigField("int", "IM_APPID", "1400464651")
  60. buildConfigField("String", "VIDEO_APPID", "\"67ea7ad866554fcda50e895ae3465bd1\"")
  61. buildConfigField("String", "api", "\"http://api.timichat.net\"")
  62. manifestPlaceholders = [
  63. ali_app_key : "333347698",
  64. ali_app_secret: "127635475506424ca142289274a0592e",
  65. channel_id : "3"
  66. ]
  67. signingConfig signingConfigs.release
  68. }
  69. release {
  70. minifyEnabled true
  71. shrinkResources true
  72. zipAlignEnabled true
  73. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  74. }
  75. }
  76. flavorDimensions "xingya"
  77. //多渠道打包配置
  78. productFlavors {
  79. //渠道包
  80. timi {// timi
  81. dimension "xingya"
  82. signingConfig signingConfigs.release
  83. manifestPlaceholders = [
  84. app_Id : "com.timichat.app",
  85. app_name : "TiMi语音",
  86. channel_id : "261442100002816"
  87. ]
  88. }
  89. tm {
  90. dimension "xingya"
  91. signingConfig signingConfigs.release
  92. manifestPlaceholders = [
  93. app_Id : "com.timichat.app",
  94. app_name : "Tm语音",
  95. channel_id : "261442100002816"
  96. ]
  97. }
  98. }
  99. android.applicationVariants.all { variant ->
  100. variant.outputs.all { output ->
  101. def outputFile = output.outputFile
  102. if (outputFile != null && outputFile.name.contains('release')) {
  103. //渠道名称
  104. def buildName = ""
  105. variant.productFlavors.each { product ->
  106. buildName = product.name
  107. }
  108. //获取每个打包产物
  109. variant.getPackageApplication().outputDirectory = new File("${project.getProjectDir()}/channel")
  110. outputFileName = "${buildName}-${variant.versionName}-${variant.versionCode}.apk"
  111. }
  112. }
  113. }
  114. sourceSets {
  115. [timi,tm].each {
  116. sourceSets[it.name].res.srcDirs = ["src/channel/${it.name}/res"]
  117. sourceSets[it.name].assets.srcDirs = ["src/channel/${it.name}/assets"]
  118. }
  119. }
  120. lintOptions {
  121. abortOnError false
  122. }
  123. compileOptions {
  124. sourceCompatibility JavaVersion.VERSION_1_8
  125. targetCompatibility JavaVersion.VERSION_1_8
  126. }
  127. }
  128. dependencies {
  129. implementation fileTree(include: ['*.jar'], dir: 'libs')
  130. implementation fileTree(include: ['*.aar'], dir: 'libs')
  131. implementation project(':xlibrary')
  132. // implementation project(':tuikit')
  133. implementation project(':easyPhotos')
  134. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  135. implementation "com.jakewharton:butterknife:$rootProject.ext.butterknifeVersion"
  136. implementation "androidx.constraintlayout:constraintlayout:$rootProject.ext.androidxConstraintVersion"
  137. implementation "androidx.appcompat:appcompat:$rootProject.ext.androidxVersion"
  138. annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.butterknifeVersion"
  139. implementation "org.greenrobot:greendao:$rootProject.ext.greendaoVersion"
  140. implementation("com.github.yuweiguocn:GreenDaoUpgradeHelper:v$rootProject.ext.greendaoHelperVersion") {
  141. exclude module: 'support-annotations'
  142. }
  143. // implementation "com.android.support.constraint:constraint-layout:$rootProject.ext.constraintLayoutVersion"
  144. implementation 'com.qiniu:qiniu-android-sdk:7.3.12'
  145. implementation 'com.hyman:flowlayout-lib:1.1.2'
  146. implementation 'androidx.multidex:multidex:2.0.0'
  147. implementation 'com.github.hackware1993:MagicIndicator:1.5.0'
  148. implementation 'com.contrarywind:Android-PickerView:3.2.6'
  149. implementation 'me.jessyan:autosize:1.1.2'
  150. implementation 'cn.bingoogolapple:bga-qrcodecore:1.1.7@aar'
  151. implementation 'cn.bingoogolapple:bga-zxing:1.1.7@aar'
  152. implementation 'com.bigkoo:convenientbanner:2.0.5'
  153. implementation 'com.shizhefei:MultiTypeView:1.0.1'
  154. implementation files('libs/SecurityLib.jar')
  155. implementation('com.github.Yellow5A5:ClearScreenHelper:1.0.2') {
  156. exclude group: 'com.android.support'
  157. }
  158. implementation 'cn.jzvd:jiaozivideoplayer:7.4.0'
  159. implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  160. implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  161. // 微信
  162. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.5.8'
  163. // 华为支付
  164. // implementation 'com.huawei.android.hms:iap:2.6.3.306'
  165. // implementation 'com.huawei.android.hms:hwid::2.6.3.306'
  166. // implementation 'com.huawei.android.hms:push:2.6.3.306'
  167. // QQ
  168. implementation files('libs/open_sdk_r08e585d_lite.jar')
  169. // 图片压缩
  170. implementation 'top.zibin:Luban:1.1.8'
  171. // 图片裁剪
  172. implementation 'com.github.yalantis:ucrop:2.2.3'
  173. implementation 'com.github.yalantis:ucrop:2.2.3-native'
  174. // 高德定位
  175. implementation 'com.amap.api:location:4.8.0'
  176. implementation ("com.github.bumptech.glide:glide:$rootProject.ext.glideVersion") {
  177. exclude group: "com.android.support"
  178. }
  179. implementation "com.github.bumptech.glide:okhttp3-integration:$rootProject.ext.glideVersion"
  180. implementation "com.github.bumptech.glide:annotations:$rootProject.ext.glideVersion"
  181. annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.ext.glideVersion"
  182. // implementation "androidx.vectordrawable:vectordrawable-animated:1.1.0"
  183. // implementation "androidx.exifinterface:exifinterface:1.2.0"
  184. implementation 'jp.wasabeef:glide-transformations:4.1.0'
  185. implementation 'com.tencent.bugly:crashreport:3.1.0@aar'
  186. implementation 'com.tencent.bugly:nativecrashreport:3.7.1@aar'
  187. implementation 'com.airbnb.android:lottie:3.5.0'
  188. implementation 'com.github.yyued:SVGAPlayer-Android:2.5.14'
  189. implementation "io.github.tencent:vap:2.0.17"
  190. // implementation 'com.github.YvesCheung:SVGAGlidePlugin:4.9.3'
  191. testImplementation 'junit:junit:4.12'
  192. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  193. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  194. implementation 'com.github.yujinzhao123:DoubleHeadedDragonBar:1.0.4'
  195. implementation 'com.hyman:flowlayout-lib:1.1.2'
  196. implementation 'com.github.cirno-poi:VerifyEditText:1.0.0'
  197. implementation 'com.aliyun.ams:alicloud-android-push:3.1.12'
  198. // implementation 'com.aliyun.ams:alicloud-android-third-push:3.1.0@aar'
  199. // implementation 'com.aliyun.ams:huawei-push:2.6.3.305'
  200. // implementation 'com.aliyun.ams:huawei-push-base:2.6.3.305'
  201. // implementation 'com.aliyun.ams:meizu-push:3.8.7.1'
  202. // implementation 'com.aliyun.ams:third_vivopush:2.9.0.1'
  203. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  204. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  205. implementation 'com.umeng.umsdk:apm:1.3.1' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  206. implementation 'cn.rongcloud.sdk:im_lib:4.0.3.13'
  207. implementation ('cn.rongcloud.sdk:im_kit:4.0.3.13'){
  208. exclude group: "androidx.media"
  209. exclude group: "androidx.legacy"
  210. // exclude group: "com.github.bumptech.glide"
  211. }
  212. // implementation ('cn.rongcloud.sdk:im_kit:5.1.0'){
  213. // exclude group: "com.github.bumptech.glide"
  214. // }
  215. implementation 'io.agora.rtc:agora-rtc-sdk:1.0.0'
  216. implementation 'com.google.android:flexbox:2.0.1'
  217. // implementation 'com.tencent.tbs.tbssdk:sdk:43939'
  218. implementation 'com.github.lzyzsd:jsbridge:1.0.4'
  219. // implementation 'com.github.wendux:DSBridge-Android:3.0-SNAPSHOT'
  220. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.3'
  221. }