build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = '1.8'
  32. }
  33. }
  34. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  35. dependencies {
  36. implementation fileTree(dir: "libs", include: ["*.jar"])
  37. implementation kotlinStdlib
  38. api project(':core_api')
  39. implementation project(':core')
  40. implementation project(':utils')
  41. //DAGGER
  42. implementation dagger
  43. kapt daggerCompiler
  44. implementation constraintlayout
  45. //Timber
  46. implementation timber
  47. implementation navigationFragment
  48. implementation retrofit
  49. //AndroidX
  50. implementation legacySupport
  51. implementation appCompat
  52. implementation androidxCore
  53. implementation cardview
  54. implementation recyclerview
  55. implementation material
  56. //Unit test
  57. testImplementation junit
  58. testImplementation mockitoCore
  59. testImplementation kotlinxCoroutinesTest
  60. testImplementation robolectric
  61. testImplementation androidXCoreTest
  62. //Instrumental Test
  63. androidTestImplementation junitInstrumental
  64. androidTestImplementation androidXRulesTest
  65. androidTestImplementation androidXRunnerTest
  66. androidTestImplementation espressoCore
  67. androidTestImplementation androidXFragmentTest
  68. kaptAndroidTest daggerCompiler
  69. }