build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 27
  4. buildToolsVersion '28.0.3'
  5. defaultConfig {
  6. applicationId "com.example.zhpan.circleviewpager"
  7. minSdkVersion 19
  8. targetSdkVersion 26
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled true
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. sourceSets {
  20. main {
  21. jniLibs.srcDirs = ['libs']
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. }
  29. repositories {
  30. flatDir {
  31. dirs 'libs'
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(include: ['*.jar'], dir: 'libs')
  36. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  37. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  38. exclude group: 'com.android.support', module: 'support-annotations'
  39. })
  40. implementation "com.android.support:appcompat-v7:${rootProject.supportLibVersion}"
  41. implementation "com.android.support:recyclerview-v7:${rootProject.supportLibVersion}"
  42. testImplementation 'junit:junit:4.12'
  43. implementation 'com.github.bumptech.glide:glide:4.0.0'
  44. implementation 'com.github.chrisbanes:PhotoView:2.1.0'
  45. // implementation 'com.zhpan.library:bannerview:2.1.1'
  46. implementation project(path: ':bannerview')
  47. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  48. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  49. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
  50. implementation project(path: ':ideahttp')
  51. // implementation ('com.jakewharton:butterknife:9.0.0') {
  52. // exclude module: 'appcompat-v7'
  53. // }
  54. // annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
  55. }