build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 "com.mrozon.feature_auth.MockTestRunner"//"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. lintOptions {
  42. disable "NullSafeMutableLiveData"
  43. }
  44. }
  45. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  46. dependencies {
  47. implementation fileTree(dir: "libs", include: ["*.jar"])
  48. implementation kotlinStdlib
  49. api project(':core_api')
  50. implementation project(':core')
  51. implementation project(':utils')
  52. //DAGGER
  53. implementation dagger
  54. kapt daggerCompiler
  55. implementation constraintlayout
  56. //Timber
  57. implementation timber
  58. implementation navigationFragment
  59. implementation retrofit
  60. //AndroidX
  61. implementation legacySupport
  62. implementation appCompat
  63. implementation androidxCore
  64. implementation material
  65. //Unit test
  66. testImplementation junit
  67. testImplementation mockitoCore
  68. testImplementation kotlinxCoroutinesTest
  69. testImplementation robolectric
  70. testImplementation androidXCoreTest
  71. //Instrumental Test
  72. androidTestImplementation junitInstrumental
  73. androidTestImplementation androidXRulesTest
  74. androidTestImplementation androidXRunnerTest
  75. androidTestImplementation espressoCore
  76. androidTestImplementation androidXFragmentTest
  77. kaptAndroidTest daggerCompiler
  78. }