Open vanniktech opened 2 months ago
@vanniktech You can’t use multiple variants in a single project, as it will cause conflicts.
Why is that? If you think of retrofit you can also use different adapters in parallel for instance Moshi & Gson.
@vanniktech Actually, when I started developing it, I didn’t consider this and created a single global instance. When I created the variants, I continued using the single instance approach to keep it simple with a global Ksoup object, avoiding initialization. At that time, I didn’t anticipate this kind of issue. It’s not much to do, and I’ll address it in the next release, which should be ready by the end of next week.
I have an application that has an
implementation
dependency on two modules:epub
usescom.fleeksoft.ksoup:ksoup-okio
textextractor
usescom.fleeksoft.ksoup:ksoup
When I tried to compile my application, I got:
Are those ksoup modules somehow modified / differently published? This should work, but it didn't. As a workaround, I just changed the
textextractor
module to also use theokio
ksoup extension, even though it does not need okio there.