Architecture Assertion
Verify codebase using Konsist API
Assert Architecture
Konsist
.scopeFromProject()
.assertArchitecture {
// Assert architecture
}Define Layers
Konsist
.scopeFromProject()
.assertArchitecture {
// Define layers
val presentation = Layer("Presentation", "com.myapp.presentation..")
val data = Layer("Data", "com.myapp.data..")
}Define Architecture Assertions
Strict DependsOn
Excluding Files
Include Layer Without Defining Dependency
Architecture As A Variable
Last updated