build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. apply plugin: 'com.android.application'
  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. applicationId "com.mrozon.healthdiary"
  10. minSdkVersion rootProject.minSdkVersion
  11. targetSdkVersion rootProject.targetSdkVersion
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled true
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. staging {
  22. minifyEnabled true
  23. signingConfig debug.signingConfig
  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. lintOptions {
  37. ignoreTestSources true
  38. abortOnError true
  39. xmlReport false
  40. baselineFile file("$project.rootDir/config/baseline.xml")
  41. checkDependencies true
  42. }
  43. }
  44. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  45. dependencies {
  46. lintChecks project(':lint_repo')
  47. api project(':core_api')
  48. implementation project(':core')
  49. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  50. implementation dagger
  51. kapt daggerCompiler
  52. implementation navigationFragment
  53. implementation navigationUi
  54. implementation navigationDynamicFeatures
  55. implementation timber
  56. implementation constraintlayout
  57. implementation cardview
  58. implementation recyclerview
  59. implementation material
  60. implementation fileTree(dir: 'libs', include: ['*.jar'])
  61. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  62. implementation 'androidx.appcompat:appcompat:1.2.0'
  63. implementation 'androidx.core:core-ktx:1.3.1'
  64. testImplementation 'junit:junit:4.12'
  65. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  66. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  67. implementation project(':utils')
  68. implementation project(':feature_splash')
  69. implementation project(':feature_auth')
  70. implementation project(':feature_person')
  71. implementation project(':feature_measure_type')
  72. }