build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 33
  5. defaultConfig {
  6. applicationId "com.example.zhpan.bannerviewpager"
  7. minSdkVersion 21
  8. targetSdkVersion 33
  9. versionCode 2
  10. versionName "3.5.10"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. debuggable false
  16. minifyEnabled true
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. sourceSets {
  21. main {
  22. jniLibs.srcDirs = ['libs']
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. viewBinding {
  30. enabled = true
  31. }
  32. dataBinding {
  33. //noinspection DataBindingWithoutKapt
  34. enabled = true
  35. }
  36. }
  37. repositories {
  38. flatDir {
  39. dirs 'libs'
  40. }
  41. }
  42. dependencies {
  43. implementation fileTree(include: ['*.jar'], dir: 'libs')
  44. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  45. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  46. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  47. exclude group: 'com.android.support', module: 'support-annotations'
  48. })
  49. implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  50. implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  51. implementation "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofit2Version"
  52. implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit2Version"
  53. implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofit2Version"
  54. implementation "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  55. implementation "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  56. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  57. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  58. implementation 'com.squareup.okhttp3:logging-interceptor:4.8.1'
  59. implementation 'androidx.appcompat:appcompat:1.3.0'
  60. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  61. implementation 'com.github.bumptech.glide:glide:4.11.0'
  62. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  63. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  64. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
  65. implementation 'androidx.core:core-ktx:1.6.0'
  66. implementation 'androidx.cardview:cardview:1.0.0'
  67. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  68. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  69. implementation 'com.google.android.material:material:1.3.0'
  70. implementation "androidx.navigation:navigation-fragment-ktx:2.3.5"
  71. implementation "androidx.navigation:navigation-ui-ktx:2.3.5"
  72. implementation 'com.tencent.bugly:crashreport:3.2.1'
  73. implementation 'com.google.android.material:material:1.3.0'
  74. implementation 'com.blankj:utilcodex:1.30.6'
  75. implementation 'com.airbnb.android:lottie:3.4.1'
  76. // implementation 'com.github.zhpanvip:bannerviewpager:3.5.6'
  77. implementation project(path: ':bannerview')
  78. }