build.gradle 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion "28.0.3"
  5. defaultConfig {
  6. applicationId "com.shanp.wodeshebao"
  7. minSdkVersion 16
  8. targetSdkVersion 28
  9. versionCode 52
  10. versionName "3.2.7"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. multiDexEnabled true
  13. }
  14. signingConfigs {
  15. release {
  16. storeFile file('/Users/shanpin_lxw/Desktop/Leexw/shanpin/shanp_app/shanp.keystore')
  17. storePassword 'shanpin_20140731'
  18. keyAlias 'shanpin'
  19. keyPassword 'shanpin_20150330'
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled true
  25. shrinkResources true
  26. signingConfig signingConfigs.release
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. buildConfigField("String", "MAIN_SERVER", "\"http://www.wodeshebao.com\"")
  29. buildConfigField("String", "APP_SERVER", "\"http://app.wodeshebao.com\"")
  30. }
  31. debug {
  32. minifyEnabled false
  33. signingConfig signingConfigs.release
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. buildConfigField("String", "MAIN_SERVER", "\"http://120.79.211.173\"")
  36. buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173\"")
  37. }
  38. }
  39. flavorDimensions "app"
  40. productFlavors {
  41. wodeshebao {
  42. dimension "app"
  43. applicationId "com.shanp.wodeshebao"
  44. manifestPlaceholders = [
  45. UMENG_APPKEY : "55ffd03ee0f55afd260034d7",
  46. BAIDU_LBSAPI_APPKEY: "0U7YmW3FvtXhOykChribkPBo8OZYY66G",
  47. SHARE_QQ_SCHEME : "tencent1104817093",
  48. ]
  49. buildConfigField("int", "PAY_CHANNEL_WECHAT", "1")
  50. buildConfigField("int", "NOTIFY_SERVICE_ID", "20140731")
  51. buildConfigField("String", "API_OPEN_SUFFIX", "\"wdsb\"")
  52. }
  53. wuxianyijin {
  54. dimension "app"
  55. applicationId "com.shanp.wuxianyijin"
  56. manifestPlaceholders = [
  57. UMENG_APPKEY : "57a15496e0f55a892d0017be",
  58. BAIDU_LBSAPI_APPKEY: "1xjOVKUvNsEkFcKcNKj5YPWWafG4zS5b",
  59. SHARE_QQ_SCHEME : "tencent1105699846",
  60. ]
  61. buildConfigField("int", "PAY_CHANNEL_WECHAT", "2")
  62. buildConfigField("int", "NOTIFY_SERVICE_ID", "20160918")
  63. buildConfigField("String", "API_OPEN_SUFFIX", "\"wxyj\"")
  64. }
  65. }
  66. sourceSets {
  67. main {
  68. jniLibs.srcDir 'libs'
  69. jni.srcDirs = []
  70. res.srcDirs = [
  71. 'src/main/res/layouts/buy',
  72. 'src/main/res/layouts/self',
  73. 'src/main/res/layouts/query',
  74. 'src/main/res/layouts/consult',
  75. 'src/main/res/layouts',
  76. 'src/main/res',
  77. ]
  78. }
  79. wodeshebao {
  80. assets.srcDirs = ['src/wodeshebao/assets']
  81. java.srcDirs = ['src/wodeshebao/java']
  82. res.srcDirs = ['src/wodeshebao/res']
  83. }
  84. wuxianyijin {
  85. assets.srcDirs = ['src/wuxianyijin/assets']
  86. java.srcDirs = ['src/wuxianyijin/java']
  87. res.srcDirs = ['src/wuxianyijin/res']
  88. }
  89. }
  90. dependencies {
  91. implementation fileTree(dir: 'libs', include: ['*.jar'])
  92. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  93. exclude group: 'com.android.support', module: 'support-annotations'
  94. })
  95. testImplementation 'junit:junit:4.12'
  96. implementation 'com.android.support:support-v4:28.0.0'
  97. implementation 'com.android.support:cardview-v7:28.0.0'
  98. implementation 'com.android.support:recyclerview-v7:28.0.0'
  99. implementation 'com.android.support:design:28.0.0'
  100. implementation 'com.github.bumptech.glide:glide:3.8.0'
  101. implementation 'com.google.code.gson:gson:2.8.5'
  102. implementation 'com.umeng.umsdk:analytics:8.0.0'
  103. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
  104. implementation 'com.sobot.chat:sobotsdk:2.7.4'
  105. implementation 'com.squareup.okhttp3:okhttp:3.10.0'
  106. implementation 'in.srain.cube:ultra-ptr:1.0.11'
  107. implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
  108. implementation(name: 'open_ad_sdk', ext: 'aar')
  109. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
  110. implementation project(':push')
  111. }
  112. }