build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = '1.8'
  32. }
  33. }
  34. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  35. dependencies {
  36. implementation project(':utils')
  37. implementation dagger
  38. kapt daggerCompiler
  39. implementation room
  40. implementation roomKtx
  41. implementation okhttp
  42. implementation converterGson
  43. implementation navigationFragment
  44. implementation lifecycleLivedata
  45. implementation fileTree(dir: 'libs', include: ['*.jar'])
  46. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  47. implementation 'androidx.appcompat:appcompat:1.2.0'
  48. implementation 'androidx.core:core-ktx:1.3.1'
  49. testImplementation 'junit:junit:4.12'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  52. }