build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion rootProject.compileSdkVersion
  7. buildToolsVersion "29.0.3"
  8. defaultConfig {
  9. minSdkVersion rootProject.minSdkVersion
  10. targetSdkVersion rootProject.targetSdkVersion
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles "consumer-rules.pro"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. dataBinding {
  23. enabled = true
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. kotlinOptions {
  30. jvmTarget = '1.8'
  31. }
  32. }
  33. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  34. dependencies {
  35. implementation fileTree(dir: "libs", include: ["*.jar"])
  36. implementation kotlinStdlib
  37. api project(':core_api')
  38. implementation project(':core')
  39. implementation project(':utils')
  40. //DAGGER
  41. implementation dagger
  42. kapt daggerCompiler
  43. implementation constraintlayout
  44. //Timber
  45. implementation timber
  46. implementation navigationFragment
  47. implementation retrofit
  48. //AndroidX
  49. implementation legacySupport
  50. implementation appCompat
  51. implementation androidxCore
  52. //Unit test
  53. testImplementation junit
  54. testImplementation mockitoCore
  55. testImplementation kotlinxCoroutinesTest
  56. testImplementation robolectric
  57. testImplementation androidXCoreTest
  58. //Instrumental Test
  59. androidTestImplementation junitInstrumental
  60. androidTestImplementation espressoCore
  61. }