build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 true
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. staging {
  26. initWith debug
  27. minifyEnabled true
  28. signingConfig debug.signingConfig
  29. }
  30. }
  31. dataBinding {
  32. enabled = true
  33. }
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_1_8
  36. targetCompatibility JavaVersion.VERSION_1_8
  37. }
  38. kotlinOptions {
  39. jvmTarget = '1.8'
  40. }
  41. }
  42. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  43. dependencies {
  44. implementation fileTree(dir: "libs", include: ["*.jar"])
  45. implementation kotlinStdlib
  46. api project(':core_api')
  47. implementation project(':core')
  48. implementation project(':utils')
  49. //DAGGER
  50. implementation dagger
  51. kapt daggerCompiler
  52. implementation constraintlayout
  53. //Timber
  54. implementation timber
  55. implementation navigationFragment
  56. implementation retrofit
  57. //AndroidX
  58. implementation legacySupport
  59. implementation appCompat
  60. implementation androidxCore
  61. implementation cardview
  62. implementation recyclerview
  63. implementation material
  64. //livaData
  65. implementation lifecycleLivedata
  66. //Unit test
  67. testImplementation junit
  68. testImplementation mockitoCore
  69. testImplementation kotlinxCoroutinesTest
  70. testImplementation robolectric
  71. testImplementation androidXCoreTest
  72. //Instrumental Test
  73. androidTestImplementation junitInstrumental
  74. androidTestImplementation androidXRulesTest
  75. androidTestImplementation androidXRunnerTest
  76. androidTestImplementation espressoCore
  77. androidTestImplementation androidXFragmentTest
  78. kaptAndroidTest daggerCompiler
  79. }