build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. alias(libs.plugins.android.library)
  3. alias(libs.plugins.kotlin.android)
  4. }
  5. android {
  6. namespace = "ch.threema.android"
  7. compileSdk = 35
  8. defaultConfig {
  9. minSdk = 24
  10. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  11. }
  12. compileOptions {
  13. sourceCompatibility = JavaVersion.VERSION_11
  14. targetCompatibility = JavaVersion.VERSION_11
  15. }
  16. kotlin {
  17. jvmToolchain(17)
  18. }
  19. buildTypes {
  20. debug {}
  21. release {}
  22. }
  23. }
  24. dependencies {
  25. implementation(project(":common"))
  26. implementation(libs.androidx.core)
  27. implementation(libs.androidx.appcompat)
  28. implementation(libs.compose.annotation)
  29. testImplementation(libs.junit)
  30. testImplementation(libs.mockk)
  31. testImplementation(libs.kotlinx.coroutines.test)
  32. testImplementation(libs.kotlin.test)
  33. testImplementation(libs.turbine)
  34. testImplementation(project(":test-helpers"))
  35. }
  36. sonarqube {
  37. properties {
  38. property("sonar.projectKey", "android-client")
  39. property("sonar.projectName", "Threema for Android")
  40. property("sonar.sources", "src/main/")
  41. property("sonar.tests", "src/test/")
  42. property("sonar.sourceEncoding", "UTF-8")
  43. property("sonar.verbose", "true")
  44. }
  45. }
  46. tasks.withType<Test> {
  47. useJUnitPlatform()
  48. }