build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. //Unit test
  65. testImplementation junit
  66. testImplementation mockitoCore
  67. testImplementation kotlinxCoroutinesTest
  68. testImplementation robolectric
  69. testImplementation androidXCoreTest
  70. //Instrumental Test
  71. androidTestImplementation junitInstrumental
  72. androidTestImplementation androidXRulesTest
  73. androidTestImplementation androidXRunnerTest
  74. androidTestImplementation espressoCore
  75. androidTestImplementation androidXFragmentTest
  76. kaptAndroidTest daggerCompiler
  77. }