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 28
  6. buildToolsVersion '28.0.3'
  7. defaultConfig {
  8. applicationId "com.example.zhpan.bannerviewpager"
  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. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  40. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  41. exclude group: 'com.android.support', module: 'support-annotations'
  42. })
  43. implementation 'androidx.appcompat:appcompat:1.1.0'
  44. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  45. testImplementation 'junit:junit:4.12'
  46. implementation 'com.github.bumptech.glide:glide:4.9.0'
  47. implementation 'com.github.chrisbanes:PhotoView:2.1.0'
  48. // implementation 'com.github.zhpanvip:BannerViewPager:2.7.4'
  49. implementation project(path: ':bannerview')
  50. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  51. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  52. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
  53. implementation project(path: ':ideahttp')
  54. implementation 'androidx.core:core-ktx:1.2.0'
  55. implementation 'androidx.cardview:cardview:1.0.0'
  56. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  57. implementation 'cn.jzvd:jiaozivideoplayer:7.2.3'
  58. }