build.gradle 2.1 KB

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