build.gradle 2.2 KB

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