build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 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. }
  37. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  38. dependencies {
  39. api project(':core_api')
  40. implementation project(':core')
  41. //DAGGER
  42. implementation dagger
  43. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  44. kapt daggerCompiler
  45. implementation project(':utils')
  46. implementation constraintlayout
  47. //Timber
  48. implementation timber
  49. implementation navigationFragment
  50. implementation retrofit
  51. implementation coil
  52. implementation coilBase
  53. implementation coilSvg
  54. // implementation 'androidx.core:core-ktx:1.3.1'
  55. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  56. // implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  57. implementation "androidx.fragment:fragment-ktx:1.2.5"
  58. implementation fileTree(dir: 'libs', include: ['*.jar'])
  59. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  60. implementation 'androidx.appcompat:appcompat:1.2.0'
  61. implementation 'androidx.core:core-ktx:1.3.1'
  62. testImplementation 'junit:junit:4.12'
  63. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  64. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  65. }