build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments += [
  16. "room.schemaLocation":"$projectDir/schemas".toString(),
  17. "room.incremental":"true",
  18. "room.expandProjection":"true"]
  19. }
  20. }
  21. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  22. consumerProguardFiles 'consumer-rules.pro'
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled true
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. staging {
  30. minifyEnabled true
  31. signingConfig debug.signingConfig
  32. }
  33. }
  34. }
  35. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  36. dependencies {
  37. api project(':core_api')
  38. implementation dagger
  39. kapt daggerCompiler
  40. implementation room
  41. implementation roomKtx
  42. kapt roomCompiler
  43. implementation okhttp
  44. implementation loggingInterceptor
  45. implementation gson
  46. implementation converterGson
  47. implementation navigationFragment
  48. implementation securityCrypto
  49. implementation fileTree(dir: 'libs', include: ['*.jar'])
  50. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  51. implementation 'androidx.appcompat:appcompat:1.2.0'
  52. implementation 'androidx.core:core-ktx:1.3.1'
  53. testImplementation 'junit:junit:4.12'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  56. }