We had this problem when developing Konist. I sugg...
# konsist
i
We had this problem when developing Konist. I suggest 1. using kotlin explicit api mode (optional) 2. Put all of the publicly available classes in a single package (including sub packages) and verify if declarations from outside this package are not accidentally exposed
Copy code
Konsist.scopeFromProduction()
            .classesAndInterfacesAndObjects()
            .withoutPackage("com.lemonappdev.konsist.api..")
            .assertFalse { it.hasPublicOrDefaultModifier }
BTW This example uses
classesAndInterfacesAndObjects
declaration accessor introduced in Konsist
0.16.0
🙌 1