build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. apply(from: 'version.gradle')
  8. android {
  9. compileSdk 32
  10. defaultConfig {
  11. applicationId "com.sirekanian.warmongr"
  12. minSdk 21
  13. targetSdk 32
  14. versionCode appVersionCode
  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. }
  32. }
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_8
  35. targetCompatibility JavaVersion.VERSION_1_8
  36. }
  37. kotlinOptions {
  38. jvmTarget = '1.8'
  39. }
  40. buildFeatures {
  41. compose true
  42. }
  43. composeOptions {
  44. kotlinCompilerExtensionVersion composeCompilerVersion
  45. }
  46. packagingOptions {
  47. resources {
  48. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  49. }
  50. }
  51. lintOptions {
  52. warningsAsErrors true
  53. }
  54. }
  55. dependencies {
  56. // androidx compose
  57. implementation "androidx.compose.material:material:$composeMaterialVersion"
  58. implementation 'androidx.activity:activity-compose:1.5.1'
  59. // androidx room
  60. implementation "androidx.room:room-runtime:$roomVersion"
  61. implementation "androidx.room:room-ktx:$roomVersion"
  62. kapt "androidx.room:room-compiler:$roomVersion"
  63. // ktor
  64. implementation "io.ktor:ktor-client-cio:$ktorVersion"
  65. implementation "io.ktor:ktor-client-content-negotiation:$ktorVersion"
  66. implementation "io.ktor:ktor-client-encoding:$ktorVersion"
  67. implementation "io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
  68. }