build.gradle 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion 27
  5. buildToolsVersion '27.0.2'
  6. defaultConfig {
  7. applicationId "com.sheep.jiuyan.samllsheep"
  8. minSdkVersion 18
  9. targetSdkVersion 27
  10. versionCode 101001
  11. versionName "1.1.1"
  12. multiDexEnabled true
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. ndk {
  15. abiFilters 'armeabi' , 'x86'//, 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  16. }
  17. jackOptions {
  18. enabled true
  19. }
  20. multiDexEnabled true
  21. }
  22. compileOptions{
  23. sourceCompatibility org.gradle.api.JavaVersion.VERSION_1_8
  24. targetCompatibility org.gradle.api.JavaVersion.VERSION_1_8
  25. }
  26. signingConfigs {
  27. config {
  28. keyAlias 'sheep'
  29. keyPassword 'zhaoyi2004'
  30. storeFile file('.././sign.jks')
  31. storePassword 'zhaoyi2004'
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  38. signingConfig signingConfigs.config
  39. }
  40. debug {
  41. signingConfig signingConfigs.config
  42. }
  43. }
  44. dexOptions {
  45. preDexLibraries false
  46. javaMaxHeapSize "4g"
  47. }
  48. dexOptions {
  49. preDexLibraries = false
  50. javaMaxHeapSize "4g"
  51. }
  52. packagingOptions {
  53. exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
  54. }
  55. buildTypes {
  56. release {
  57. minifyEnabled false
  58. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  59. signingConfig signingConfigs.config
  60. }
  61. debug {
  62. signingConfig signingConfigs.config
  63. }
  64. }
  65. productFlavors.all { flavor ->
  66. flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: "${flavor.name}",
  67. DUANDUAN_GRAPH : "${flavor.name}",
  68. DUANDUAN_DATASHARE : "${flavor.name}",
  69. ]
  70. }
  71. productFlavors {
  72. bandaimitest {
  73. applicationId "com.sheep.jiuyan.samllsheep"
  74. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "bandaimitest",
  75. DUANDUAN_GRAPH : "bandaimitest",
  76. DUANDUAN_DATASHARE : "bandaimitest",
  77. UMENG_APPKEY : "58edcfeb310c93091c000be2",
  78. JPUSH_PKGNAME : applicationId,
  79. JPUSH_APPKEY : "b8b5adf7d70d0c904d46d04c",
  80. JPUSH_CHANNEL : "developer-default"]
  81. buildConfigField "String", "DUANDUAN_DATASHARE", '"bandaimitest"'
  82. buildConfigField "String", "DUANDUAN_GRAPH", '"bandaimitest"'
  83. buildConfigField "boolean", "KF_DEBUG", 'true'
  84. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  85. // buildConfigField "String", "RN_DOMAIN", '"10.8.210.229:8070"'
  86. buildConfigField "String", "API_DOMAIN", '"test.bdmapp.kfzs.com"'
  87. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  88. buildConfigField "String", "JFSC_DOMAIN", '"http://10.8.210.190:8080/"'//积分商城
  89. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  90. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  91. signingConfig signingConfigs.config
  92. }
  93. bandaimi {
  94. applicationId "com.sheep.jiuyan.samllsheep"
  95. // applicationId "com.kfzs.duanduan.bandaimi"
  96. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "bandaimi",
  97. DUANDUAN_GRAPH : "bandaimi",
  98. DUANDUAN_DATASHARE : "bandaimi",
  99. UMENG_APPKEY : "58edcfeb310c93091c000be2",
  100. JPUSH_PKGNAME : applicationId,
  101. JPUSH_APPKEY : "b8b5adf7d70d0c904d46d04c",
  102. JPUSH_CHANNEL : "developer-default"]
  103. buildConfigField "String", "DUANDUAN_DATASHARE", '"bandaimi"'
  104. buildConfigField "String", "DUANDUAN_GRAPH", '"bandaimi"'
  105. buildConfigField "boolean", "KF_DEBUG", 'false'
  106. buildConfigField "String", "API_DOMAIN", '"app.bandai.yunduanzs.cn"'
  107. buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bandaimi.com/"'//积分商城
  108. // buildConfigField "String", "API_DOMAIN", '"app.bdmoem.kfzs.com"'
  109. // buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bdmoem.kfzs.com/"'//积分商城
  110. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  111. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  112. signingConfig signingConfigs.config
  113. }
  114. }
  115. }
  116. repositories {
  117. flatDir {
  118. dirs 'libs'
  119. }
  120. google()
  121. }
  122. dependencies {
  123. compile 'com.android.support:appcompat-v7:27.0.2'
  124. compile 'com.android.support:support-v4:27.0.2'
  125. compile 'com.android.support:design:27.0.2'
  126. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  127. testCompile 'junit:junit:4.12'
  128. // compile 'com.shark:screencapture:1.0.0'
  129. compile 'com.google.code.gson:gson:2.7'
  130. compile 'com.jcodecraeer:xrecyclerview:1.5.2'
  131. compile 'com.github.bumptech.glide:glide:3.7.0'
  132. compile 'com.squareup.okhttp3:okhttp:3.9.1'
  133. compile 'org.greenrobot:eventbus:3.1.1'
  134. compile 'com.zhy:base-adapter:3.0.3'
  135. compile 'com.liulishuo.filedownloader:library:1.6.9'
  136. compile 'com.tencent.bugly:crashreport_upgrade:latest.release'
  137. //其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
  138. compile 'com.tencent.bugly:nativecrashreport:latest.release'
  139. //其中latest.release指代最
  140. compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  141. debugCompile 'com.readystatesoftware.chuck:library:1.1.0'
  142. compile 'de.hdodenhof:circleimageview:2.2.0'
  143. releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  144. compile 'org.xutils:xutils:3.5.0'
  145. compile 'com.mylhyl:acp:1.1.7'
  146. compile 'cn.yipianfengye.android:zxing-library:2.2'
  147. compile 'com.github.huburt-Hu:NewbieGuide:v1.2.0'
  148. compile 'com.android.support:multidex:1.0.1'
  149. compile(name: 'com.kfzs.safe', ext: 'aar')
  150. //butterknife
  151. compile 'com.jakewharton:butterknife:+'
  152. annotationProcessor 'com.jakewharton:butterknife-compiler:+'
  153. //dagger2
  154. // compile 'com.google.dagger:dagger:+'
  155. // compile 'com.google.dagger:dagger-compiler:+'
  156. provided 'org.glassfish:javax.annotation:+'
  157. compile 'com.google.dagger:dagger:2.12'
  158. annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
  159. //retrofit
  160. compile 'com.squareup.retrofit2:retrofit:+'
  161. compile 'com.squareup.retrofit2:converter-gson:+'
  162. compile 'com.squareup.okhttp3:logging-interceptor:+'
  163. // compile 'com.squareup.retrofit2:adapter-rxjava2:+'
  164. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  165. //rxjava
  166. compile 'io.reactivex.rxjava2:rxandroid:+'
  167. compile 'io.reactivex.rxjava2:rxjava:+'
  168. //获取动态权限三方库
  169. compile 'pub.devrel:easypermissions:+'
  170. compile 'net.danlew:android.joda:2.9.3'
  171. compile 'com.orhanobut:logger:1.15'
  172. //友盟
  173. compile 'com.umeng.sdk:common:latest.integration'
  174. compile 'com.umeng.sdk:analytics:latest.integration'
  175. //fast json
  176. compile 'com.alibaba:fastjson:+'
  177. compile files('libs/open_sdk_r5923_lite.jar')
  178. compile files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
  179. compile files('libs/umeng_social_tool.jar')
  180. compile files('libs/umeng_social_shareboard.jar')
  181. compile files('libs/umeng_social_net.jar')
  182. compile files('libs/umeng_social_api.jar')
  183. compile files('libs/umeng_shareboard_widget.jar')
  184. compile files('libs/SocialSDK_WeiXin_Full.jar')
  185. compile files('libs/SocialSDK_QQ_Full.jar')
  186. }