build.gradle 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:10.2.3'
  49. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  50. //各种shapetextview,view
  51. api 'com.ruffian.library:RWidgetHelper:1.1.14'
  52. //集成第三方recycleView
  53. api 'com.jude:easyrecyclerview:4.4.2'
  54. testImplementation 'junit:junit:4.12'
  55. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  56. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  57. }