build.gradle 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 200000
  11. versionName "2.0.0"
  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. sheeptest {
  64. applicationId "com.sheep.jiuyan.samllsheep"
  65. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "sheeptest",
  66. DUANDUAN_GRAPH : "sheeptest",
  67. DUANDUAN_DATASHARE : "sheeptest",
  68. UMENG_APPKEY : "58edcfeb310c93091c000be2"
  69. ]
  70. buildConfigField "String", "DUANDUAN_DATASHARE", '"sheeptest"'
  71. buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptest"'
  72. buildConfigField "boolean", "KF_DEBUG", 'true'
  73. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  74. buildConfigField "String", "API_DOMAIN", '"test.bdmapp.kfzs.com"'
  75. // buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
  76. buildConfigField "String", "JFSC_DOMAIN", '"http://10.8.210.190:8080/"'//积分商城
  77. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  78. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  79. signingConfig signingConfigs.config
  80. }
  81. sheep {
  82. applicationId "com.sheep.jiuyan.samllsheep"
  83. // applicationId "com.kfzs.duanduan.bandaimi"
  84. manifestPlaceholders = [UMENG_CHANNEL_VALUE : "sheep",
  85. DUANDUAN_GRAPH : "sheep",
  86. DUANDUAN_DATASHARE : "sheep",
  87. UMENG_APPKEY : "58edcfeb310c93091c000be2"
  88. ]
  89. buildConfigField "String", "DUANDUAN_DATASHARE", '"sheep"'
  90. buildConfigField "String", "DUANDUAN_GRAPH", '"sheep"'
  91. buildConfigField "boolean", "KF_DEBUG", 'false'
  92. buildConfigField "String", "API_DOMAIN", '"app.bandai.yunduanzs.cn"'
  93. buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bandaimi.com/"'//积分商城
  94. // buildConfigField "String", "API_DOMAIN", '"app.bdmoem.kfzs.com"'
  95. // buildConfigField "String", "JFSC_DOMAIN", '"http://jf.bdmoem.kfzs.com/"'//积分商城
  96. buildConfigField "String", "CAPTCHA_DOMAIN", '"captcha.kuaifazs.com"'
  97. buildConfigField "String", "umeng_appkey", '"58dc9509aed17959a3001bff"'
  98. signingConfig signingConfigs.config
  99. }
  100. }
  101. }
  102. repositories {
  103. flatDir {
  104. dirs 'libs'
  105. }
  106. google()
  107. }
  108. dependencies {
  109. // compile fileTree(include: ['*.jar'], dir: 'libs')
  110. // androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  111. // exclude group: 'com.android.support', module: 'support-annotations'
  112. // })
  113. compile 'com.android.support:design:27.0.2'
  114. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  115. testCompile 'junit:junit:4.12'
  116. // compile 'com.shark:screencapture:1.0.0'
  117. compile 'com.google.code.gson:gson:2.8.2'
  118. compile 'com.jcodecraeer:xrecyclerview:1.5.2'
  119. compile 'com.squareup.okhttp3:okhttp:3.10.0'
  120. compile 'org.greenrobot:eventbus:3.1.1'
  121. compile 'com.zhy:base-adapter:3.0.3'
  122. compile 'com.liulishuo.filedownloader:library:1.6.9'
  123. compile 'com.tencent.bugly:crashreport_upgrade:latest.release'
  124. //其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
  125. compile 'com.tencent.bugly:nativecrashreport:latest.release'
  126. //其中latest.release指代最
  127. compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  128. debugCompile 'com.readystatesoftware.chuck:library:1.1.0'
  129. compile 'de.hdodenhof:circleimageview:2.2.0'
  130. releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  131. compile 'org.xutils:xutils:3.5.0'
  132. compile 'com.mylhyl:acp:1.1.7'
  133. compile 'cn.yipianfengye.android:zxing-library:2.2'
  134. compile 'com.github.huburt-Hu:NewbieGuide:v1.2.0'
  135. debugCompile 'com.android.support:multidex:1.0.1'
  136. releaseCompile 'com.android.support:multidex:1.0.3'
  137. compile(name: 'com.kfzs.safe', ext: 'aar')
  138. //butterknife
  139. compile 'com.jakewharton:butterknife:+'
  140. annotationProcessor 'com.jakewharton:butterknife-compiler:+'
  141. //dagger2
  142. // compile 'com.google.dagger:dagger:+'
  143. // compile 'com.google.dagger:dagger-compiler:+'
  144. provided 'org.glassfish:javax.annotation:+'
  145. compile 'com.google.dagger:dagger:2.12'
  146. annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
  147. //retrofit
  148. compile 'com.squareup.retrofit2:retrofit:+'
  149. compile 'com.squareup.retrofit2:converter-gson:+'
  150. compile 'com.squareup.okhttp3:logging-interceptor:+'
  151. // compile 'com.squareup.retrofit2:adapter-rxjava2:+'
  152. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  153. //rxjava
  154. compile 'io.reactivex.rxjava2:rxandroid:+'
  155. compile 'io.reactivex.rxjava2:rxjava:+'
  156. //获取动态权限三方库
  157. compile 'pub.devrel:easypermissions:+'
  158. compile 'net.danlew:android.joda:2.9.3'
  159. compile 'com.orhanobut:logger:1.15'
  160. //友盟
  161. compile 'com.umeng.sdk:common:latest.integration'
  162. compile 'com.umeng.sdk:analytics:latest.integration'
  163. //fast json
  164. compile 'com.alibaba:fastjson:+'
  165. //添加半袋米相关
  166. compile(name: 'appstoreutils', ext: 'aar')
  167. compile project(':view')
  168. // compile(name: 'view-release', ext: 'aar')
  169. compile 'com.flipboard:bottomsheet-core:1.5.3'
  170. compile 'com.flipboard:bottomsheet-commons:1.5.3'
  171. compile 'com.google.protobuf:protobuf-java:3.2.0'
  172. compile 'com.umeng.analytics:analytics:6.0.9'
  173. compile(name: 'FileDownloader-1.0.0', ext: 'aar')
  174. // compile files('libs/SocialSDK_QQ_Simplify.jar')
  175. // compile files('libs/SocialSDK_Sina_Simplify.jar')
  176. // compile files('libs/SocialSDK_WeChat_Simplify.jar')
  177. // compile files('libs/umeng_shareboard_widget.jar')
  178. // compile files('libs/umeng_social_api.jar')
  179. // compile files('libs/umeng_social_net.jar')
  180. // compile files('libs/umeng_social_shareboard.jar')
  181. // compile files('libs/umeng_social_shareview.jar')
  182. // compile files('libs/umeng_social_tool.jar')
  183. compile files('libs/open_sdk_r5923_lite.jar')
  184. compile files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
  185. compile files('libs/umeng_social_tool.jar')
  186. compile files('libs/umeng_social_shareboard.jar')
  187. compile files('libs/umeng_social_net.jar')
  188. compile files('libs/umeng_social_api.jar')
  189. compile files('libs/umeng_shareboard_widget.jar')
  190. compile files('libs/SocialSDK_WeiXin_Full.jar')
  191. compile files('libs/SocialSDK_QQ_Full.jar')
  192. compile 'com.zhy:okhttputils:2.6.2'
  193. // compile 'com.kf.framework:kf-utils:latest.integration@aar'
  194. compile 'com.kf.framework:kf-utils:1.4.5@aar'
  195. // compile 'com.kf.framework:volleyplus:latest.integration@aar'
  196. compile 'com.kf.framework:volleyplus:1.4.5@aar'
  197. compile 'com.android.support:support-annotations:27.0.2'
  198. compile 'com.android.support:recyclerview-v7:27.0.2'
  199. compile project(':datashare')
  200. compile files('libs/jackson-core-2.2.1.jar')
  201. compile files('libs/jackson-dataformat-xml-2.1.2.jar')
  202. compile 'io.reactivex:rxandroid:1.2.1'
  203. compile 'com.github.ithedan:TextViewDrawable:v1.0'
  204. }