:point_right: Konsist 0.17.0 has been released. K...
# konsist
i
👉 Konsist 0.17.0 has been released. Key Changes • Improve backwards compatibility (up to Kotlin 1.8) • Add Support for Generic type parameters and generic type arguments • Fixed APIs around parent verification - allow to verify use side (now possible) and declaration site (API has changed a bit) • Improved architecture assertions • Improved test failure output formatting • The Konsist Language reference was added • Various API Improvements See full release log https://github.com/LemonAppDev/konsist/releases/tag/v0.17.0
konsist 6
🎉 5
thank you color 5
b
Hey @igor.wojda I was just curious what were the reasons behind changing the way of providing package name for single layers while asserting architecture. Previously we could write our domain layer like this for example:
Copy code
val domain = Layer("Domain", "..domain..")
But now as I see it from Konsist snippet it needs to be written like this:
Copy code
val domain = Layer("Domain", "com.myapp.domain..")
To me the old way was more flexible and more useful to my project structure where I have feature-based structure in my project. So each feature has its own domain, data, presentation, ui layers. And with new approach it would require me to write a lot of different tests(or layers) in order to test my architecture, which worked with only one test with the version 0.16.1. Or am I missing something?
👀 1
i
Entire
assertArchitecture
part have been heavily rewritten. This is a bug. Hotfix will be released soon
🙌 1
I thought it a bug in Layer class, but it looks like a bug in arch verification. I get the general idea, but....Can you create a sampel project or describe your class structure, so it easier for me to reproduce this and fix it?
b
It is happening to me in my opensource library Inspektify here: https://github.com/BVantur/inspektify/blob/main/konsistTest/src/jvmTest/kotlin/inspektify/LibKonsistTest.kt I downgraded version back to 0.16.1, so it needs to be upgraded to 0.17.0. But if that doesn’t work, let me know and I can prepare a sample project for you as well.
i
thx, I will take a look
Fixed in 0.17.1