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 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 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. //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. }