星火管控
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle.kts 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.androidApplication)
  4. alias(libs.plugins.kotlinAndroid)
  5. }
  6. android {
  7. namespace = "com.xhly.manageapp"
  8. compileSdk = 34
  9. defaultConfig {
  10. applicationId = "com.xhly.manageapp"
  11. minSdk = 24
  12. targetSdk = 30
  13. versionCode = 1
  14. versionName = "1.0"
  15. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  16. vectorDrawables {
  17. useSupportLibrary = true
  18. }
  19. }
  20. viewBinding{
  21. enable=true
  22. }
  23. buildTypes {
  24. release {
  25. isMinifyEnabled = false
  26. proguardFiles(
  27. getDefaultProguardFile("proguard-android-optimize.txt"),
  28. "proguard-rules.pro"
  29. )
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility = JavaVersion.VERSION_1_8
  34. targetCompatibility = JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = "1.8"
  38. }
  39. buildFeatures {
  40. compose = true
  41. }
  42. composeOptions {
  43. kotlinCompilerExtensionVersion = "1.4.3"
  44. }
  45. packaging {
  46. resources {
  47. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  48. }
  49. }
  50. }
  51. dependencies {
  52. implementation(libs.core.ktx)
  53. implementation(libs.lifecycle.runtime.ktx)
  54. implementation(libs.activity.compose)
  55. implementation(platform(libs.compose.bom))
  56. implementation(libs.ui)
  57. implementation(libs.ui.graphics)
  58. implementation(libs.ui.tooling.preview)
  59. implementation(libs.material3)
  60. implementation(libs.appcompat)
  61. implementation(libs.androidx.recyclerview)
  62. implementation(project(mapOf("path" to ":websocket")))
  63. implementation(libs.androidx.cardview)
  64. testImplementation(libs.junit)
  65. androidTestImplementation(libs.androidx.test.ext.junit)
  66. androidTestImplementation(libs.espresso.core)
  67. androidTestImplementation(platform(libs.compose.bom))
  68. androidTestImplementation(libs.ui.test.junit4)
  69. debugImplementation(libs.ui.tooling)
  70. debugImplementation(libs.ui.test.manifest)
  71. }