build.gradle 5.3 KB

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