prof18 / RSS-Parser

A Kotlin Multiplatform library to parse a RSS Feed
Apache License 2.0
489 stars 126 forks source link

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

Closed ashishb closed 3 months ago

ashishb commented 4 months ago

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.

prof18 commented 3 months ago

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

ashishb commented 3 months ago

@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 :|

prof18 commented 3 months ago

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.