build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. apply from: "$project.rootDir/jacoco.gradle"
  6. android {
  7. compileSdkVersion 29
  8. buildToolsVersion "29.0.3"
  9. defaultConfig {
  10. minSdkVersion 21
  11. targetSdkVersion 29
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. }
  17. buildTypes {
  18. debug {
  19. testCoverageEnabled true
  20. }
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. dataBinding {
  27. enabled = true
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. kotlinOptions {
  34. jvmTarget = '1.8'
  35. }
  36. }
  37. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  38. dependencies {
  39. implementation fileTree(dir: "libs", include: ["*.jar"])
  40. implementation kotlinStdlib
  41. api project(':core_api')
  42. implementation project(':core')
  43. implementation project(':utils')
  44. //DAGGER
  45. implementation dagger
  46. kapt daggerCompiler
  47. implementation constraintlayout
  48. //Timber
  49. implementation timber
  50. implementation navigationFragment
  51. implementation retrofit
  52. //AndroidX
  53. implementation legacySupport
  54. implementation appCompat
  55. implementation androidxCore
  56. implementation cardview
  57. implementation recyclerview
  58. implementation material
  59. implementation coil
  60. implementation coilBase
  61. implementation coilSvg
  62. //Unit test
  63. testImplementation junit
  64. testImplementation mockitoCore
  65. testImplementation kotlinxCoroutinesTest
  66. testImplementation robolectric
  67. testImplementation androidXCoreTest
  68. //Instrumental Test
  69. androidTestImplementation junitInstrumental
  70. androidTestImplementation androidXRulesTest
  71. androidTestImplementation androidXRunnerTest
  72. androidTestImplementation espressoCore
  73. androidTestImplementation androidXFragmentTest
  74. kaptAndroidTest daggerCompiler
  75. }