Skip to content

ADNKit 1.2 Release Notes

joeldev edited this page Apr 13, 2013 · 6 revisions

[Previous Release Notes (1.1.2)] (https://github.com/joeldev/ADNKit/wiki/ADNKit-1.1.2-Release-Notes)

New App.net APIs

ANKClient Improvements

  • ANKClient has a new read-only ANKUser property called authenticatedUser. This is a full user object that is the currently authenticated user and is set automatically during auth and logout.

  • ANKClient now provides a user defaults API for easily storing preferences in the scope of the authenticated user. All managing of the per-user defaults namespace is done by ANKClient.

ANKFile Improvements

  • ANKFile can now be created via a new class method, +fileWithFileAtURL. This creates an ANKFile set up with properties gathered from the file at the passed URL. The result of this is ready to go straight into a createFile call.

  • ANKFile now has -smallImageThumbnailFile and -mediumImageThumbnailFile methods that wrap the automatic thumbnails that come back in derived files. Let ADNKit hardcode the keys so you don't have to.

ANKResourceMap

  • Added ANKResourceMap, which lets users tell ADNKit to always use specific a model subclass instead of the primary built-in model class. This allows for easy customization of model objects via subclassing.

Bug Fixes

  • Fixed a bug where ANKClient's file creation methods didn't properly pass the type parameter to the server.

  • Fixed a typo that caused fetching interactions to 404 (thanks @rafaelc0sta).

  • ANKEntities now properly supports surrogate pair ranges (thanks @berg).

  • Fixed a crash that occurs when the ADN API sends an explicit null for a primitive integer value.