Commit Graph

379 Commits

Author SHA1 Message Date
Garrett Moon
d98b4e388b Merge pull request #116 from pinterest/moveBluringToSerialQueue
After continually seeing crashes on createCGImage:fromRect: I'm ready
2016-01-19 12:43:24 -08:00
Garrett Moon
561251adb9 After continually seeing crashes on createCGImage:fromRect: I'm ready
to try some speculative fixes. This moves the rendering to a serial queue
A bit disappointing, this will be reverted if it doesn't address the crashes.

If it does… well, we'll have more to work on.
2016-01-19 12:38:37 -08:00
Garrett Moon
971049b47a Merge pull request #101 from mRs-/better-swift-support
Better swift support for optionals
2016-01-15 11:40:02 -08:00
Marius Landwehr
3e385dc0c9 switched nonnull to nullable on pin_setDownloadImageOperation for NSUUID and for the deprecated method 2016-01-15 07:33:41 +01:00
Marius Landwehr
bd9006d86e rework on PINURLSessionManager 2016-01-12 21:46:54 +01:00
Marius Landwehr
d283377b0d added better swift support for deprecated methods 2016-01-12 21:46:44 +01:00
Michael Schneider
803bac1bb9 Use a layer backed view instead of overwriting drawRect to draw the background for performance improvements 2016-01-08 18:56:33 +01:00
Michael Schneider
2608291386 Add OS X example similar to the iOS example 2016-01-06 15:03:44 +01:00
Michael Schneider
cd20716750 Fix using NSGraphicsContext in creating a CGImage in NSImage category 2016-01-06 14:58:34 +01:00
Michael Schneider
21bf559066 Add small OS X example and update iOS example 2016-01-04 18:34:38 +01:00
Michael Schneider
2fe6c766d6 Add support for OS X to podspec and update .gitattributes 2016-01-04 17:40:44 +01: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
Jon Parise
af312667f0 Merge pull request #111 from maicki/feature/fix-update-progress-call
Pass through setUpdateWithProgress: value to prefixed property
2016-01-04 08:25:58 -08:00
Michael Schneider
9b8b0afc6d Pass through setUpdateWithProgress: value to prefixed property
Fixes the setUpdateWithProgress: method that currently calls itself instead of passing the value through to the prefixed pin_updateWithProgress property. This results into a infinite loop and a crash.
2016-01-04 14:56:29 +01:00
Marius Landwehr
a5e36046bc Removed the warnings and create an issue for this. 2015-12-21 21:35:30 +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
b016ecdc25 added swift support for the CategoryManager
I skipped the deprecations because, they are deprecated and we hope no one is using them any more in swift anyway
2015-12-21 21:35:29 +01:00
Marius Landwehr
337027351e added better swift support for UIImage+DecodedImage 2015-12-21 21:35:29 +01:00
Marius Landwehr
ac3f85deae added better swift support to PINDataTaskOperation 2015-12-21 21:35:29 +01:00
Marius Landwehr
377944a1be swift support for PINRemoteImageCallbacks 2015-12-21 21:35:29 +01:00
Marius Landwehr
0502a63081 better swift support for PINRemoteImageDownloadTask 2015-12-21 21:35:29 +01:00
Marius Landwehr
db1e2be8fd PINRemoteImageDownloadTask got the same manager problem 2015-12-21 21:35:29 +01:00
Marius Landwehr
22fe19780c found the weierd bug in PINRemoteImageProcessorTask as well, maybe we should go in deeper… 2015-12-21 21:35:29 +01:00
Marius Landwehr
35abe961d8 PINRemoteImageProcessor is now better with swift 2015-12-21 21:35:29 +01:00
Marius Landwehr
350d3ed0ba setPriority is not implemented in the PINRemoteImageTask, it should be kicked, but that's maybe another pull request then 2015-12-21 21:35:01 +01:00
Marius Landwehr
a638b89e2f cancelWithUUID:manager: is a bit weierd because manager is not needed, maybe it's obsolete? 2015-12-21 21:35:01 +01:00
Marius Landwehr
c99735d5e4 added better swift support for PINRemoteImageTask 2015-12-21 21:35:01 +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
8921f5e15b Added swift support for PINURLSessionManager 2015-12-21 21:32:38 +01:00
Marius Landwehr
6da303e715 added swift support for PINRemoteImageManagerResult 2015-12-21 21:32:38 +01:00
Marius Landwehr
e8377d2e21 Added swift support for PINProgressiveImage 2015-12-21 21:32:38 +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
Garrett Moon
a19ac9f05b Merge pull request #105 from bsmith11/addSharedImageManagerConfiguration
Support for sharedImageManager with custom configuration
2015-12-15 13:50:34 -08:00
Garrett Moon
b7cace0802 Revert "use NS_EXTENSION_UNAVAILABLE_IOS instead of PIN_APP_EXTENSIONS"
This reverts commit 464bb1921c.
2015-12-14 14:34:27 -08:00
Garrett Moon
08b5b94573 processor property is unused 2015-12-14 14:33:38 -08:00
Garrett Moon
4922e90adf Merge pull request #107 from foursquare/session-auth-challenge
Fix crash in urlSession authentication challenge.
2015-12-09 10:28:13 -08:00
Garrett Moon
2271a04091 Merge pull request #108 from mRs-/NS_EXTENSION_UNAVAILABLE_IOS
use NS_EXTENSION_UNAVAILABLE_IOS instead of PIN_APP_EXTENSIONS
2015-12-09 10:24:54 -08:00
Marius Landwehr
464bb1921c use NS_EXTENSION_UNAVAILABLE_IOS instead of PIN_APP_EXTENSIONS 2015-12-09 07:47:15 +01:00
Brian Dorfman
21e69bcf80 Fix crash in urlSession authentication challenge.
Implement delegate method for when there is a session-level authentication challenge so that the call isn't forwarded to the task version.
Make sure we always strongSelf inside blocks.
2015-12-08 17:32:27 -08:00
Bradley Smith
cc9f900a95 - added sharedImageManager configuration 2015-12-07 16:05:31 -05:00
Garrett Moon
d810d8e2d9 More asserts on timeouts, increase timout for CI 2015-12-05 15:48:56 -08:00
Garrett Moon
f89895d6c6 Merge pull request #104 from pinterest/removeDecodeForProgressive
Remove decode for CI progressive images
2015-12-05 14:28:02 -08:00
Garrett Moon
fd6ddbf508 Add assert for error to log webp error which seems to error often on CI 2015-12-05 14:18:47 -08:00
Garrett Moon
75283da491 Add asserts for timeouts so we understand why tests fail 2015-12-05 14:18:47 -08:00
Garrett Moon
77e3fe563a Need to release image if returning 2015-12-05 14:18:47 -08:00