Closed Bug 1256641 Opened 8 years ago Closed 6 years ago

Evaluate (Java) feed parser libraries

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sebastian, Unassigned)

References

Details

When implementing content notifications (bug 1238087, bug 1241810) I looked at various libraries for feed parser. They all seemed to be very heavy (apk size) and often came with additional components we don't want like their own http clients.

So I wrote SimpleFeedParser a tiny parser that just peeks into a feed to get the info we need and doesn't do a full parse (and doesn't really care about specifications). As long as we only support a small subset of whitelisted services/feeds this is good enough (We have some unit tests). Eventually I still would like to use a good, maintained, third-party parser.
(In reply to Sebastian Kaspari (:sebastian) from comment #0)
> They all seemed to be very heavy (apk
> size) and often came with additional components we don't want like their own
> http clients.

> Eventually I
> still would like to use a good, maintained, third-party parser.

Alternatively, consider releasing ours as a standalone library and getting help to make it more robust from additional developers' efforts. ;)
(In reply to Michael Comella (:mcomella) from comment #1)
> Alternatively, consider releasing ours as a standalone library and getting
> help to make it more robust from additional developers' efforts. ;)

That's also a good idea. But it needs a lot more effort to build a general purpose feed parser. As long as we are only trying to support our use case there's a lot of room to "cheat". :)
This code is gone.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.