build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 rootProject.compileSdkVersion
  8. buildToolsVersion "29.0.3"
  9. defaultConfig {
  10. minSdkVersion rootProject.minSdkVersion
  11. targetSdkVersion rootProject.targetSdkVersion
  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. //Unit test
  60. testImplementation junit
  61. testImplementation mockitoCore
  62. testImplementation kotlinxCoroutinesTest
  63. testImplementation robolectric
  64. testImplementation androidXCoreTest
  65. //Instrumental Test
  66. androidTestImplementation junitInstrumental
  67. androidTestImplementation androidXRulesTest
  68. androidTestImplementation androidXRunnerTest
  69. androidTestImplementation espressoCore
  70. androidTestImplementation androidXFragmentTest
  71. kaptAndroidTest daggerCompiler
  72. }