build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 28
  6. buildToolsVersion '28.0.3'
  7. defaultConfig {
  8. applicationId "com.example.zhpan.circleviewpager"
  9. minSdkVersion 19
  10. targetSdkVersion 28
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.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 'androidx.constraintlayout:constraintlayout:1.1.3'
  39. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  40. exclude group: 'com.android.support', module: 'support-annotations'
  41. })
  42. implementation 'androidx.appcompat:appcompat:1.1.0'
  43. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  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.3.5'
  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. api 'com.jakewharton:butterknife:10.2.0'
  54. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
  55. implementation 'androidx.core:core-ktx:1.0.2'
  56. }