Closed marczych closed 10 years ago
@timothyasp I haven't taken out any of the debug logs because they're invaluable when testing. I'm thinking of leaving a few of them in for the debug version like we do for API calls.
That's fine, as long as we wrap them with a App.inDebug()
call.
Finished going through the code - looks solid to me! Great work @marczych, really top-notch code!
Testing on 2.2 right now :fingers crossed:
I've had the release versions of every flavor running on my phone for the last couple of days, and it's working as expected. CR :+1:
QA :bikini:
!!! Very excited
-Tim
On Wed, Apr 9, 2014 at 6:17 PM, Marc Zych notifications@github.com wrote:
Merged #200 https://github.com/iFixit/iFixitAndroid/pull/200.
Reply to this email directly or view it on GitHubhttps://github.com/iFixit/iFixitAndroid/pull/200 .
This adds functionality to store guides and view them offline. See #182.
TODO
Translate new strings.Wi-Fi only sync setting?Allow arbitrary offline guides outside of favorites?Have separate offline guides and favorites views?c5437b4022503163a90c649c790e2b558059ebd8Update Offline Guides menu drawer icon(fixed by replacing FavoritesActivity with OfflineGuidesActivity)new File(getOfflinePath(url))
is ugly) b1e71e8c16187c5c037f9270d29bc4b3464ec8e6ApiDatabase
sends out a broadcast indicating that some data has changed andOfflineGuidesActivity
refetches everything from the DB and reparses all of the JSON. This should be more efficient because it should really only update the progress and not refetch all of the data. It should also be able to send updates to other views that display guides e.g. guides in search, topics, favorites, teardowns, etc. 0ed570d553ad2113ea457c1c592db89cdde517acDelete media that is no longer referenced (this will be tricky if there are multiple users signing into a site on a single device. We don't want to delete images that might be used again if the user is logged in.)Started on it but turned out to be too troublesome: 0df79be3dcb960d613b9096edd1ff060ce4fa0f5<feature creep>
Allow users to specify guide download priority.</feature creep>
Display sync errors in the offline guides list.GuideInfo
JSON along with the full guide and use theGuideInfo
JSON to display the list of offline guides. This should improve performance a lot. 96e0ba6d651023dcfc9bb8a8d1cc4e58bcbcdd7b