build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'org.jetbrains.kotlin.plugin.serialization'
  5. id 'org.jetbrains.kotlin.kapt'
  6. }
  7. android {
  8. compileSdk 32
  9. defaultConfig {
  10. applicationId "com.sirekanian.warmongr"
  11. minSdk 21
  12. targetSdk 32
  13. versionCode 1
  14. versionName "0.1.0"
  15. archivesBaseName = "$applicationId-$versionName-$versionCode"
  16. vectorDrawables {
  17. useSupportLibrary true
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled true
  23. shrinkResources true
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = '1.8'
  33. }
  34. buildFeatures {
  35. compose true
  36. }
  37. composeOptions {
  38. kotlinCompilerExtensionVersion composeVersion
  39. }
  40. packagingOptions {
  41. resources {
  42. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  43. }
  44. }
  45. }
  46. dependencies {
  47. // androidx compose
  48. implementation "androidx.compose.material:material:$composeVersion"
  49. implementation 'androidx.activity:activity-compose:1.4.0'
  50. // androidx room
  51. implementation "androidx.room:room-runtime:$roomVersion"
  52. implementation "androidx.room:room-ktx:$roomVersion"
  53. kapt "androidx.room:room-compiler:$roomVersion"
  54. // ktor
  55. implementation "io.ktor:ktor-client-cio:$ktorVersion"
  56. implementation "io.ktor:ktor-client-content-negotiation:$ktorVersion"
  57. implementation "io.ktor:ktor-client-encoding:$ktorVersion"
  58. implementation "io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
  59. }