-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Kotlin Multiplatform support #192
Comments
Hey, Some of the modules are plain kotlin anyway or use libraries that are also multiplatform (like ktor client) and should thereby (I guess) be easily convertable to multi platform |
as i see the lib uses jsoup under the hood. so the main effort - migrate/rewrite it with KMP with preserving the public api. |
Following modules are pure kotlin:
Following modules have jvm specific dependencies which would need to be replaced on none jvm plattforms:
Since I never wrote a KMM Lib and running short on time currently because of job and kid, would you mind to provide a PR @mykola-dev? Maybe at least for 1 or 2 modules (if that is possible) to see how things work. Another question would be how to publish it then. |
xsoup is a java lib too. i tried to migrate jsoup to kotlin (with further kotlin native migration), but it uses lot of jvm specific apis. estimated efforts are huge, so i abandoned this idea. |
I'm interested in making a PR for this. I've had a look at the code and I think some groundwork needs to be done first, as the Gradle config is applying the Kotlin/JVM plugin to all projects. I can make a PR to create some convention plugins for the different Kotlin platforms, as well as other shared build config. The end result will be that the root I won't touch any of the source code, just the Gradle config. |
@aSemy this is awesome news. I really appreciate 💯🙏 |
At first glance it looks like migrating to multiplatform will be pretty easy!
Something that might be difficult to change is that all the tests are using JUnit, which of course is JVM only. But migrating to something like Kotlin Test or Kotest should be reasonably easy. |
@aSemy how are you going to port the jsoup stuff to the native platforms? |
I'm planning to only keep the JVM target, but migrate the common Skrape code to |
Would love support for this. |
Hey @Shabinder, Would you still be open to help on this topic? |
Hey guys!
Is there any reason why this lib is jvm only? I would like to use it in my KMM project (android, web, desktop, ios)
How much effort is required to migrate the lib to KMM?
The text was updated successfully, but these errors were encountered: