build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 2
  14. versionName "0.2.0"
  15. archivesBaseName = "$applicationId-$versionName-$versionCode"
  16. vectorDrawables {
  17. useSupportLibrary true
  18. }
  19. javaCompileOptions {
  20. annotationProcessorOptions {
  21. arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
  22. }
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. shrinkResources true
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.pro'
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_1_8
  34. targetCompatibility JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = '1.8'
  38. }
  39. buildFeatures {
  40. compose true
  41. }
  42. composeOptions {
  43. kotlinCompilerExtensionVersion composeVersion
  44. }
  45. packagingOptions {
  46. resources {
  47. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  48. }
  49. }
  50. }
  51. dependencies {
  52. // androidx compose
  53. implementation "androidx.compose.material:material:$composeVersion"
  54. implementation 'androidx.activity:activity-compose:1.4.0'
  55. // androidx room
  56. implementation "androidx.room:room-runtime:$roomVersion"
  57. implementation "androidx.room:room-ktx:$roomVersion"
  58. kapt "androidx.room:room-compiler:$roomVersion"
  59. // ktor
  60. implementation "io.ktor:ktor-client-cio:$ktorVersion"
  61. implementation "io.ktor:ktor-client-content-negotiation:$ktorVersion"
  62. implementation "io.ktor:ktor-client-encoding:$ktorVersion"
  63. implementation "io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
  64. }