build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. namespace 'com.sirekanian.warmongr'
  9. compileSdk 33
  10. defaultConfig {
  11. applicationId "com.sirekanian.warmongr"
  12. minSdk 21
  13. targetSdk 33
  14. versionCode appVersionCode as int
  15. versionName appVersionName
  16. archivesBaseName = "$applicationId-$versionName-$versionCode"
  17. vectorDrawables {
  18. useSupportLibrary true
  19. }
  20. javaCompileOptions {
  21. annotationProcessorOptions {
  22. arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
  23. }
  24. }
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled true
  29. shrinkResources true
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.pro'
  31. signingConfig signingConfigs.debug
  32. }
  33. }
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_11
  36. targetCompatibility JavaVersion.VERSION_11
  37. }
  38. kotlinOptions {
  39. jvmTarget = '11'
  40. }
  41. buildFeatures {
  42. compose true
  43. }
  44. composeOptions {
  45. kotlinCompilerExtensionVersion composeCompilerVersion
  46. }
  47. packagingOptions {
  48. resources {
  49. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  50. }
  51. }
  52. kotlinOptions {
  53. allWarningsAsErrors = true
  54. }
  55. lint {
  56. warningsAsErrors true
  57. }
  58. }
  59. dependencies {
  60. // androidx compose
  61. implementation "androidx.compose.material:material:$composeMaterialVersion"
  62. implementation 'androidx.activity:activity-compose:1.7.0'
  63. // androidx room
  64. //noinspection GradleDependency
  65. implementation "androidx.room:room-runtime:$roomVersion"
  66. //noinspection GradleDependency
  67. implementation "androidx.room:room-ktx:$roomVersion"
  68. kapt "androidx.room:room-compiler:$roomVersion"
  69. // ktor
  70. implementation "io.ktor:ktor-client-cio:$ktorVersion"
  71. implementation "io.ktor:ktor-client-content-negotiation:$ktorVersion"
  72. implementation "io.ktor:ktor-client-encoding:$ktorVersion"
  73. implementation "io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
  74. }