Sabeeh
08/12/2024, 10:00 PMksoup-core-placeholder
as a compileOnly
dependency.
3. ksoup-korio: Includes ksoup-core
and the actual implementation for the IO logic, which is in korio-io
.
This setup works fine on JVM. However, for JS and iOS, I'm encountering the following error: KLIB resolver: Could not find "ksoup:ksoup-core-placeholder"
If I remove the compileOnly
, the library works fine on JVM and Native but not on JS, where it always uses the placeholder code instead of the actual implementation from korio-io
.
Code is in develop branch.Sabeeh
08/12/2024, 10:00 PMIvan Kubyshkin
08/14/2024, 9:46 AM../ksoup-core-placeholder: compile-only
. But I have the same error without compile-only
. What do I need to change in your code?Sabeeh
08/15/2024, 1:21 PMgit clone <https://github.com/fleeksoft/ksoup.git> ksoup
cd ksoup
git checkout develop
./gradlew jsTest
this will fail with error: e: KLIB resolver: Could not find "ksoup1:ksoup-core-placeholder"
but again
git clone <https://github.com/fleeksoft/ksoup.git> ksoup2
cd ksoup2
git checkout develop
// edit ksoup-core/module.yaml and remove compile-only
./gradlew jsTest
this time build work fine but only tests will failSabeeh
08/15/2024, 5:03 PM