build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion 29
  7. buildToolsVersion "29.0.3"
  8. buildFeatures{
  9. dataBinding=true
  10. }
  11. defaultConfig {
  12. minSdkVersion 21
  13. targetSdkVersion 29
  14. versionCode 13
  15. versionName "1.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. consumerProguardFiles 'consumer-rules.pro'
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility = "1.8"
  27. targetCompatibility = "1.8"
  28. }
  29. }
  30. dependencies {
  31. implementation fileTree(dir: 'libs', include: ['*.jar'])
  32. implementation 'androidx.appcompat:appcompat:1.2.0'
  33. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  34. implementation 'androidx.databinding:databinding-runtime:4.0.1'
  35. testImplementation 'junit:junit:4.12'
  36. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  37. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  38. implementation 'androidx.core:core-ktx:1.3.0-rc01'
  39. // implementation "com.google.dagger:dagger-android:${dragger_version}"
  40. // implementation "com.google.dagger:dagger-android-support:${dragger_version}"
  41. //------------retrofit2 + Rxjava + Gson 通迅组件
  42. implementation "com.squareup.okhttp3:okhttp:4.8.1"
  43. implementation 'com.parkingwang:okhttp3-loginterceptor:latest.integration'
  44. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  45. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  46. implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
  47. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  48. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  49. // Because RxAndroid releases are few and far between, it is recommended you also
  50. // explicitly depend on RxJava's latest version for bug fixes and new features.
  51. // (see https://github.com/ReactiveX/RxJava/releases for latest 3.x.x version)
  52. implementation 'io.reactivex.rxjava3:rxjava:3.0.5'
  53. }