build.gradle 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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 17
  8. targetSdkVersion 30
  9. versionCode 75
  10. versionName "3.6.1"
  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 true
  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. jni.srcDirs = []
  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(name: 'shanyan_sdk_v2.3.3.0', ext: 'aar')
  132. implementation 'androidx.appcompat:appcompat:1.2.0'
  133. implementation 'com.google.android.material:material:1.2.1'
  134. implementation 'com.github.bumptech.glide:glide:3.8.0'
  135. implementation 'com.google.code.gson:gson:2.8.5'
  136. implementation 'com.umeng.umsdk:analytics:8.0.0'
  137. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
  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:2.9.5'
  141. implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  142. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
  143. implementation 'com.shanp.android:push-umeng:1.0.1'
  144. implementation 'com.shanp.android:share:1.0.2'
  145. implementation 'com.pangle.cn:ads-sdk:3.5.0.6'
  146. }
  147. }