build.gradle 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.huawei.agconnect'
  3. apply plugin: 'kotlin-android'
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "29.0.3"
  7. buildFeatures{
  8. viewBinding = true
  9. }
  10. defaultConfig {
  11. applicationId "com.buyao.app"
  12. minSdkVersion 19
  13. targetSdkVersion 30
  14. versionCode 100
  15. versionName "1.1.2"
  16. multiDexEnabled true
  17. ndk {
  18. abiFilters 'armeabi-v7a', 'arm64-v8a'
  19. }
  20. }
  21. //设置打包的apk名称
  22. android.applicationVariants.all {
  23. variant ->
  24. variant.outputs.all {
  25. outputFileName = "buyao_${variant.buildType.name}_v${variant.versionName}.apk"
  26. }
  27. }
  28. buildTypes {
  29. debug {
  30. minifyEnabled false
  31. buildConfigField("String", "SERVER", "\"http://app.test.buyao.com\"")
  32. }
  33. release {
  34. minifyEnabled true
  35. zipAlignEnabled true
  36. shrinkResources true
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. buildConfigField("String", "SERVER", "\"http://app.buyao.com\"")
  39. }
  40. }
  41. signingConfigs {
  42. debug {
  43. storeFile rootProject.file('buyao.jks')
  44. storePassword 'buyao_20200822'
  45. keyAlias 'BuYao'
  46. keyPassword 'buyao_20200822'
  47. }
  48. release {
  49. storeFile rootProject.file('../buyao.jks')
  50. storePassword 'buyao_20200822'
  51. keyAlias 'BuYao'
  52. keyPassword 'buyao_20200822'
  53. }
  54. }
  55. sourceSets {
  56. main {
  57. jniLibs.srcDirs = ['libs']
  58. res.srcDirs = [
  59. 'src/main/res',
  60. 'src/main/res/layouts',
  61. 'src/main/res/layouts/app',
  62. 'src/main/res/layouts/common',
  63. 'src/main/res/layouts/login',
  64. 'src/main/res/layouts/user',
  65. 'src/main/res/layouts/wallet',
  66. 'src/main/res/layouts/room',
  67. 'src/main/res/layouts/moment',
  68. 'src/main/res/layouts/im'
  69. ]
  70. }
  71. }
  72. compileOptions {
  73. targetCompatibility JavaVersion.VERSION_1_8
  74. }
  75. }
  76. dependencies {
  77. implementation fileTree(dir: "libs", include: ["*.jar"])
  78. testImplementation 'junit:junit:4.12'
  79. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  80. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  81. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  82. implementation 'androidx.core:core-ktx:1.3.2'
  83. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
  84. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01"
  85. implementation 'androidx.appcompat:appcompat:1.2.0'
  86. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  87. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  88. implementation 'com.google.android.material:material:1.2.1'
  89. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  90. implementation 'io.reactivex.rxjava2:rxjava:2.2.13'
  91. implementation "org.reactivestreams:reactive-streams:1.0.3"
  92. implementation 'com.squareup.retrofit2:retrofit:2.6.2'
  93. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.2'
  94. implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
  95. implementation 'com.squareup.okhttp3:okhttp:3.12.1'
  96. implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
  97. implementation 'com.github.bumptech.glide:glide:4.11.0'
  98. implementation 'jp.wasabeef:glide-transformations:4.1.0'
  99. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  100. implementation 'com.alibaba:fastjson:1.2.60'
  101. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.3'
  102. implementation(name: 'aliphoneauth-2.10.1', ext: 'aar')
  103. implementation(name: 'alipaySdk-15.7.9-20200727142846', ext: 'aar')
  104. implementation 'com.aliyun.video.android:svideosnap:3.16.2'//短视频基础版SDK必须依赖
  105. implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖
  106. implementation 'com.alivc.conan:AlivcConan:1.0.3'//核心库必须依赖
  107. implementation 'com.aliyun.video.android:AlivcFFmpeg:2.0.0'//必须依赖
  108. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  109. implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
  110. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  111. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  112. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  113. implementation 'com.github.yalantis:ucrop:2.2.6'
  114. implementation 'com.tencent:mmkv-static:1.2.2'
  115. implementation 'com.umeng.umsdk:common:9.1.0'
  116. implementation 'com.umeng.umsdk:asms:1.1.3'
  117. implementation 'com.umeng.umsdk:crash:0.0.4'
  118. implementation 'com.umeng.umsdk:oaid_mi:1.0.0'
  119. implementation 'com.umeng.umsdk:oaid_oppo:1.0.4'
  120. implementation 'com.umeng.umsdk:oaid_vivo:1.0.0.1'
  121. implementation "androidx.room:room-runtime:2.2.5"
  122. annotationProcessor "androidx.room:room-compiler:2.2.5"
  123. implementation 'com.shuyu:gsyVideoPlayer-java:7.1.6'
  124. implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.6'
  125. implementation 'top.zibin:Luban:1.1.8'
  126. implementation 'com.airbnb.android:lottie:3.4.0'
  127. implementation 'io.agora.rtc:full-sdk:3.1.2'
  128. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.5.7'
  129. implementation project(path: ':faceplatform-ui')
  130. //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
  131. implementation 'cn.rongcloud.sdk:im_lib:4.0.0.1'
  132. implementation 'cn.rongcloud.sdk:im_kit:4.0.0.1'
  133. implementation 'com.huawei.hms:push:4.0.2.300'
  134. implementation(name: 'vivo_pushsdk-v2.9.0.0', ext: 'aar')
  135. implementation files('libs/MiPush_SDK_Client_3_6_9.jar')
  136. implementation "com.github.donkingliang:LabelsView:1.6.1"
  137. }