I'm developing a managed package in a dev org that uses Lightning Knowledge. My problem is that is seems impossible to include the Lightning Knowledge custom object rather than the old classic article type. The apex code in the package uses the Lightning Knowledge custom object API Name, but the classic article type API name is the same, and the package manager always decides to include (due to dependencies) the latter, not the former. Is there any workaround?
More details. This is the error I get when I try to install the managed package in another org that has Lightning Knowledge enabled:
Another update. I've tried to use always record types when handling Knowledge records in my apex code to ensure that I'm using Lightning Knowledge objects, not classic. But even with that, "Article type" (classic) is added automatically to my package when I manually add the apex classes (dependency)