build.gradle 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.example.smartlab'
  7. compileSdk 33
  8. defaultConfig {
  9. applicationId "com.example.smartlab"
  10. minSdk 24
  11. targetSdk 33
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. compileOptions {
  23. sourceCompatibility JavaVersion.VERSION_1_8
  24. targetCompatibility JavaVersion.VERSION_1_8
  25. }
  26. kotlinOptions {
  27. jvmTarget = '1.8'
  28. }
  29. buildFeatures{
  30. viewBinding true
  31. }
  32. }
  33. dependencies {
  34. implementation 'androidx.core:core-ktx:1.8.0'
  35. implementation 'androidx.appcompat:appcompat:1.4.1'
  36. implementation 'com.google.android.material:material:1.5.0'
  37. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  38. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1'
  39. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
  40. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  41. implementation 'androidx.recyclerview:recyclerview:1.3.0'
  42. testImplementation 'junit:junit:4.13.2'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  45. // https://developer.android.com/develop/ui/views/launch/splash-screen/migrate
  46. implementation 'androidx.core:core-splashscreen:1.0.0-beta02'
  47. //для сплэш штуки https://developer.android.com/develop/ui/views/launch/splash-screen
  48. implementation "androidx.core:core-splashscreen:1.0.1"
  49. //для навигации https://www.fandroid.info/17-android-bottom-navigation/
  50. implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3'
  51. implementation 'androidx.navigation:navigation-ui-ktx:2.3.3'
  52. //для api
  53. //для реализации разных видов запросов
  54. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
  55. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
  56. // retrofit
  57. implementation "com.squareup.retrofit2:retrofit:2.9.0"
  58. implementation "com.squareup.retrofit2:converter-gson:2.5.0"
  59. //для загрузки картинок
  60. implementation 'com.github.bumptech.glide:glide:4.16.0'
  61. //Для сериализации JSONP в JSON
  62. implementation 'com.squareup.retrofit2:converter-scalars:2.1.0'
  63. //OkHttp — библиотека и по совместительству HTTP‑клиент
  64. implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
  65. //для слайдера https://github.com/Ramotion/paper-onboarding-android/blob/master/README.md
  66. implementation "com.ramotion.paperonboarding:paper-onboarding:1.1.3"
  67. //гифки
  68. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
  69. }