build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:2.0.2'
  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.2.0'
  45. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  46. implementation 'com.github.bumptech.glide:glide:4.11.0'
  47. implementation 'com.github.chrisbanes:PhotoView:2.1.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.3'
  52. implementation project(path: ':ideahttp')
  53. implementation 'androidx.core:core-ktx:1.3.2'
  54. implementation 'androidx.cardview:cardview:1.0.0'
  55. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  56. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  57. implementation 'com.google.android.material:material:1.2.1'
  58. implementation "androidx.navigation:navigation-fragment-ktx:2.3.1"
  59. implementation "androidx.navigation:navigation-ui-ktx:2.3.1"
  60. implementation 'com.tencent.bugly:crashreport:3.2.1'
  61. implementation 'com.google.android.material:material:1.2.1'
  62. // implementation 'com.github.zhpanvip:BannerViewPager:3.2.0'
  63. }