| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /* _____ _
- * |_ _| |_ _ _ ___ ___ _ __ __ _
- * | | | ' \| '_/ -_) -_) ' \/ _` |_
- * |_| |_||_|_| \___\___|_|_|_\__,_(_)
- *
- * Threema for Android
- * Copyright (c) 2025 Threema GmbH
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- plugins {
- alias(libs.plugins.java.library)
- alias(libs.plugins.kotlin.jvm)
- alias(libs.plugins.jacoco)
- }
- dependencies {
- implementation(libs.kotlin.stdlib)
- implementation(libs.kotlinx.coroutines.core)
- testImplementation(libs.junit)
- testImplementation(libs.mockk)
- testImplementation(libs.kotlinx.coroutines.test)
- testImplementation(libs.kotlin.test)
- testImplementation(libs.turbine)
- testImplementation(project(":test-helpers"))
- }
- tasks.withType<Test> {
- useJUnitPlatform()
- }
- tasks.withType<JacocoReport> {
- reports {
- xml.required = true
- html.required = false
- }
- }
- sonarqube {
- properties {
- property("sonar.projectKey", "android-client")
- property("sonar.projectName", "Threema for Android")
- property("sonar.sources", "src/main/")
- property("sonar.tests", "src/test/")
- property("sonar.sourceEncoding", "UTF-8")
- property("sonar.verbose", "true")
- property(
- "sonar.coverage.jacoco.xmlReportPaths",
- "${projectDir.parentFile.path}/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml",
- )
- }
- }
- java {
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
- }
- kotlin {
- compilerOptions {
- jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
- }
- }
|