build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. namespace 'com.example.zhpan.banner'
  5. compileSdk 35
  6. defaultConfig {
  7. applicationId "com.example.zhpan.bannerviewpager"
  8. minSdkVersion 21
  9. targetSdkVersion 33
  10. versionCode 2
  11. versionName "3.5.10"
  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_17
  28. targetCompatibility JavaVersion.VERSION_17
  29. }
  30. kotlinOptions {
  31. jvmTarget = "17"
  32. }
  33. viewBinding {
  34. enabled = true
  35. }
  36. dataBinding {
  37. //noinspection DataBindingWithoutKapt
  38. enabled = true
  39. }
  40. }
  41. repositories {
  42. flatDir {
  43. dirs 'libs'
  44. }
  45. }
  46. dependencies {
  47. implementation fileTree(include: ['*.jar'], dir: 'libs')
  48. implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
  49. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  50. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  51. exclude group: 'com.android.support', module: 'support-annotations'
  52. })
  53. implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  54. implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  55. implementation "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofit2Version"
  56. implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit2Version"
  57. implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofit2Version"
  58. implementation "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  59. implementation "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  60. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  61. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  62. implementation 'com.squareup.okhttp3:logging-interceptor:4.8.1'
  63. implementation 'androidx.appcompat:appcompat:1.7.1'
  64. implementation 'androidx.recyclerview:recyclerview:1.4.0'
  65. implementation 'com.github.bumptech.glide:glide:4.11.0'
  66. implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0'
  67. implementation 'io.github.scwang90:refresh-header-classics:2.1.0'
  68. implementation 'io.github.scwang90:refresh-header-material:2.1.0'
  69. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
  70. implementation 'androidx.core:core-ktx:1.16.0'
  71. implementation 'androidx.cardview:cardview:1.0.0'
  72. implementation 'androidx.viewpager2:viewpager2:1.1.0'
  73. implementation 'io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4'
  74. implementation 'com.google.android.material:material:1.12.0'
  75. implementation "androidx.navigation:navigation-fragment-ktx:2.9.0"
  76. implementation "androidx.navigation:navigation-ui-ktx:2.9.0"
  77. implementation 'com.tencent.bugly:crashreport:4.1.9.3'
  78. implementation 'com.google.android.material:material:1.12.0'
  79. implementation 'com.blankj:utilcodex:1.30.6'
  80. implementation 'com.airbnb.android:lottie:3.4.1'
  81. // implementation 'com.github.zhpanvip:bannerviewpager:3.5.6'
  82. implementation project(path: ':bannerview')
  83. }