build.gradle 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion '31.0.0-rc3'
  6. buildFeatures {
  7. viewBinding = true
  8. }
  9. defaultConfig {
  10. applicationId "com.xsbanruo.app"
  11. minSdkVersion 19
  12. targetSdkVersion 30
  13. versionCode 149
  14. versionName "2.3.9"
  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('../xsbanruo.jks')
  28. storePassword 'xsbanruo_20170329'
  29. keyAlias 'xsbanruo'
  30. keyPassword 'xsbanruo_20170329'
  31. }
  32. release {
  33. storeFile file('../xsbanruo.jks')
  34. storePassword 'xsbanruo_20170329'
  35. keyAlias 'xsbanruo'
  36. keyPassword 'xsbanruo_20170329'
  37. }
  38. }
  39. android.applicationVariants.all {
  40. variant ->
  41. variant.outputs.all {
  42. outputFileName = "xsbanruo_${variant.buildType.name}_v${variant.versionName}.apk"
  43. }
  44. }
  45. buildTypes {
  46. release {
  47. minifyEnabled true
  48. zipAlignEnabled true
  49. shrinkResources true
  50. signingConfig signingConfigs.release
  51. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  52. buildConfigField("String", "APP_SERVER", "\"http://logic.xsbanruo.com/bore\"")
  53. buildConfigField("String", "WEB_SERVER", "\"http://www.xsbanruo.com/borew\"")
  54. buildConfigField("String", "FILE_SERVER", "\"http://www.xsbanruo.com/borew/file\"")
  55. }
  56. debug {
  57. minifyEnabled false
  58. signingConfig signingConfigs.release
  59. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  60. buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173:7100/bore\"")
  61. buildConfigField("String", "WEB_SERVER", "\"http://120.79.211.173:7101/borew\"")
  62. buildConfigField("String", "FILE_SERVER", "\"http://120.79.211.173:7101/borew/file\"")
  63. }
  64. }
  65. sourceSets {
  66. main {
  67. jniLibs.srcDirs = ['libs']
  68. res.srcDirs = [
  69. 'src/main/res',
  70. 'src/main/res/layouts',
  71. 'src/main/res/layouts/app',
  72. 'src/main/res/layouts/common',
  73. 'src/main/res/layouts/content',
  74. 'src/main/res/layouts/follow',
  75. 'src/main/res/layouts/user',
  76. 'src/main/res/layouts/question',
  77. 'src/main/res/layouts/rank',
  78. 'src/main/res/layouts/sound',
  79. 'src/main/res/layouts/account',
  80. 'src/main/res/layouts/pay',
  81. 'src/main/res/layouts/practice',
  82. 'src/main/res/layouts/pk',
  83. 'src/main/res/layouts/words',
  84. ]
  85. }
  86. }
  87. compileOptions {
  88. targetCompatibility JavaVersion.VERSION_1_8
  89. }
  90. }
  91. dependencies {
  92. implementation fileTree(include: ['*.jar'], dir: 'libs')
  93. testImplementation 'junit:junit:4.12'
  94. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  95. implementation 'androidx.core:core-ktx:1.3.2'
  96. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
  97. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01"
  98. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  99. implementation project(':uikit')
  100. implementation project(':update')
  101. implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
  102. implementation(name: 'AlivcPlayer-3.4.10', ext: 'aar')
  103. implementation(name: 'AlivcReporter-1.2', ext: 'aar')
  104. implementation(name: 'miit_mdid_1.0.10', ext: 'aar')
  105. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
  106. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
  107. implementation 'com.cleveroad:fan-layout-manager:1.0.5'
  108. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
  109. implementation "org.reactivestreams:reactive-streams:1.0.3"
  110. implementation 'com.shanp.android:base-rx-mvc:1.1.3'
  111. implementation 'com.shanp.android:push-umeng:1.0.7'
  112. implementation 'com.shanp.android:share:1.0.2'
  113. implementation "com.github.donkingliang:LabelsView:1.6.1"
  114. //implementation(name: 'open_ad_sdk_3.9.0.5', ext: 'aar') //2.9.5.5
  115. implementation 'com.pangle.cn:ads-sdk-pro:4.0.0.3'
  116. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
  117. implementation "androidx.room:room-runtime:2.2.5"
  118. implementation 'androidx.room:room-rxjava2:2.2.5'
  119. annotationProcessor "androidx.room:room-compiler:2.2.5"
  120. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  121. implementation 'com.airbnb.android:lottie:3.4.0'
  122. implementation 'com.umeng.umsdk:apm:1.3.1'
  123. implementation 'id.zelory:compressor:3.0.1'
  124. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  125. }