* Add Kotlin Kover * Add AuthKtorConfiguration tests * Ensure at least 25% code coverage * Exclude Previews from code coverage * Specify Kover report path for SonarQube * Add Kover xml report task * Extract sonar to a separate step * Add some exclusions and minimum coverage * Exclude Hilt-generated classes * Add shopping list view model tests * Reduce the coverage requirement
48 lines
1.4 KiB
Kotlin
48 lines
1.4 KiB
Kotlin
@file:Suppress("UnstableApiUsage")
|
|
|
|
plugins {
|
|
id("gq.kirmanak.mealient.library")
|
|
alias(libs.plugins.ksp)
|
|
id("gq.kirmanak.mealient.compose")
|
|
id("kotlin-kapt")
|
|
id("dagger.hilt.android.plugin")
|
|
}
|
|
|
|
android {
|
|
namespace = "gq.kirmanak.mealient.shopping_list"
|
|
}
|
|
|
|
ksp {
|
|
arg("compose-destinations.generateNavGraphs", "false")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":architecture"))
|
|
implementation(project(":logging"))
|
|
implementation(project(":datasource"))
|
|
implementation(project(":database"))
|
|
implementation(project(":ui"))
|
|
implementation(project(":model_mapper"))
|
|
implementation(libs.android.material.material)
|
|
implementation(libs.androidx.compose.material)
|
|
implementation(libs.androidx.compose.materialIconsExtended)
|
|
implementation(libs.google.dagger.hiltAndroid)
|
|
implementation(libs.androidx.hilt.navigationCompose)
|
|
implementation(libs.jetbrains.kotlinx.coroutinesAndroid)
|
|
|
|
kapt(libs.google.dagger.hiltCompiler)
|
|
|
|
kaptTest(libs.google.dagger.hiltAndroidCompiler)
|
|
|
|
testImplementation(project(":testing"))
|
|
testImplementation(libs.google.dagger.hiltAndroidTesting)
|
|
testImplementation(libs.jetbrains.kotlinx.coroutinesTest)
|
|
testImplementation(libs.androidx.test.junit)
|
|
testImplementation(libs.google.truth)
|
|
testImplementation(libs.io.mockk)
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|