build.gradle 6.7 KB

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