build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [moduleName: project.getName()]
  14. }
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility rootProject.ext.appSourceCompatibility
  19. targetCompatibility rootProject.ext.appTargetCompatibility
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled true
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. debug {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. api("com.android.support:appcompat-v7:${support}")
  35. api("com.android.support:support-v4:${support}")
  36. api("com.android.support:design:${support}")
  37. api("com.android.support:recyclerview-v7:${support}")
  38. api("com.android.support.constraint:constraint-layout:${constraint}")
  39. api "org.greenrobot:eventbus:${eventbus}"
  40. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:${chadAdapter}"
  41. api "com.scwang.smart:refresh-layout-kernel:${smartRefresh}"//核心必须依赖
  42. api "com.scwang.smart:refresh-header-classics:${smartRefresh}"//经典刷新头
  43. api "com.scwang.smart:refresh-footer-classics:${smartRefresh}"//经典加载
  44. api "com.github.bumptech.glide:glide:${glide}"//glide
  45. annotationProcessor "com.github.bumptech.glide:compiler:${glide}"//glide
  46. api 'jp.wasabeef:glide-transformations:3.0.1'
  47. //butterknife依赖
  48. api "com.jakewharton:butterknife:${butterknife}"
  49. annotationProcessor "com.jakewharton:butterknife-compiler:${butterknife}"
  50. //各种shapetextview,view
  51. api 'com.ruffian.library:RWidgetHelper:1.1.14'
  52. //集成第三方recycleView
  53. api 'com.jude:easyrecyclerview:4.4.2'
  54. //圆形图片
  55. api 'com.makeramen:roundedimageview:2.3.0'
  56. api 'com.zhouyou:easyrecyclerview:1.0.6'
  57. testImplementation 'junit:junit:4.12'
  58. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  59. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  60. }