build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion '28.0.3'
  5. defaultConfig {
  6. applicationId "com.xsbanruo.app"
  7. minSdkVersion 17
  8. targetSdkVersion 28
  9. versionCode 131
  10. versionName "2.2.0"
  11. multiDexEnabled true
  12. ndk {
  13. abiFilters 'armeabi-v7a', 'arm64-v8a'
  14. }
  15. }
  16. packagingOptions {
  17. doNotStrip "*/armeabi-v7a/*.so"
  18. doNotStrip "*/arm64-v8a/*.so"
  19. exclude 'META-INF/proguard/androidx-annotations.pro'
  20. }
  21. signingConfigs {
  22. release {
  23. storeFile file('/Users/shanpin_lxw/Desktop/Leexw/shanpin/shanp_app/xsbanruo.jks')
  24. storePassword 'xsbanruo_20170329'
  25. keyAlias 'xsbanruo'
  26. keyPassword 'xsbanruo_20170329'
  27. }
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled true
  32. zipAlignEnabled true
  33. shrinkResources true
  34. signingConfig signingConfigs.release
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. buildConfigField("String", "APP_SERVER", "\"http://logic.xsbanruo.com/bore\"")
  37. buildConfigField("String", "WEB_SERVER", "\"http://www.xsbanruo.com/borew\"")
  38. buildConfigField("String", "FILE_SERVER", "\"http://www.xsbanruo.com/borew/file\"")
  39. buildConfigField("String", "CENTER_SERVER", "\"http://service.xsbanruo.com\"")
  40. }
  41. debug {
  42. minifyEnabled false
  43. signingConfig signingConfigs.release
  44. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  45. buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173:7100/bore\"")
  46. buildConfigField("String", "WEB_SERVER", "\"http://120.79.211.173:7101/borew\"")
  47. buildConfigField("String", "FILE_SERVER", "\"http://120.79.211.173:7101/borew/file\"")
  48. buildConfigField("String", "CENTER_SERVER", "\"http://120.79.211.173:7000\"")
  49. }
  50. }
  51. sourceSets {
  52. main {
  53. jniLibs.srcDirs = ['libs']
  54. res.srcDirs = [
  55. 'src/main/res',
  56. 'src/main/res/layouts',
  57. 'src/main/res/layouts/app',
  58. 'src/main/res/layouts/common',
  59. 'src/main/res/layouts/content',
  60. 'src/main/res/layouts/follow',
  61. 'src/main/res/layouts/user',
  62. 'src/main/res/layouts/question',
  63. 'src/main/res/layouts/rank',
  64. 'src/main/res/layouts/sound',
  65. 'src/main/res/layouts/account',
  66. 'src/main/res/layouts/pay',
  67. 'src/main/res/layouts/practice'
  68. ]
  69. }
  70. }
  71. compileOptions {
  72. targetCompatibility JavaVersion.VERSION_1_8
  73. }
  74. }
  75. dependencies {
  76. implementation fileTree(include: ['*.jar'], dir: 'libs')
  77. testImplementation 'junit:junit:4.12'
  78. implementation project(':uikit')
  79. implementation project(':update')
  80. implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
  81. implementation(name: 'AlivcPlayer-3.4.10', ext: 'aar')
  82. implementation(name: 'AlivcReporter-1.2', ext: 'aar')
  83. implementation(name: 'miit_mdid_1.0.10', ext: 'aar')
  84. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
  85. implementation 'com.umeng.umsdk:analytics:8.0.0'
  86. implementation 'com.umeng.umsdk:common:2.2.2'
  87. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
  88. implementation 'com.cleveroad:fan-layout-manager:1.0.5'
  89. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
  90. implementation "org.reactivestreams:reactive-streams:1.0.3"
  91. implementation 'com.shanp.android:base-rx-mvc:1.1.1'
  92. implementation('com.shanp.android:sms:1.0.6') {
  93. exclude group: 'com.shanp.android', module: 'base-rx-mvc'
  94. }
  95. implementation 'com.shanp.android:push-umeng:1.0.1'
  96. implementation 'com.shanp.android:share:1.0.1'
  97. implementation "com.github.donkingliang:LabelsView:1.6.1"
  98. implementation(name: 'open_ad_sdk', ext: 'aar') //2.9.5.5
  99. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
  100. implementation "androidx.room:room-runtime:2.2.5"
  101. implementation 'androidx.room:room-rxjava2:2.2.5'
  102. annotationProcessor "androidx.room:room-compiler:2.2.5"
  103. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  104. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
  105. implementation 'com.airbnb.android:lottie:3.4.0'
  106. }