Commit Graph

1007 Commits

Author SHA1 Message Date
Bogdan Poplauschi d75bc2765d Updated the podspec so the GIF+FLAnimatedImage is a separate subspec 2016-06-01 10:10:46 +03:00
Bogdan Poplauschi 8a488d377b Updated the example project so it supports the animated images as well. 2016-06-01 10:06:37 +03:00
Bogdan Poplauschi 4df3934954 Added the FLAnimatedImageView category to the project and made the FLAnimatedImage headers public 2016-06-01 10:06:19 +03:00
Bogdan Poplauschi f6cd50bb65 Converted our example xibs to the new Xcode format 2016-06-01 10:05:40 +03:00
Bogdan Poplauschi c1451f28af Built a FLAnimatedImageView category that hooks this class to the SDWebImage system. It's very similar to UIImageView (WebCache). There are explicit methods for loading an animated image. 2016-06-01 10:05:16 +03:00
Bogdan Poplauschi 881da8fbe0 Corrected comment (was changed unintentionally). 2016-06-01 10:02:41 +03:00
Bogdan Poplauschi 32f4e4d234 Updated the doc with the new completion type (SDWebImageManager loadImageWithURL) 2016-06-01 10:02:20 +03:00
Bogdan Poplauschi ada86ab939 Based on the previous change, we now can avoid the memory cache for GIFs, as the memory cache only holds UIImage instances and we need the NSData. Forced to load from disk if the image is a GIF 2016-06-01 09:45:13 +03:00
Bogdan Poplauschi 9ea1602157 Changed the current internal GIF implementation. We will only return an UIImage with a single animated frame (basically a static image). We do set it in the images array so we can distinguish between those and real static images. Dropped all other GIF code. 2016-06-01 09:43:53 +03:00
Bogdan Poplauschi debc0d4827 Exposed the activity indicator methods from UIImageView+WebView so we can use them in a future category 2016-06-01 09:42:39 +03:00
Bogdan Poplauschi 8f4a9dae2d For consistency with the previous change, also renamed `SDWebImageCompletionBlock` to `SDExternalCompletionBlock` 2016-06-01 09:41:44 +03:00
Bogdan Poplauschi aecb13d421 Extended the SDWebImageManager `loadImageWithURL:options:progress:completed:` so it also returns the NSData (we will need it later for the GIF images).
- had to add an NSData param to `SDWebImageCompletionWithFinishedBlock `, so to make it simpler see this change for users, renamed the block type to `SDInternalCompletionBlock`
- pass the NSData from the ImageCache or the Downloader
- updated all classes using this method with the new signature
2016-06-01 09:40:36 +03:00
Bogdan Poplauschi e775b444ef Extended the SDImageCache `queryDiskCacheForKey:done:` so it also returns the NSData (we will need it later for the GIF images).
- had to add an NSData param to `SDWebImageQueryCompletedBlock`, so to make it simpler see this change for users, renamed the block type to `SDCacheQueryCompletedBlock`
- pass the NSData when getting the image from disk cache
2016-06-01 09:35:36 +03:00
Bogdan Poplauschi b4659f7648 Added FLAnimatedImage to the project. Had to bump the deployment target to 6.0 since FLAnimatedImage only supports iOS 6 and later. 2016-06-01 07:01:16 +03:00
Bogdan Poplauschi 81df4611a1 Added FLAnimatedImage as submodule 2016-06-01 06:54:38 +03:00
Bogdan Poplauschi 22fded56cf Fixed #1573 - Update to cc510a6 - Cached file name with path extension UIWebView issue - for iOS 7 and above, remove the query from the url (prior to iOS 7 the behavior remains the same). 2016-06-01 06:43:42 +03:00
Bogdan Poplauschi 9112170ea3 Replaces #1398 Allow to customise cache and image downloader instances used with SDWebImageManager - added a new initializer (`initWithCache:downloader:`) 2016-06-01 06:43:39 +03:00
Bogdan Poplauschi 795832aadc Fixed #1415 documentation was not updated when `removeImageForKey:` became async 2016-06-01 06:40:36 +03:00
Bogdan Poplauschi fb0cdb6dc4 Fixed #1553 Cached file name with path extension UIWebView issue - for iOS 7 and above, remove the query from the url (prior to iOS 7 the behavior remains the same). 2016-06-01 06:40:31 +03:00
Bogdan Poplauschi b5a504f326 Trying to get around this last build error "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “www.google.gr” which could put your confidential information at risk." by using a different image 2016-05-29 13:08:29 +03:00
Bogdan Poplauschi 512c536fcf The pod setup output is huge with CocoaPods 1.0.0 (10.000+ lines), causes Travis to "This log is too long to be displayed. Please reduce the verbosity of your build or download the raw log." 2016-05-29 13:08:15 +03:00
Bogdan Poplauschi d625be8d98 Need to clean the SDWebImage scheme to allow the tests to rebuild it using their required platform. 2016-05-29 00:53:49 +03:00
Bogdan Poplauschi e9e7edffde Fixed #1444 and the master build thanks to 5034c334be 2016-05-28 22:53:38 +03:00
Bogdan Poplauschi 4d295fdaf0 Improved the formatting of the Readme/Communication section 2016-05-28 22:08:31 +03:00
Bogdan Poplauschi 9aa95e83b9 Added Communication section to the readme 2016-05-28 21:52:11 +03:00
Bogdan Poplauschi 842d6aac7b Added CONTRIBUTING, ISSUE and PULL_REQUEST TEMPLATE 2016-05-28 21:48:23 +03:00
Bogdan Poplauschi 64382b9100 Modern Objective-C syntax 2016-05-23 07:58:02 +03:00
Bogdan Poplauschi 8a78586d4e Update to <Fix multiple requests for same image and then canceling one> feature - exposed the SDWebImageDownloadToken class 2016-05-23 07:38:48 +03:00
Bogdan Poplauschi 13cfc5b89a Merge pull request #883 from mattjgalloway/fix_multiple_downloads
Fix multiple requests for same image and then canceling one
2016-05-23 07:13:01 +03:00
Bogdan Poplauschi 162174ccc1 Updated the diagrams + new sequence diagram 2016-05-17 19:02:45 +03:00
Bogdan Poplauschi aa1d2905c9 Created a Docs folder with md files and the diagrams. Moved all the HowToUse code samples to a dedicated file (HowToUse.md) to lighten up the Readme. 2016-05-10 08:50:55 +03:00
Bogdan Poplauschi 123f2fd2e6 Updated docs - tried to cleanup the readme, reorder based on other great projects examples and include the diagram 2016-05-10 08:39:46 +03:00
Bogdan Poplauschi 503d3aed27 Schemes update (naming) 2016-05-10 08:37:12 +03:00
Bogdan Poplauschi 572f26af27 Updated the diagrams 2016-05-10 08:36:50 +03:00
Bogdan Poplauschi 6279424b1c Added 1st version of design (StarUML) 2016-05-08 23:58:26 +03:00
Bogdan Poplauschi 718cbcad3e The tests target should also use xcpretty 2016-05-08 23:41:31 +03:00
Bogdan Poplauschi 3902ed7dec Fixed the build (the test target cannot do clean) 2016-05-08 23:29:29 +03:00
Bogdan Poplauschi 7913b45fae Added the missing Tests scheme 2016-05-08 23:14:48 +03:00
Bogdan Poplauschi 56c1ba63ad Cleanup for the Travis CI config file 2016-05-08 23:04:40 +03:00
Bogdan Poplauschi e3ba4110a9 Renamed the schemes for consistency, dynamic frameworks are named SDWebImage instead of WebImage. Updated the Tests Podfile + project. Renamed the WebImage.h to SDWebImage.h to match the framework naming 2016-05-08 22:59:32 +03:00
Bogdan Poplauschi 2a29f4a0b7 Added the WebP files to the WebImage.framework target. Removed some old hack to define empty WebP methods (see #416), will re-add it if needed, right now it prevents the dynamic framework to build.
Sample app links the libSDWebImage.a
2016-05-08 22:41:33 +03:00
Bogdan Poplauschi 260a6f5234 Cleaning up the targets so they are easier to maintain. Right now the plan is to have:
- SDWebImage target that build as a static library (all subspecs included) -> libSDWebImage.a
- in the next step I will create "SDWebImageiOS" and "SDWebImagetvOS" targets that build as dynamic frameworks -> SDWebImageiOS.framework and SDWebImagetvOS.framework
2016-05-08 21:59:15 +03:00
Bogdan Poplauschi a32a1775c2 Renamed SDWebImageManager `downloadImageWithURL:options:progress:completed:` to `loadImageWithURL:options:progress:completed:` as it makes more sense, since we check the cache first and download only if needed
Conflicts:
	SDWebImage/UIImageView+WebCache.m
2016-05-08 21:16:23 +03:00
Bogdan Poplauschi 0384a059c4 Fixed #774 - remove deprecated methods. Since 4.0 is a major release, we don't need the backwards compatible methods
Conflicts:
	SDWebImage/UIImageView+WebCache.h
	SDWebImage/UIImageView+WebCache.m
2016-05-08 21:13:52 +03:00
Bogdan Poplauschi edb4bc3554 Updated the changelog 2016-05-08 19:49:06 +03:00
Bogdan Poplauschi 990f85bce2 Bumped version to 3.7.6 2016-05-08 19:32:10 +03:00
Bogdan Poplauschi b40124c95d Fixed #1449: Version 3.7.5 breaks semantic versioning (removes public API). Re-added `sd_setImageWithPreviousCachedImageWithURL:andPlaceholderImage:options:progress:completed:` and deprecated it. Will remove it in 4.0.0 2016-05-08 19:00:39 +03:00
Bogdan Poplauschi 371533549c Merge pull request #1453 from Mutix/master
Added API to save image NSData to disk cache.
2016-05-08 18:53:26 +03:00
Bogdan Poplauschi d4d11ef0b0 Merge pull request #1461 from jawwad/patch-1
Improve documentation for SDWebImageHighPriority
2016-05-08 18:43:52 +03:00
Bogdan Poplauschi d6d9a5c233 Merge pull request #1504 from siburb/master
Added "cancelAllDownloads" method to SDWebImageDownloader.
2016-05-08 18:41:36 +03:00