build.gradle 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion '29.0.3'
  6. buildFeatures{
  7. viewBinding = true
  8. }
  9. defaultConfig {
  10. applicationId "com.xsbanruo.app"
  11. minSdkVersion 17
  12. targetSdkVersion 30
  13. versionCode 140
  14. versionName "2.3.1"
  15. multiDexEnabled true
  16. ndk {
  17. abiFilters 'armeabi-v7a', 'arm64-v8a'
  18. }
  19. }
  20. packagingOptions {
  21. doNotStrip "*/armeabi-v7a/*.so"
  22. doNotStrip "*/arm64-v8a/*.so"
  23. exclude 'META-INF/proguard/androidx-annotations.pro'
  24. }
  25. signingConfigs {
  26. debug {
  27. storeFile file('/Users/shanpin_lxw/Desktop/Leexw/shanpin/shanp_app/xsbanruo.jks')
  28. storePassword 'xsbanruo_20170329'
  29. keyAlias 'xsbanruo'
  30. keyPassword 'xsbanruo_20170329'
  31. }
  32. release {
  33. storeFile file('/Users/shanpin_lxw/Desktop/Leexw/shanpin/shanp_app/xsbanruo.jks')
  34. storePassword 'xsbanruo_20170329'
  35. keyAlias 'xsbanruo'
  36. keyPassword 'xsbanruo_20170329'
  37. }
  38. }
  39. buildTypes {
  40. release {
  41. minifyEnabled true
  42. zipAlignEnabled true
  43. shrinkResources true
  44. signingConfig signingConfigs.release
  45. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  46. buildConfigField("String", "APP_SERVER", "\"http://logic.xsbanruo.com/bore\"")
  47. buildConfigField("String", "WEB_SERVER", "\"http://www.xsbanruo.com/borew\"")
  48. buildConfigField("String", "FILE_SERVER", "\"http://www.xsbanruo.com/borew/file\"")
  49. }
  50. debug {
  51. minifyEnabled false
  52. signingConfig signingConfigs.release
  53. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  54. buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173:7100/bore\"")
  55. buildConfigField("String", "WEB_SERVER", "\"http://120.79.211.173:7101/borew\"")
  56. buildConfigField("String", "FILE_SERVER", "\"http://120.79.211.173:7101/borew/file\"")
  57. }
  58. }
  59. sourceSets {
  60. main {
  61. jniLibs.srcDirs = ['libs']
  62. res.srcDirs = [
  63. 'src/main/res',
  64. 'src/main/res/layouts',
  65. 'src/main/res/layouts/app',
  66. 'src/main/res/layouts/common',
  67. 'src/main/res/layouts/content',
  68. 'src/main/res/layouts/follow',
  69. 'src/main/res/layouts/user',
  70. 'src/main/res/layouts/question',
  71. 'src/main/res/layouts/rank',
  72. 'src/main/res/layouts/sound',
  73. 'src/main/res/layouts/account',
  74. 'src/main/res/layouts/pay',
  75. 'src/main/res/layouts/practice',
  76. 'src/main/res/layouts/pk',
  77. 'src/main/res/layouts/words',
  78. ]
  79. }
  80. }
  81. compileOptions {
  82. targetCompatibility JavaVersion.VERSION_1_8
  83. }
  84. }
  85. dependencies {
  86. implementation fileTree(include: ['*.jar'], dir: 'libs')
  87. testImplementation 'junit:junit:4.12'
  88. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  89. implementation 'androidx.core:core-ktx:1.3.2'
  90. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
  91. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01"
  92. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  93. implementation project(':uikit')
  94. implementation project(':update')
  95. implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
  96. implementation(name: 'AlivcPlayer-3.4.10', ext: 'aar')
  97. implementation(name: 'AlivcReporter-1.2', ext: 'aar')
  98. implementation(name: 'miit_mdid_1.0.10', ext: 'aar')
  99. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
  100. implementation 'com.umeng.umsdk:analytics:8.0.0'
  101. implementation 'com.umeng.umsdk:common:2.2.2'
  102. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
  103. implementation 'com.cleveroad:fan-layout-manager:1.0.5'
  104. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
  105. implementation "org.reactivestreams:reactive-streams:1.0.3"
  106. implementation 'com.shanp.android:base-rx-mvc:1.1.2'
  107. implementation 'com.shanp.android:sms:1.0.8'
  108. implementation 'com.shanp.android:push-umeng:1.0.1'
  109. implementation 'com.shanp.android:share:1.0.2'
  110. implementation "com.github.donkingliang:LabelsView:1.6.1"
  111. implementation(name: 'open_ad_sdk', ext: 'aar') //2.9.5.5
  112. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
  113. implementation "androidx.room:room-runtime:2.2.5"
  114. implementation 'androidx.room:room-rxjava2:2.2.5'
  115. annotationProcessor "androidx.room:room-compiler:2.2.5"
  116. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  117. implementation 'com.airbnb.android:lottie:3.4.0'
  118. implementation 'com.umeng.umsdk:xiaomi-push:3.7.0'
  119. implementation 'com.umeng.umsdk:xiaomi-umengaccs:1.1.4'
  120. implementation 'com.umeng.umsdk:vivo-push:2.3.5'
  121. implementation 'com.umeng.umsdk:vivo-umengaccs:1.1.0'
  122. implementation 'com.umeng.umsdk:oppo-push:2.0.2'
  123. implementation 'com.umeng.umsdk:oppo-umengaccs:1.0.6'
  124. implementation 'com.umeng.umsdk:huawei-basetb:2.6.3.306'
  125. implementation 'com.umeng.umsdk:huawei-pushtb:2.6.3.306'
  126. implementation 'com.umeng.umsdk:huawei-umengaccs:1.2.4'
  127. implementation 'id.zelory:compressor:3.0.1'
  128. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  129. }