build.gradle 4.4 KB

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