build.gradle 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. packagingOptions {
  49. exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
  50. }
  51. buildTypes {
  52. release {
  53. minifyEnabled false
  54. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  55. signingConfig signingConfigs.config
  56. }
  57. debug {
  58. signingConfig signingConfigs.config
  59. }
  60. }
  61. }
  62. repositories {
  63. flatDir {
  64. dirs 'libs'
  65. }
  66. google()
  67. }
  68. dependencies {
  69. compile 'com.android.support:appcompat-v7:27.0.2'
  70. compile 'com.android.support:support-v4:27.0.2'
  71. compile 'com.android.support:design:27.0.2'
  72. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  73. testCompile 'junit:junit:4.12'
  74. // compile 'com.shark:screencapture:1.0.0'
  75. compile 'com.google.code.gson:gson:2.7'
  76. compile 'com.jcodecraeer:xrecyclerview:1.5.2'
  77. compile 'com.github.bumptech.glide:glide:3.7.0'
  78. compile 'com.squareup.okhttp3:okhttp:3.9.1'
  79. compile 'org.greenrobot:eventbus:3.1.1'
  80. compile 'com.zhy:base-adapter:3.0.3'
  81. compile 'com.liulishuo.filedownloader:library:1.6.9'
  82. compile 'com.tencent.bugly:crashreport_upgrade:latest.release'
  83. //其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
  84. compile 'com.tencent.bugly:nativecrashreport:latest.release'
  85. //其中latest.release指代最
  86. compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  87. debugCompile 'com.readystatesoftware.chuck:library:1.1.0'
  88. compile 'de.hdodenhof:circleimageview:2.2.0'
  89. releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  90. compile 'org.xutils:xutils:3.5.0'
  91. compile 'com.mylhyl:acp:1.1.7'
  92. compile 'cn.yipianfengye.android:zxing-library:2.2'
  93. compile 'com.github.huburt-Hu:NewbieGuide:v1.2.0'
  94. compile 'com.android.support:multidex:1.0.1'
  95. compile(name: 'com.kfzs.safe', ext: 'aar')
  96. //butterknife
  97. compile 'com.jakewharton:butterknife:+'
  98. annotationProcessor 'com.jakewharton:butterknife-compiler:+'
  99. //dagger2
  100. // compile 'com.google.dagger:dagger:+'
  101. // compile 'com.google.dagger:dagger-compiler:+'
  102. provided 'org.glassfish:javax.annotation:+'
  103. compile 'com.google.dagger:dagger:2.12'
  104. annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
  105. //retrofit
  106. compile 'com.squareup.retrofit2:retrofit:+'
  107. compile 'com.squareup.retrofit2:converter-gson:+'
  108. compile 'com.squareup.okhttp3:logging-interceptor:+'
  109. // compile 'com.squareup.retrofit2:adapter-rxjava2:+'
  110. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  111. //rxjava
  112. compile 'io.reactivex.rxjava2:rxandroid:+'
  113. compile 'io.reactivex.rxjava2:rxjava:+'
  114. //获取动态权限三方库
  115. compile 'pub.devrel:easypermissions:+'
  116. compile 'net.danlew:android.joda:2.9.3'
  117. compile 'com.orhanobut:logger:1.15'
  118. //友盟
  119. compile 'com.umeng.sdk:common:latest.integration'
  120. compile 'com.umeng.sdk:analytics:latest.integration'
  121. //fast json
  122. compile 'com.alibaba:fastjson:+'
  123. compile files('libs/open_sdk_r5923_lite.jar')
  124. compile files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
  125. compile files('libs/umeng_social_tool.jar')
  126. compile files('libs/umeng_social_shareboard.jar')
  127. compile files('libs/umeng_social_net.jar')
  128. compile files('libs/umeng_social_api.jar')
  129. compile files('libs/umeng_shareboard_widget.jar')
  130. compile files('libs/SocialSDK_WeiXin_Full.jar')
  131. compile files('libs/SocialSDK_QQ_Full.jar')
  132. }