cketti/ckChangeLog — pull request #12 by Sloy (2013-11-11 11:00:18+00:00)
Title: Added method getLogArray to obtain an array of ReleaseItem.

Added a new public method, getLogArray(full), to obtain a SparseArray of ReleaseItem objects, having the versioncode as the key, and the ReleaseItem object as value, with the versionname, versioncode and list of changes.
The new method uses the same code than getLog(full) to parse the chagelogs and merge localized and default xmls. Now getLog reuses this new method to avoid code duplicates.

Modified class ReleaseItem to be public, and its properties encapsulated to be read-only.

I did this to be able to access the list of changes in my app, because I wanted to show a custom card in the main screen with the latest changes. And I thought it would be a good idea to provide a way of accessing the raw list of changes instead of the html, so the developer can put them in a customized way. I still show the dialog when the user selects to do so, but I don't like modal dialogs being shown directly when the user opens the app.

It's just an extra functionality to provide more flexibility, as I think this library is already great to manage list of changes on each new version. Hope you like it, merge if you find it useful :)