Commit Graph

40 Commits

Author SHA1 Message Date
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
Bradley Smith
cc9f900a95 - added sharedImageManager configuration 2015-12-07 16:05:31 -05:00
Garrett Moon
bbc0a9c86f URLs need to be HTTPs 2015-10-23 11:39:12 -07:00
Kurry
21e95bfd82 made changes so FLAnimatedImage is optional and updated PINCache and pod version 2015-10-04 15:07:06 -04:00
Kurry
b795c4e384 added support for custom http request headers 2015-09-11 23:08:33 -04:00
Bilge Taylan Ulusoy
0229cf1410 authenticationChallenge tests + removed nullable 2015-09-11 19:55:54 +02:00
Bilge Taylan Ulusoy
dfd5a8d67e Call completionHandler if authenticationChallenge Block is not set
Using NSURLSessionAuthChallengePerformDefaultHandling
2015-09-11 11:36:56 +02:00
Bilge Taylan Ulusoy
f321dc4ce4 -didReceiveAuthenticationChallenge:forTask:completionHandler: Implementation 2015-09-11 11:29:33 +02:00
Bilge Taylan Ulusoy
6ebe4cc42d Preparing to support authentication challenge handling 2015-09-11 11:20:35 +02:00
Kurry
9765a37f97 initialized error to nil 2015-09-10 18:34:45 -04:00
Kurry
5ebba1967b fixed issue with error not being set when URL is nil 2015-09-10 15:22:25 -04:00
Garrett Moon
0605492fc8 Merge pull request #46 from pinterest/fixProgressRaceCondition
Fix race conditions in progress generation
2015-09-03 16:49:37 -07:00
Garrett Moon
f2bde95b2a Readability improvements, thanks Jon! 2015-09-03 14:21:33 -07:00
Garrett Moon
25b2a33444 Remove unused queue. Thanks Kurry Tran! 2015-08-29 15:27:17 -07:00
Garrett Moon
ea8fad0c20 More awesome fixes from Jon 2015-08-27 14:28:34 -07:00
Garrett Moon
578bfd2a28 Cleanup, thanks Jon! 2015-08-27 11:14:42 -07:00
Garrett Moon
8d3d37dec2 Passing incorrect error 2015-08-27 07:30:17 -10:00
Garrett Moon
5e3ab338e1 Fix race conditions in progress generation 2015-08-26 13:48:52 -07:00
Garrett Moon
aafb5d900c Fix threadPriority deprecation warning 2015-08-17 14:12:20 -07:00
Garrett Moon
b76df8be03 Fixing < iOS 8 crash 2015-08-04 10:15:06 -07:00
Garrett Moon
9923d1a978 Merge pull request #24 from jparise/canceled-unlock
Release our lock when we encounter a canceled task
2015-08-03 12:45:23 -07:00
Jon Parise
2b27e1f5c5 Release our lock when we encounter a canceled task
This early-out condition would exit while still holding our lock, resulting in
Very Bad Things (tm) down the line.
2015-08-03 12:35:36 -07:00
Jon Parise
a36d5ff37d Merge pull request #20 from pinterest/setOperationQOS
Set QOS / Thread priority
2015-08-01 15:18:27 -07:00
Garrett Moon
053ee6dfc3 Merge pull request #17 from jmah/jmah/mini-optimization
Optimize cancelling operations a little
2015-08-01 14:14:38 -07:00
Garrett Moon
5036a71446 Remove extra qualityOfService set 2015-08-01 12:43:26 -07:00
Garrett Moon
144327ae99 Set QOS / Thread priority
Surprisingly, it seems that leaving the qos priority to default does not actually lead to a qos of background like the documentation states. I've found that the QOS gets upgraded to user interactive in some cases. This explicitly sets the QOS on all operations to background so we don't affect scroll performance.
2015-08-01 09:24:47 -07:00
Jonathon Mah
735852c800 Ensure BOOLs are YES / NO
Previously some could be greater than 1.
2015-07-31 18:45:44 -07:00
Jonathon Mah
ffd92b70af Optimize cancelling operations a little 2015-07-31 18:42:13 -07:00
Jon Parise
ead45bf18a Pass options directly to our early return routine.
This is a more flexible approach that will allow this routine to consider the
full set of options when evaluating an early return.

Also, the `queue` parameter was never being used so it has been removed.
2015-07-31 15:11:04 -07:00
Jon Parise
fd073e394e Simplify UUID parameter handler. 2015-07-31 14:54:52 -07:00
Garrett Moon
faa6264b65 Fix QOS Test (and add cleanup)
- Remove lower quality images from cache if a higher quality one is to be downloaded
- Document weirdness around QOS and caching
- Fix QOS test
2015-07-30 15:27:44 -07:00
Jon Parise
38d9f8e3c9 Name our locks. 2015-07-29 14:43:23 -07:00
Zev Eisenberg
c9f1796b3f Prefix category methods. 2015-07-27 17:57:37 -04:00
Garrett Moon
9d2bd31f95 1.0 2015-07-22 17:29:31 -07:00