build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 'com.google.devtools.ksp'
  7. id 'org.sirekanyan.version-checker'
  8. }
  9. android {
  10. namespace 'com.sirekanian.warmongr'
  11. compileSdk 34
  12. defaultConfig {
  13. applicationId "com.sirekanian.warmongr"
  14. minSdk 21
  15. targetSdk 34
  16. versionCode appVersionCode as int
  17. versionName appVersionName
  18. archivesBaseName = "$applicationId-$versionName-$versionCode"
  19. vectorDrawables {
  20. useSupportLibrary true
  21. }
  22. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled true
  27. shrinkResources true
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.pro'
  29. signingConfig signingConfigs.debug
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_11
  34. targetCompatibility JavaVersion.VERSION_11
  35. }
  36. kotlin {
  37. jvmToolchain(11)
  38. }
  39. buildFeatures {
  40. compose true
  41. }
  42. composeOptions {
  43. kotlinCompilerExtensionVersion composeCompilerVersion
  44. }
  45. packagingOptions {
  46. resources {
  47. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  48. }
  49. }
  50. kotlinOptions {
  51. allWarningsAsErrors = true
  52. }
  53. lint {
  54. warningsAsErrors true
  55. }
  56. }
  57. ksp {
  58. arg('room.schemaLocation', "$projectDir/schemas")
  59. }
  60. dependencies {
  61. // androidx compose
  62. implementation "androidx.compose.material:material:$composeMaterialVersion"
  63. implementation 'androidx.activity:activity-compose:1.7.2'
  64. // androidx room
  65. implementation "androidx.room:room-runtime:$roomVersion"
  66. implementation "androidx.room:room-ktx:$roomVersion"
  67. ksp "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. // tests
  75. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  76. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  77. androidTestImplementation("androidx.test.uiautomator:uiautomator:2.2.0")
  78. }