build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 viewpager2
  60. implementation coil
  61. implementation coilBase
  62. implementation coilSvg
  63. //Unit test
  64. testImplementation junit
  65. testImplementation mockitoCore
  66. testImplementation kotlinxCoroutinesTest
  67. testImplementation robolectric
  68. testImplementation androidXCoreTest
  69. //Instrumental Test
  70. androidTestImplementation junitInstrumental
  71. androidTestImplementation androidXRulesTest
  72. androidTestImplementation androidXRunnerTest
  73. androidTestImplementation espressoCore
  74. androidTestImplementation androidXFragmentTest
  75. kaptAndroidTest daggerCompiler
  76. }