build.gradle.kts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* _____ _
  2. * |_ _| |_ _ _ ___ ___ _ __ __ _
  3. * | | | ' \| '_/ -_) -_) ' \/ _` |_
  4. * |_| |_||_|_| \___\___|_|_|_\__,_(_)
  5. *
  6. * Threema for Android
  7. * Copyright (c) 2025 Threema GmbH
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License, version 3,
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. */
  21. plugins {
  22. alias(libs.plugins.android.library)
  23. alias(libs.plugins.kotlin.android)
  24. }
  25. android {
  26. namespace = "ch.threema.android"
  27. compileSdk = 35
  28. defaultConfig {
  29. minSdk = 24
  30. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  31. }
  32. compileOptions {
  33. sourceCompatibility = JavaVersion.VERSION_11
  34. targetCompatibility = JavaVersion.VERSION_11
  35. }
  36. kotlin {
  37. jvmToolchain(17)
  38. }
  39. buildTypes {
  40. debug {}
  41. release {}
  42. }
  43. }
  44. dependencies {
  45. implementation(project(":common"))
  46. implementation(libs.androidx.core)
  47. implementation(libs.androidx.appcompat)
  48. implementation(libs.compose.annotation)
  49. testImplementation(libs.junit)
  50. testImplementation(libs.mockk)
  51. testImplementation(libs.kotlinx.coroutines.test)
  52. testImplementation(libs.kotlin.test)
  53. testImplementation(libs.turbine)
  54. testImplementation(project(":test-helpers"))
  55. }
  56. sonarqube {
  57. properties {
  58. property("sonar.projectKey", "android-client")
  59. property("sonar.projectName", "Threema for Android")
  60. property("sonar.sources", "src/main/")
  61. property("sonar.tests", "src/test/")
  62. property("sonar.sourceEncoding", "UTF-8")
  63. property("sonar.verbose", "true")
  64. }
  65. }
  66. tasks.withType<Test> {
  67. useJUnitPlatform()
  68. }