build.gradle 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. viewBinding {
  32. enabled = true
  33. }
  34. dataBinding {
  35. enabled = true
  36. }
  37. }
  38. repositories {
  39. flatDir {
  40. dirs 'libs'
  41. }
  42. }
  43. dependencies {
  44. implementation fileTree(include: ['*.jar'], dir: 'libs')
  45. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  46. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  47. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  48. exclude group: 'com.android.support', module: 'support-annotations'
  49. })
  50. implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  51. implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  52. implementation "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofit2Version"
  53. implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit2Version"
  54. implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofit2Version"
  55. implementation "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  56. implementation "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  57. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  58. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  59. implementation 'com.squareup.okhttp3:logging-interceptor:4.8.1'
  60. implementation 'androidx.appcompat:appcompat:1.2.0'
  61. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  62. implementation 'com.github.bumptech.glide:glide:4.11.0'
  63. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  64. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  65. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.3'
  66. implementation 'androidx.core:core-ktx:1.3.2'
  67. implementation 'androidx.cardview:cardview:1.0.0'
  68. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  69. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  70. implementation 'com.google.android.material:material:1.2.1'
  71. implementation "androidx.navigation:navigation-fragment-ktx:2.3.1"
  72. implementation "androidx.navigation:navigation-ui-ktx:2.3.1"
  73. implementation 'com.tencent.bugly:crashreport:3.2.1'
  74. implementation 'com.google.android.material:material:1.2.1'
  75. implementation 'com.blankj:utilcodex:1.30.5'
  76. implementation 'com.airbnb.android:lottie:3.4.1'
  77. // implementation 'com.github.zhpanvip:BannerViewPager:3.2.0'
  78. implementation project(path: ':bannerview')
  79. }