Make sonar build faster and happier
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 10m23s
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 10m23s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
plugins {
|
||||
jacoco
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.compose)
|
||||
@@ -40,9 +41,14 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
|
||||
debug {
|
||||
enableAndroidTestCoverage = true
|
||||
enableUnitTestCoverage = true
|
||||
}
|
||||
}
|
||||
|
||||
packaging {
|
||||
@@ -51,6 +57,7 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.ktx)
|
||||
debugImplementation(libs.androidx.tooling)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<activity
|
||||
android:exported="true"
|
||||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
|
||||
android:name="ch.dissem.android.MainActivity">
|
||||
android:name="ch.dissem.yaep.android.MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package ch.dissem.android
|
||||
package ch.dissem.yaep.android
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
12
android/src/test/kotlin/ch/dissem/yaep/android/DummyTest.kt
Normal file
12
android/src/test/kotlin/ch/dissem/yaep/android/DummyTest.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package ch.dissem.yaep.android
|
||||
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.toEqual
|
||||
import ch.tutteli.atrium.api.verbs.expect
|
||||
import kotlin.test.Test
|
||||
|
||||
class DummyTest {
|
||||
@Test
|
||||
fun `ensure some test is run`() {
|
||||
expect(true).toEqual(true)
|
||||
}
|
||||
}
|
||||
@@ -39,10 +39,14 @@ sonar {
|
||||
|
||||
tasks.withType<SonarTask>().configureEach {
|
||||
dependsOn(
|
||||
subprojects.flatMap { it.tasks.withType<AndroidLintTask>() }
|
||||
subprojects
|
||||
.flatMap { it.tasks.withType<AndroidLintTask>() }
|
||||
.filter { it.variantName != "release" }
|
||||
)
|
||||
dependsOn(
|
||||
subprojects.flatMap { it.tasks.withType<JacocoReportTask>() }
|
||||
subprojects
|
||||
.flatMap { it.tasks.withType<JacocoReportTask>() }
|
||||
.filter { it.variantName != "release" }
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ kotlin {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
namespace = "ch.dissem.yaep.common.ui"
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
|
||||
defaultConfig {
|
||||
minSdk = libs.versions.android.minSdk.get().toInt()
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.toEqual
|
||||
import ch.tutteli.atrium.api.verbs.expect
|
||||
import kotlin.test.Test
|
||||
|
||||
class DummyTest {
|
||||
@Test
|
||||
fun `ensure there is a test`() {
|
||||
expect(true).toEqual(true)
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||
|
||||
plugins {
|
||||
jacoco
|
||||
alias(libs.plugins.kotlin.jvm)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.compose)
|
||||
|
||||
@@ -27,8 +27,8 @@ kotlin {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
namespace = "ch.dissem.yaep.domain"
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
|
||||
defaultConfig {
|
||||
minSdk = libs.versions.android.minSdk.get().toInt()
|
||||
|
||||
Reference in New Issue
Block a user