build.gradle 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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-v7a", '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. lintOptions {
  35. abortOnError false
  36. disable 'MissingTranslation'
  37. }
  38. dexOptions {
  39. preDexLibraries = false
  40. javaMaxHeapSize "4g"
  41. incremental true
  42. }
  43. packagingOptions {
  44. exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
  45. }
  46. buildTypes {
  47. release {
  48. minifyEnabled false
  49. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  50. signingConfig signingConfigs.config
  51. }
  52. debug {
  53. signingConfig signingConfigs.config
  54. }
  55. }
  56. productFlavors.all { flavor ->
  57. flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: "${flavor.name}",
  58. DUANDUAN_GRAPH : "${flavor.name}",
  59. DUANDUAN_DATASHARE : "${flavor.name}",
  60. ]
  61. }
  62. productFlavors {
  63. bandaimitest {
  64. applicationId "com.sheep.jiuyan.samllsheep"
  65. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "bandaimitest",
  66. DUANDUAN_GRAPH : "bandaimitest",
  67. DUANDUAN_DATASHARE : "bandaimitest",
  68. UMENG_APPKEY : "58edcfeb310c93091c000be2",
  69. JPUSH_PKGNAME : applicationId,
  70. JPUSH_APPKEY : "b8b5adf7d70d0c904d46d04c",
  71. JPUSH_CHANNEL : "developer-default"]
  72. buildConfigField "String", "DUANDUAN_DATASHARE", '"bandaimitest"'
  73. buildConfigField "String", "DUANDUAN_GRAPH", '"bandaimitest"'
  74. buildConfigField "boolean", "KF_DEBUG", 'true'
  75. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  76. // buildConfigField "String", "RN_DOMAIN", '"10.8.210.229:8070"'
  77. buildConfigField "String", "API_DOMAIN", '"test.bdmapp.kfzs.com"'
  78. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  79. buildConfigField "String", "JFSC_DOMAIN", '"http://10.8.210.190:8080/"'//积分商城
  80. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  81. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  82. signingConfig signingConfigs.config
  83. }
  84. bandaimi {
  85. applicationId "com.sheep.jiuyan.samllsheep"
  86. // applicationId "com.kfzs.duanduan.bandaimi"
  87. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "bandaimi",
  88. DUANDUAN_GRAPH : "bandaimi",
  89. DUANDUAN_DATASHARE : "bandaimi",
  90. UMENG_APPKEY : "58edcfeb310c93091c000be2",
  91. JPUSH_PKGNAME : applicationId,
  92. JPUSH_APPKEY : "b8b5adf7d70d0c904d46d04c",
  93. JPUSH_CHANNEL : "developer-default"]
  94. buildConfigField "String", "DUANDUAN_DATASHARE", '"bandaimi"'
  95. buildConfigField "String", "DUANDUAN_GRAPH", '"bandaimi"'
  96. buildConfigField "boolean", "KF_DEBUG", 'false'
  97. buildConfigField "String", "API_DOMAIN", '"app.bandai.yunduanzs.cn"'
  98. buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bandaimi.com/"'//积分商城
  99. // buildConfigField "String", "API_DOMAIN", '"app.bdmoem.kfzs.com"'
  100. // buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bdmoem.kfzs.com/"'//积分商城
  101. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  102. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  103. signingConfig signingConfigs.config
  104. }
  105. }
  106. }
  107. repositories {
  108. flatDir {
  109. dirs 'libs'
  110. }
  111. google()
  112. }
  113. dependencies {
  114. // compile fileTree(include: ['*.jar'], dir: 'libs')
  115. // androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  116. // exclude group: 'com.android.support', module: 'support-annotations'
  117. // })
  118. compile 'com.android.support:appcompat-v7:27.0.2'
  119. compile 'com.android.support:support-v4:27.0.2'
  120. compile 'com.android.support:design:27.0.2'
  121. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  122. testCompile 'junit:junit:4.12'
  123. // compile 'com.shark:screencapture:1.0.0'
  124. compile 'com.google.code.gson:gson:2.7'
  125. compile 'com.jcodecraeer:xrecyclerview:1.5.2'
  126. compile 'com.github.bumptech.glide:glide:3.7.0'
  127. compile 'com.squareup.okhttp3:okhttp:3.9.1'
  128. compile 'org.greenrobot:eventbus:3.1.1'
  129. compile 'com.zhy:base-adapter:3.0.3'
  130. compile 'com.liulishuo.filedownloader:library:1.6.9'
  131. compile 'com.tencent.bugly:crashreport_upgrade:latest.release'
  132. //其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
  133. compile 'com.tencent.bugly:nativecrashreport:latest.release'
  134. //其中latest.release指代最
  135. compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  136. debugCompile 'com.readystatesoftware.chuck:library:1.1.0'
  137. compile 'de.hdodenhof:circleimageview:2.2.0'
  138. releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  139. compile 'org.xutils:xutils:3.5.0'
  140. compile 'com.mylhyl:acp:1.1.7'
  141. compile 'cn.yipianfengye.android:zxing-library:2.2'
  142. compile 'com.github.huburt-Hu:NewbieGuide:v1.2.0'
  143. compile 'com.android.support:multidex:1.0.1'
  144. compile(name: 'com.kfzs.safe', ext: 'aar')
  145. //butterknife
  146. compile 'com.jakewharton:butterknife:+'
  147. annotationProcessor 'com.jakewharton:butterknife-compiler:+'
  148. //dagger2
  149. // compile 'com.google.dagger:dagger:+'
  150. // compile 'com.google.dagger:dagger-compiler:+'
  151. provided 'org.glassfish:javax.annotation:+'
  152. compile 'com.google.dagger:dagger:2.12'
  153. annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
  154. //retrofit
  155. compile 'com.squareup.retrofit2:retrofit:+'
  156. compile 'com.squareup.retrofit2:converter-gson:+'
  157. compile 'com.squareup.okhttp3:logging-interceptor:+'
  158. // compile 'com.squareup.retrofit2:adapter-rxjava2:+'
  159. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  160. //rxjava
  161. compile 'io.reactivex.rxjava2:rxandroid:+'
  162. compile 'io.reactivex.rxjava2:rxjava:+'
  163. //获取动态权限三方库
  164. compile 'pub.devrel:easypermissions:+'
  165. compile 'net.danlew:android.joda:2.9.3'
  166. compile 'com.orhanobut:logger:1.15'
  167. //友盟
  168. compile 'com.umeng.sdk:common:latest.integration'
  169. compile 'com.umeng.sdk:analytics:latest.integration'
  170. //fast json
  171. compile 'com.alibaba:fastjson:+'
  172. //添加半袋米相关
  173. // compile 'com.jakewharton:butterknife:8.1.0'
  174. // annotationProcessor 'com.jakewharton:butterknife-compiler:8.1.0'
  175. compile(name: 'appstoreutils', ext: 'aar')
  176. compile project(':view')
  177. // compile(name: 'view-release', ext: 'aar')
  178. //极光推送两个
  179. compile 'cn.jiguang.sdk:jpush:3.0.8'
  180. // 此处以JPush 3.0.3 版本为例。
  181. compile 'cn.jiguang.sdk:jcore:1.1.6'
  182. // 此处以JCore 1.1.1 版本为例。
  183. compile 'com.google.code.gson:gson:2.8.1'
  184. // compile 'com.android.support:design:24.2.0'
  185. compile 'com.flipboard:bottomsheet-core:1.5.3'
  186. compile 'com.flipboard:bottomsheet-commons:1.5.3'
  187. // compile 'org.greenrobot:greendao:3.2.0'
  188. compile 'com.google.protobuf:protobuf-java:3.2.0'
  189. compile 'com.umeng.analytics:analytics:6.0.9'
  190. compile(name: 'com.kfzs.safe', ext: 'aar')
  191. compile(name: 'FileDownloader-1.0.0', ext: 'aar')
  192. compile 'org.greenrobot:eventbus:3.0.0'
  193. compile 'com.yalantis:ucrop:2.2.0'
  194. // compile files('libs/SocialSDK_QQ_Simplify.jar')
  195. // compile files('libs/SocialSDK_Sina_Simplify.jar')
  196. // compile files('libs/SocialSDK_WeChat_Simplify.jar')
  197. // compile files('libs/umeng_shareboard_widget.jar')
  198. // compile files('libs/umeng_social_api.jar')
  199. // compile files('libs/umeng_social_net.jar')
  200. // compile files('libs/umeng_social_shareboard.jar')
  201. // compile files('libs/umeng_social_shareview.jar')
  202. // compile files('libs/umeng_social_tool.jar')
  203. compile files('libs/open_sdk_r5923_lite.jar')
  204. compile files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
  205. compile files('libs/umeng_social_tool.jar')
  206. compile files('libs/umeng_social_shareboard.jar')
  207. compile files('libs/umeng_social_net.jar')
  208. compile files('libs/umeng_social_api.jar')
  209. compile files('libs/umeng_shareboard_widget.jar')
  210. compile files('libs/SocialSDK_WeiXin_Full.jar')
  211. compile files('libs/SocialSDK_QQ_Full.jar')
  212. compile 'com.zhy:okhttputils:2.6.2'
  213. compile files('libs/alipaySdk-20170922.jar')
  214. compile 'com.github.bumptech.glide:glide:3.5.2'
  215. compile 'jp.wasabeef:glide-transformations:2.0.2'
  216. compile 'com.nineoldandroids:library:2.4.0'
  217. compile 'cn.bingoogolapple:bga-banner:2.1.7@aar'
  218. compile 'mdl.sinlov.android:log:0.0.2'
  219. // compile 'com.kf.framework:kf-utils:latest.integration@aar'
  220. compile 'com.kf.framework:kf-utils:1.4.5@aar'
  221. // compile 'com.kf.framework:volleyplus:latest.integration@aar'
  222. compile 'com.kf.framework:volleyplus:1.4.5@aar'
  223. compile 'com.android.support:support-annotations:23.1.1'
  224. compile 'com.android.support:recyclerview-v7:27.1.0'
  225. compile 'io.reactivex:rxandroid:1.2.1'
  226. compile 'io.reactivex:rxjava:1.1.6'
  227. compile 'top.zibin:Luban:1.0.9'
  228. compile project(':datashare')
  229. compile files('libs/jackson-core-2.2.1.jar')
  230. compile files('libs/jackson-dataformat-xml-2.1.2.jar')
  231. }