build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. apply plugin: 'kotlin-kapt'
  2. apply plugin: 'com.android.application'
  3. apply plugin: 'kotlin-android'
  4. apply plugin: 'kotlin-android-extensions'
  5. def room = "2.1.0"
  6. android {
  7. compileSdkVersion 28
  8. buildToolsVersion = '28.0.3'
  9. defaultConfig {
  10. applicationId "shishkin.sl.kotlin"
  11. minSdkVersion 21
  12. targetSdkVersion 28
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility = 1.8
  25. targetCompatibility = 1.8
  26. }
  27. }
  28. dependencies {
  29. implementation fileTree(dir: 'libs', include: ['*.jar'])
  30. testImplementation 'junit:junit:4.13'
  31. androidTestImplementation 'androidx.test:runner:1.2.0'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  33. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  34. implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  35. implementation 'androidx.appcompat:appcompat:1.1.0'
  36. implementation 'androidx.core:core-ktx:1.1.0'
  37. implementation "com.google.android.material:material:1.0.0"
  38. // БД ROOM
  39. implementation "androidx.room:room-runtime:2.2.0"
  40. implementation "androidx.room:room-ktx:2.2.0"
  41. annotationProcessor "androidx.room:room-compiler:2.2.0"
  42. kapt "androidx.room:room-compiler:2.2.0"
  43. implementation "androidx.legacy:legacy-support-v4:1.0.0"
  44. implementation "androidx.lifecycle:lifecycle-extensions:$room"
  45. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$room"
  46. implementation "com.google.android.gms:play-services-base:17.1.0"
  47. implementation "com.google.android.gms:play-services-maps:17.0.0"
  48. implementation "com.google.android.gms:play-services-location:17.0.0"
  49. implementation 'com.google.maps.android:android-maps-utils:0.6.1'
  50. // добавление ripple эффекта
  51. implementation 'com.balysv:material-ripple:1.0.2'
  52. // логирование приложениия
  53. implementation 'com.github.snowdream.android.util:log:1.2.0'
  54. // Toast
  55. implementation 'com.muddzdev:styleabletoast:2.2.2'
  56. // Stream API
  57. implementation 'com.annimon:stream:1.2.1'
  58. // диалоги
  59. implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
  60. // Circular Image View
  61. implementation 'com.pkmmte.view:circularimageview:1.1'
  62. // Progress Bar
  63. implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
  64. // сериализация
  65. implementation 'com.google.code.gson:gson:2.8.6'
  66. // Кэш памяти и доп функции
  67. implementation 'com.google.guava:guava:27.1-android'
  68. implementation 'com.squareup.retrofit2:retrofit:2.6.2'
  69. implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
  70. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.2'
  71. implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
  72. implementation('com.squareup.retrofit2:converter-simplexml:2.6.2') {
  73. exclude group: 'xpp3', module: 'xpp3'
  74. exclude group: 'stax', module: 'stax-api'
  75. exclude group: 'stax', module: 'stax'
  76. }
  77. implementation 'com.squareup.okhttp3:okhttp:4.2.2'
  78. implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2'
  79. //Rx
  80. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  81. implementation 'io.reactivex.rxjava2:rxjava:2.2.12'
  82. //implementation 'com.uber.autodispose:autodispose:1.2.0'
  83. //implementation 'com.uber.autodispose:autodispose-android-archcomponents:1.2.0'
  84. // Spinner
  85. implementation 'com.jaredrummler:material-spinner:1.3.1'
  86. //BottomSheetDialog
  87. implementation 'org.michaelbel:bottomsheet:1.2.3'
  88. // Camera barcode scanner
  89. implementation 'com.google.android.gms:play-services-vision:19.0.0'
  90. }