build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 21
  10. targetSdkVersion 28
  11. versionCode 1
  12. versionName "3.2.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. debuggable false
  18. minifyEnabled true
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. sourceSets {
  23. main {
  24. jniLibs.srcDirs = ['libs']
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. repositories {
  33. flatDir {
  34. dirs 'libs'
  35. }
  36. }
  37. dependencies {
  38. implementation fileTree(include: ['*.jar'], dir: 'libs')
  39. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  40. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  41. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  42. exclude group: 'com.android.support', module: 'support-annotations'
  43. })
  44. implementation 'androidx.appcompat:appcompat:1.1.0'
  45. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  46. testImplementation 'junit:junit:4.12'
  47. implementation 'com.github.bumptech.glide:glide:4.9.0'
  48. implementation 'com.github.chrisbanes:PhotoView:2.1.0'
  49. // implementation 'com.github.zhpanvip:BannerViewPager:2.7.4'
  50. implementation project(path: ':bannerview')
  51. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  52. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  53. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
  54. implementation project(path: ':ideahttp')
  55. implementation 'androidx.core:core-ktx:1.2.0'
  56. implementation 'androidx.cardview:cardview:1.0.0'
  57. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  58. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.2'
  59. implementation 'com.google.android.material:material:1.1.0'
  60. implementation "androidx.navigation:navigation-fragment:2.2.2"
  61. implementation "androidx.navigation:navigation-ui:2.2.2"
  62. implementation 'com.tencent.bugly:crashreport:3.2.1'
  63. implementation 'com.google.android.material:material:1.0.0'
  64. }