mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 07:57:03 +05:30
all: reformat with ktfmt google style
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
8448910628
commit
db07a12be5
54 changed files with 496 additions and 656 deletions
|
@ -2,9 +2,7 @@ import org.gradle.api.Project
|
|||
import org.gradle.kotlin.dsl.configure
|
||||
import org.jetbrains.kotlin.gradle.plugin.KaptExtension
|
||||
|
||||
/**
|
||||
* Apply default kapt configs to the [Project].
|
||||
*/
|
||||
/** Apply default kapt configs to the [Project]. */
|
||||
internal fun Project.configureKapt() {
|
||||
extensions.configure<KaptExtension> {
|
||||
javacOptions {
|
||||
|
@ -17,15 +15,14 @@ internal fun Project.configureKapt() {
|
|||
}
|
||||
}
|
||||
// disable kapt tasks for unit tests
|
||||
tasks.matching {
|
||||
it.name.startsWith("kapt") && it.name.endsWith("UnitTestKotlin")
|
||||
}.configureEach { enabled = false }
|
||||
tasks
|
||||
.matching { it.name.startsWith("kapt") && it.name.endsWith("UnitTestKotlin") }
|
||||
.configureEach { enabled = false }
|
||||
}
|
||||
}
|
||||
|
||||
private val Project.hasDaggerCompilerDependency: Boolean
|
||||
get() = configurations.any {
|
||||
it.dependencies.any { dependency ->
|
||||
dependency.name == "dagger-compiler"
|
||||
get() =
|
||||
configurations.any {
|
||||
it.dependencies.any { dependency -> dependency.name == "dagger-compiler" }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue