53 Commits

Author SHA1 Message Date
Alex Shevchenko
3a6bc57ae7 Pluggable cache (#225)
* Cache is pluggable now.
PINCache dependency is optional.

* Cleanup

* Fixing wrong commit

* Cleanup

* Renamed PINRemoteImageCaching methods
2016-08-05 15:59:16 -07:00
Garrett Moon
bf1012741c Add error for empty images. (#188) 2016-04-13 10:09:38 -07:00
Adlai Holler
632e1bcd2a Modify estimatedRemainingTimeThreshhold Behavior to Match Documentation (#184)
* Modify estimatedRemainingTimeThreshhold behavior to match documentation
* Update documentation on maxProgressiveRenderSize property
* Update the behavior, not the docs
2016-04-11 15:36:50 -07:00
Adlai Holler
df36ae409b Return tasks from prefetching methods 2016-04-09 12:08:02 -07:00
Garrett Moon
ea164f9524 Follow up to #175, addressing comments 2016-04-04 16:12:17 -07:00
Garrett Moon
7c31744e31 Switch to alternative representation 2016-03-28 17:08:53 -07:00
Garrett Moon
1d84f5ebc8 Add memory container 2016-03-28 17:05:59 -07:00
Eric Jensen
af382d93f6 Correct spelling typos 2016-03-22 22:02:27 -07:00
Garrett Moon
d8c5795fcd Improved docs 2016-03-20 17:47:25 -07:00
Garrett Moon
5d4babdc99 Don't want those semi-colons 2016-03-18 16:20:23 -07:00
Justin Williams
4099060dbd Old school #import instead of @import 2016-03-18 16:40:55 -06:00
Justin Williams
26243b3618 PIN_TARGET_IOS and PIN_TARGET_MAC macros
Make it easier to differentiate between Mac and iOS / tvOS targets.
2016-03-18 08:35:00 -06:00
Justin Williams
0235250a5f More explicit TargetConditional intentions
First we check to see if we are on the iOS or tvOS. If not, then we defer back to OS X.

TARGET_OS_IPHONE is a variant of TARGET_OS_MAC, which makes this whole thing really stupid.
2016-03-17 08:45:57 -06:00
Garrett Moon
33b37abeea Shouldn't be deprecated :) 2016-03-11 15:52:25 -08:00
Garrett Moon
3b5164af98 Add support for synchronously getting images from the cache. Also, store images in cache even if they aren't decoded. 2016-03-11 15:17:30 -08:00
Garrett Moon
231ccb1b21 PIN_APP_EXTENSIONS is no longer necessary. 2016-03-05 15:28:13 -08:00
Garrett Moon
29b0b4ac65 Fixes a crash in task callbacks
While all methods on tasks are called within the manager's lock,
dispatching to another queue obviously means the manager may not
be locked anymore.

I also moved calling progress download callbacks to the download
task so it's similar to progress image.

Hopefully these issues have been fixed, but it leads me to believe
a better architecture would be to make the tasks immutable by the
manager and have the tasks manage a lock on themselves. I'll need
to think about that more.
2016-02-23 11:01:56 -08:00
Garrett Moon
06485660d2 Fix warning due to int conversion 2016-02-17 16:00:41 -08:00
Michael Schneider
07b779eb4b Rename PINRemoteImageManagerDownloadProgress to PINRemoteImageManagerProgressDownload 2016-02-10 14:23:57 -08:00
Michael Schneider
5d5dada353 Rename downloadProgress: to progressDownload: 2016-02-10 14:13:56 -08:00
Michael Schneider
e2f8f67c1d Change progress block name to progressImage 2016-02-10 13:54:00 -08:00
Michael Schneider
da255a576c Add optional block to track download progress of image 2016-02-08 20:28:29 -08:00
Garrett Moon
ff59acafa4 Allow setting of progress block to add or cancel updates 2016-02-03 12:59:44 -08:00
Garrett Moon
997c747bf1 Merge branch 'add-generics-for-image-url-arrays' of https://github.com/rounak/PINRemoteImage into rounak-add-generics-for-image-url-arrays 2016-02-02 14:28:00 -08:00
rounak
6a90410322 Add generics to collections 2016-02-01 22:19:51 -08:00
Michael Schneider
f18c250f3e Merge branch 'master' into feature/osx-support 2016-01-30 16:33:15 -08:00
Garrett Moon
bcb0bd9fc2 Allow maximum progressive render size to be set 2016-01-25 10:53:29 -08:00
Garrett Moon
873e26a183 Allow blurring of progressive to be disabled 2016-01-22 14:14:17 -08:00
Michael Schneider
8df9dc00c6 Add support for OS X to library
Mapping generic classes like PINImage, PINImageView and PINButton to the equivalent UIKit or AppKit classes. Throughout the framework use these mappings instead of the concrete UIKit / AppKit names. Furthermore we provide a category on NSImage that is adding methods that are not available on NSImage but on UIImage.
2016-01-04 17:39:50 +01:00
Marius Landwehr
0cd4a176a3 Did some rework from the feedback on the pull request 2015-12-21 21:35:29 +01:00
Marius Landwehr
69d4a27c7b PINCache is indeed nullable see https://github.com/pinterest/PINRemoteImage/pull/101/files#diff-3c9a124fee465b8e3daf9ca2426d4da4R115 2015-12-21 21:35:00 +01:00
Marius Landwehr
cb29048a63 added more swift nullable, nonnull operators 2015-12-21 21:34:19 +01:00
Marius Landwehr
e71b9ceecf PINCache is indeed nullable see https://github.com/pinterest/PINRemoteImage/pull/101/files#diff-3c9a124fee465b8e3daf9ca2426d4da4R115 2015-12-21 21:32:38 +01:00
Marius Landwehr
ead70e87b4 added more swift nullable, nonnull operators 2015-12-21 21:32:38 +01:00
Marius Landwehr
1c73c140ff added more swift nullable, nonnull operators 2015-12-21 21:31:41 +01:00
Marius Landwehr
93e8edbbe8 cleared a warning for the nonnull extern const of PINRemoteImageManagerErrorDomain 2015-12-21 21:31:41 +01:00
Marius Landwehr
bee20b5887 added better swift support for PINRemoteImageManager.h 2015-12-21 21:31:41 +01:00
Bradley Smith
cc9f900a95 - added sharedImageManager configuration 2015-12-07 16:05:31 -05:00
Adlai Holler
e1bfaa0fa1 Revert "Remove explicit options values"
This reverts commit bace9ce8d6.
2015-11-23 13:50:04 -08:00
Adlai Holler
af7bfe3f59 Revert "Fix raw value for .None option"
This reverts commit 897fd4c55f.
2015-11-23 13:49:59 -08:00
Adlai Holler
897fd4c55f Fix raw value for .None option 2015-11-22 10:49:15 -08:00
Adlai Holler
bace9ce8d6 Remove explicit options values 2015-11-20 15:53:04 -08:00
Adlai Holler
5fadcb46d0 Use NS_OPTIONS for PINRemoteImageManagerDownloadOptions 2015-11-20 15:24:57 -08:00
Brian Dorfman
0add2f2846 Remove unnecessary forward declaration 2015-10-28 11:27:22 -07:00
Sam Dean
c0e74f10eb Replace @import with #import 2015-09-30 14:39:13 +01:00
Kurry
d83f9a36b4 updated documentation to say 'Create and Return' 2015-09-13 12:43:38 -04:00
Kurry
b795c4e384 added support for custom http request headers 2015-09-11 23:08:33 -04:00
Bilge Taylan Ulusoy
a3b58bb706 Deleted forgotton nullabel 2015-09-11 22:21:40 +02:00
Bilge Taylan Ulusoy
03d930064e Include authentication handling in PINURLSessionManagerDelegate 2015-09-11 11:24:09 +02:00
Bilge Taylan Ulusoy
6ebe4cc42d Preparing to support authentication challenge handling 2015-09-11 11:20:35 +02:00