build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlinx-serialization'
  5. }
  6. android {
  7. namespace 'eu.pozimski.alarmclockconfigurator'
  8. compileSdk 33
  9. defaultConfig {
  10. applicationId "eu.pozimski.alarmclockconfigurator"
  11. minSdk 30
  12. targetSdk 33
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. vectorDrawables {
  17. useSupportLibrary true
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_9
  28. targetCompatibility JavaVersion.VERSION_1_9
  29. }
  30. buildFeatures {
  31. compose true
  32. }
  33. composeOptions {
  34. kotlinCompilerExtensionVersion '1.4.3'
  35. }
  36. packagingOptions {
  37. resources {
  38. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  39. }
  40. }
  41. }
  42. dependencies {
  43. implementation 'androidx.core:core-ktx:1.9.0'
  44. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.0'
  45. implementation 'androidx.activity:activity-compose:1.6.1'
  46. implementation "androidx.compose.ui:ui:$compose_ui_version"
  47. implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
  48. implementation 'androidx.compose.material:material:1.3.1'
  49. implementation 'androidx.core:core-ktx:1.9.0'
  50. implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.10'
  51. implementation 'androidx.core:core-ktx:1.9.0'
  52. implementation 'androidx.core:core-ktx:1.9.0'
  53. implementation 'androidx.core:core-ktx:1.9.0'
  54. testImplementation 'junit:junit:4.13.2'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  57. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
  58. debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
  59. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
  60. implementation "androidx.navigation:navigation-compose:$nav_version"
  61. implementation "io.github.boguszpawlowski.composecalendar:composecalendar:1.0.2"
  62. // separate artifact with utilities for working with kotlinx-datetime
  63. implementation "io.github.boguszpawlowski.composecalendar:kotlinx-datetime:1.0.2"
  64. def ktor_version = '2.2.3'
  65. implementation "io.ktor:ktor-client-core:$ktor_version"
  66. // HTTP engine: The HTTP client used to perform network requests.
  67. implementation "io.ktor:ktor-client-android:$ktor_version"
  68. // The serialization engine used to convert objects to and from JSON.
  69. implementation "io.ktor:ktor-client-serialization:$ktor_version"
  70. implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version"
  71. implementation "io.ktor:ktor-client-content-negotiation:$ktor_version"
  72. testImplementation "io.ktor:ktor-client-mock:$ktor_version"
  73. implementation "com.google.accompanist:accompanist-swiperefresh:0.28.0"
  74. }