build.gradle 1.8 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. 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 false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. }
  31. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  32. dependencies {
  33. api project(':core_api')
  34. implementation dagger
  35. kapt daggerCompiler
  36. implementation room
  37. implementation roomKtx
  38. kapt roomCompiler
  39. implementation okhttp
  40. implementation loggingInterceptor
  41. implementation gson
  42. implementation converterGson
  43. implementation navigationFragment
  44. implementation securityCrypto
  45. implementation fileTree(dir: 'libs', include: ['*.jar'])
  46. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$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. }