Prevent a Package Depending Upon Another

Enforce architecture rules, such as data access layers not depending upon UI layers.

Kotlin developers can configure an inspection to define illegal package dependencies, which can prevent code from accidentally depending upon the wrong packages, for example the UI layer talking directly to the data access layer.


Related Resources

Guard conditions
Guard conditions
Create advanced control flows in when statements
Non-local break & continue
Non-local break & continue
Making inline lambdas truly first-class citizens
Multi-dollar String Interpolation in Kotlin
Multi-dollar String Interpolation in Kotlin
Improve $ handling in string literals