build.gradle 2.5 KB

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