build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. defaultConfig {
  9. minSdkVersion 21
  10. targetSdkVersion 29
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles 'consumer-rules.pro'
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. dataBinding {
  23. enabled = true
  24. }
  25. kotlinOptions {
  26. jvmTarget = '1.8'
  27. }
  28. }
  29. dependencies {
  30. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  31. //RXJava
  32. implementation "io.reactivex.rxjava2:rxjava:2.2.10"
  33. implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
  34. //DAGGER
  35. def dagger_version = "2.24"
  36. implementation "com.google.dagger:dagger:$dagger_version"
  37. kapt "com.google.dagger:dagger-compiler:$dagger_version"
  38. implementation "com.google.dagger:dagger-android-support:2.21"
  39. kapt "com.google.dagger:dagger-android-processor:$dagger_version"
  40. implementation fileTree(dir: 'libs', include: ['*.jar'])
  41. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  42. implementation 'androidx.appcompat:appcompat:1.1.0'
  43. implementation 'androidx.core:core-ktx:1.3.1'
  44. testImplementation 'junit:junit:4.12'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  47. }