build.gradle 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "31.0.0-rc3"
  5. defaultConfig {
  6. applicationId "com.shanp.wodeshebao"
  7. minSdkVersion 19
  8. targetSdkVersion 30
  9. versionCode 83
  10. versionName "3.6.9"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. multiDexEnabled true
  13. ndk {
  14. abiFilters 'armeabi-v7a', 'arm64-v8a'
  15. }
  16. }
  17. signingConfigs {
  18. debug {
  19. storeFile file('../shanp.keystore')
  20. storePassword 'shanpin_20140731'
  21. keyAlias 'shanpin'
  22. keyPassword 'shanpin_20150330'
  23. }
  24. release {
  25. storeFile file('../shanp.keystore')
  26. storePassword 'shanpin_20140731'
  27. keyAlias 'shanpin'
  28. keyPassword 'shanpin_20150330'
  29. }
  30. }
  31. //设置打包的apk名称
  32. android.applicationVariants.all {
  33. variant ->
  34. variant.outputs.all {
  35. outputFileName = "${variant.flavorName}_${variant.buildType.name}_v${variant.versionName}.apk"
  36. }
  37. }
  38. buildTypes {
  39. release {
  40. minifyEnabled true
  41. shrinkResources false
  42. signingConfig signingConfigs.release
  43. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  44. buildConfigField("String", "MAIN_SERVER", "\"http://www.wodeshebao.com\"")
  45. buildConfigField("String", "APP_SERVER", "\"http://app.wodeshebao.com\"")
  46. }
  47. debug {
  48. minifyEnabled false
  49. signingConfig signingConfigs.release
  50. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  51. buildConfigField("String", "MAIN_SERVER", "\"http://120.79.211.173\"")
  52. buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173\"")
  53. }
  54. }
  55. flavorDimensions "app"
  56. productFlavors {
  57. wodeshebao {
  58. dimension "app"
  59. applicationId "com.shanp.wodeshebao"
  60. manifestPlaceholders = [
  61. UMENG_APPKEY : "55ffd03ee0f55afd260034d7",
  62. BAIDU_LBSAPI_APPKEY: "0U7YmW3FvtXhOykChribkPBo8OZYY66G",
  63. SHARE_QQ_SCHEME : "tencent1104817093",
  64. ]
  65. buildConfigField("int", "PAY_CHANNEL_WECHAT", "1")
  66. buildConfigField("int", "NOTIFY_SERVICE_ID", "20140731")
  67. buildConfigField("String", "API_OPEN_SUFFIX", "\"wdsb\"")
  68. buildConfigField("String", "SERVER_PACKAGE_NAME", "\"APP\"")
  69. }
  70. wuxianyijin {
  71. dimension "app"
  72. applicationId "com.shanp.wuxianyijin"
  73. manifestPlaceholders = [
  74. UMENG_APPKEY : "57a15496e0f55a892d0017be",
  75. BAIDU_LBSAPI_APPKEY: "1xjOVKUvNsEkFcKcNKj5YPWWafG4zS5b",
  76. SHARE_QQ_SCHEME : "tencent1105699846",
  77. ]
  78. buildConfigField("int", "PAY_CHANNEL_WECHAT", "2")
  79. buildConfigField("int", "NOTIFY_SERVICE_ID", "20160918")
  80. buildConfigField("String", "API_OPEN_SUFFIX", "\"wxyj\"")
  81. buildConfigField("String", "SERVER_PACKAGE_NAME", "\"WXYJ\"")
  82. }
  83. qgsb {
  84. dimension "app"
  85. applicationId "com.shanp.qgsb"
  86. manifestPlaceholders = [
  87. UMENG_APPKEY : "5e87035bdbc2ec080a349841",
  88. BAIDU_LBSAPI_APPKEY: "r2On0veZtTfeijuMSVofOKtrf1zdBGGP",
  89. SHARE_QQ_SCHEME : "tencent1105699846",
  90. ]
  91. buildConfigField("int", "PAY_CHANNEL_WECHAT", "3")
  92. buildConfigField("int", "NOTIFY_SERVICE_ID", "20200414")
  93. buildConfigField("String", "API_OPEN_SUFFIX", "\"qgsb\"")
  94. buildConfigField("String", "SERVER_PACKAGE_NAME", "\"NATION\"")
  95. }
  96. }
  97. sourceSets {
  98. main {
  99. jniLibs.srcDir 'libs'
  100. res.srcDirs = [
  101. 'src/main/res/layouts/buy',
  102. 'src/main/res/layouts/self',
  103. 'src/main/res/layouts/query',
  104. 'src/main/res/layouts/consult',
  105. 'src/main/res/layouts',
  106. 'src/main/res',
  107. ]
  108. }
  109. wodeshebao {
  110. assets.srcDirs = ['src/wodeshebao/assets']
  111. java.srcDirs = ['src/wodeshebao/java']
  112. res.srcDirs = ['src/wodeshebao/res']
  113. }
  114. wuxianyijin {
  115. assets.srcDirs = ['src/wuxianyijin/assets']
  116. java.srcDirs = ['src/wuxianyijin/java']
  117. res.srcDirs = ['src/wuxianyijin/res']
  118. }
  119. qgsb {
  120. assets.srcDirs = ['src/qgsb/assets']
  121. java.srcDirs = ['src/qgsb/java']
  122. res.srcDirs = ['src/qgsb/res']
  123. }
  124. }
  125. dependencies {
  126. implementation fileTree(dir: 'libs', include: ['*.jar'])
  127. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.3.0'
  128. testImplementation 'junit:junit:4.12'
  129. implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
  130. implementation 'com.chuanglan.android.sdk:shanyan:2.3.4.3'
  131. implementation 'androidx.appcompat:appcompat:1.3.0'
  132. implementation 'com.google.android.material:material:1.2.1'
  133. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  134. implementation 'com.github.bumptech.glide:glide:3.8.0'
  135. implementation 'com.google.code.gson:gson:2.8.5'
  136. implementation 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.0'
  137. implementation 'com.squareup.okhttp3:okhttp:3.12.1'
  138. implementation 'in.srain.cube:ultra-ptr:1.0.11'
  139. implementation 'com.sobot.chat:sobotsdk_x:3.0.8'
  140. implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  141. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
  142. implementation('com.shanp.android:push-umeng:1.1.0') {
  143. //exclude group: 'com.umeng.umsdk', module: 'honor-umengaccs'
  144. exclude group: 'com.umeng.umsdk', module: 'honor-push'
  145. exclude group: 'com.umeng.umsdk', module: 'honor-common'
  146. }
  147. implementation 'com.shanp.android:share:1.0.2'
  148. implementation 'com.pangle.cn:ads-sdk-pro:4.9.0.8'
  149. }
  150. }