build.gradle 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion '28.0.3'
  6. defaultConfig {
  7. applicationId "com.example.zhpan.bannerviewpager"
  8. minSdkVersion 21
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "3.5.2"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. debuggable false
  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. viewBinding {
  31. enabled = true
  32. }
  33. dataBinding {
  34. //noinspection DataBindingWithoutKapt
  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.3.0'
  61. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  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.6.0'
  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.3.0'
  71. implementation "androidx.navigation:navigation-fragment-ktx:2.3.5"
  72. implementation "androidx.navigation:navigation-ui-ktx:2.3.5"
  73. implementation 'com.tencent.bugly:crashreport:3.2.1'
  74. implementation 'com.google.android.material:material:1.3.0'
  75. implementation 'com.blankj:utilcodex:1.30.6'
  76. implementation 'com.airbnb.android:lottie:3.4.1'
  77. // implementation 'com.github.zhpanvip:bannerviewpager:3.5.6'
  78. implementation project(path: ':bannerview')
  79. }