build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. testImplementation 'junit:junit:4.12'
  48. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  49. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  50. }