build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.4'
  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 "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  45. implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  46. implementation "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofit2Version"
  47. implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit2Version"
  48. implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofit2Version"
  49. implementation "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  50. implementation "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  51. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  52. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  53. implementation 'com.squareup.okhttp3:logging-interceptor:4.8.1'
  54. implementation 'androidx.appcompat:appcompat:1.2.0'
  55. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  56. implementation 'com.github.bumptech.glide:glide:4.11.0'
  57. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  58. implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  59. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.3'
  60. implementation 'androidx.core:core-ktx:1.3.2'
  61. implementation 'androidx.cardview:cardview:1.0.0'
  62. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  63. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  64. implementation 'com.google.android.material:material:1.2.1'
  65. implementation "androidx.navigation:navigation-fragment-ktx:2.3.1"
  66. implementation "androidx.navigation:navigation-ui-ktx:2.3.1"
  67. implementation 'com.tencent.bugly:crashreport:3.2.1'
  68. implementation 'com.google.android.material:material:1.2.1'
  69. implementation 'com.blankj:utilcodex:1.30.5'
  70. implementation 'com.airbnb.android:lottie:3.4.1'
  71. // implementation 'com.github.zhpanvip:BannerViewPager:3.2.0'
  72. implementation project(path: ':bannerview')
  73. }