prof18 / RSS-Parser

A Kotlin Multiplatform library to parse a RSS Feed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's the right way to use v6 in Java?

ashishb opened this issue · comments

Can you please provide sample code to use v6 version in Java (not Kotlin)?
I am trying to migrate from v5 and am failing at the feed fetching step.

Hi!
version 6 doesn't support Java anymore! You can still use version 5 in that scenario.

@prof18 Any reason for dropping Java support? I understand limited support but fully dropping it sounds a bit too much.

I can't just magically convert my app from Java to Kotlin.
I was planning to add more extensions to your Rss-Parser but if I can't use it then I will have to pretty much re-create your library from scratch :|

Hi,

because time is limited, and the ecosystem is Kotlin first now. You can still use the v5, or I've realized that you can still use the v6 from Java. You will need some Kotlin code as a wrapper to transform into CompletableFuture or ListeneableFuture. I've added some docs about it and a sample.