星火管控
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 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.androidLibrary)
  4. alias(libs.plugins.kotlinAndroid)
  5. }
  6. android {
  7. namespace = "com.xhly.websocket"
  8. compileSdk = 33
  9. defaultConfig {
  10. minSdk = 24
  11. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles("consumer-rules.pro")
  13. }
  14. buildTypes {
  15. release {
  16. isMinifyEnabled = false
  17. proguardFiles(
  18. getDefaultProguardFile("proguard-android-optimize.txt"),
  19. "proguard-rules.pro"
  20. )
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility = JavaVersion.VERSION_1_8
  25. targetCompatibility = JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = "1.8"
  29. }
  30. }
  31. dependencies {
  32. implementation(libs.core.ktx)
  33. implementation(libs.appcompat)
  34. implementation(libs.material)
  35. api(project(mapOf("path" to ":corelib")))
  36. testImplementation(libs.junit)
  37. androidTestImplementation(libs.androidx.test.ext.junit)
  38. androidTestImplementation(libs.espresso.core)
  39. api("com.neovisionaries:nv-websocket-client:2.2")
  40. }