Commit Graph

156 Commits

Author SHA1 Message Date
Bogdan Poplauschi 0869c6915d Added PNG image to demo app 2016-09-23 20:12:13 +03:00
Bogdan Poplauschi 5851f78aee Fixed issue "The value of CFBundleVersion in your WatchKit app's Info.plist (1) does not match the value in your companion app's Info.plist (1.0). There values are required to match" 2016-06-14 23:10:33 +03:00
Bogdan Poplauschi 8e81f4273f Added the osx platform to the podspec and set the osx deployment target to 10.8 because of some compiler issues (pod lib lint) 2016-06-13 09:47:09 +03:00
Bogdan Poplauschi 13cfa24cfe Proper file header copyright 2016-06-13 09:14:02 +03:00
Bogdan Poplauschi a4da728a08 Updated deployment targets for the Demo project (no longer project level iOS target, set watch to 2.0 and appletv to 9.0) 2016-06-13 08:55:05 +03:00
Bogdan Poplauschi ac36b84463 Update on the libSDWebImage.a rename to libSDWebImage iOS static.a 2016-06-13 01:23:39 +03:00
Bogdan Poplauschi f5171b3ba8 Added tvOS demo 2016-06-13 01:13:46 +03:00
Bogdan Poplauschi 683c7edce5 watchOS Demo, created a static watchos lib target, renamed static SDWebImage to "SDWebImage iOS static", added the webp files to all targets (as libwebp is compatible with all 4 platforms). Updated Travis CI 2016-06-13 00:53:08 +03:00
Bogdan Poplauschi 442b134206 OSX Example 2016-06-13 00:09:55 +03:00
Bogdan Poplauschi cc7fa8fd93 Projects cleanup, properly set targeted device family, sdkroot and supported platforms. Tried not to set things on the project level that need redefinition at the target level 2016-06-12 21:10:18 +03:00
Bogdan Poplauschi 7684fbd9a7 Merge branch '4.x' into gif
# Conflicts:
#	SDWebImage.xcodeproj/project.pbxproj
2016-06-07 08:39:17 +03:00
Bogdan Poplauschi 3364a981d5 Merge branch 'master' into 4.x
+ SDWebImageDownloader downloadImageWithURL:... properly use the weakself-strongself pattern

# Conflicts:
#	.travis.yml
#	Examples/SDWebImage Demo.xcodeproj/project.pbxproj
#	README.md
#	SDWebImage.xcodeproj/project.pbxproj
#	SDWebImage/SDWebImageDownloader.m
#	SDWebImage/SDWebImageDownloaderOperation.h
#	SDWebImage/SDWebImageDownloaderOperation.m
#	SDWebImage/SDWebImageManager.m
#	Tests/Podfile
#	Tests/SDWebImage Tests.xcodeproj/project.pbxproj
2016-06-07 08:36:45 +03:00
Bogdan Poplauschi 6545a3aba1 Bumped the deployment target to iOS 7 (due to NSURLSession) and also incremented the library version to 3.8.0 2016-06-02 19:10:31 +03:00
Bogdan Poplauschi 94c1ec3ed0 Revisited all copyright comments and decided for just one format 2016-06-01 15:53:08 +03:00
Bogdan Poplauschi 44cb993ee9 Successfull attempt to override the UIImageView(WebCache) methods in the FLAnimatedImageView(WebCache) category. This should make the integration easier. Not sure if it will always work 2016-06-01 10:11: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 f6cd50bb65 Converted our example xibs to the new Xcode format 2016-06-01 10:05:40 +03:00
Bogdan Poplauschi 64382b9100 Modern Objective-C syntax 2016-05-23 07:58:02 +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 b426975b9f Replaced the demo images from static2.dmcdn.net that were no longer working with the demo images from FastImageCache 2016-01-21 15:36:36 +02:00
jiangliancheng 1aefd45a6b add example for animated webP 2016-01-15 23:48:44 +08:00
Bogdan Poplauschi 32923fa2e8 Xcode 7.1 updates 2015-10-25 15:58:45 +02:00
Serban Mihai 7ba8208f17 iOS 9 App Transport Security Demo Target
fixed ios 9 load images caused by new App Transport Security feature
2015-10-15 16:46:40 +03:00
mythodeia c68d585e49 activity indicator added
```
[cell.imageView setShowActivityIndicatorView:YES];
[cell.imageView setIndicatorStyle:UIActivityIndicatorViewStyleGray];
```
2015-07-15 10:50:04 +03:00
Tony cee50eb648 Add url as param to progress block 2014-12-13 13:01:24 +08:00
Bogdan Poplauschi 6698910fe1 Revert "Loading Indicator view with 2 lines of code"
This reverts commit 2cfa5ccb88.
2014-11-06 19:59:27 +02:00
mythodeia 2cfa5ccb88 Loading Indicator view with 2 lines of code
added support for UIActivityIndicatorView while the image is
downloaded, without adding extra ‘setImageWithUrl’ methods to the
UIImageView+WebCache category.
I used [this pull
request](https://github.com/mythodeia/UIActivityIndicator-for-SDWebImage
), original author is [JJSaccolo](https://github.com/JJSaccolo), and
modded it a bit to support loading indicator while the image is
downloading.

the usage is basically this right before the usual sd_setImage...
methods:
```
        // show activity indicator
        [cell.imageView setShowActivityIndicatorView:YES];
        // choose indicator style
        [cell.imageView
setIndicatorStyle:UIActivityIndicatorViewStyleGray];
```
2014-11-06 19:26:44 +02:00
Bogdan Poplauschi 87384290a4 Moved all schemes to the workspace container plus created scheme for Tests 2014-11-04 12:45:04 +02:00
Bogdan Poplauschi 50c4d1d2eb Implemented NTLM auth support. Replaced deprecated auth challenge methods from `NSURLConnectionDelegate`. Replaces #711.
- added `username` and `password` properties on `SDWebImageDownloader`
- added `shouldUseCredentialStorage` and `credential` properties on `SDWebImageDownloaderOperation`
- `SDWebImageDownloaderOperation` conforms to `NSURLConnectionDataDelegate` (it used to implement the methods, but didn't stated the protocol in the declaration)
- removed deprecated methods: `- connection:canAuthenticateAgainstProtectionSpace:` and `- connection:didReceiveAuthenticationChallenge:` with `- connectionShouldUseCredentialStorage:` and `- connection:willSendRequestForAuthenticationChallenge:`
- updated demo project to download one image the requires HTTP auth
2014-06-23 21:57:33 +03:00
Bogdan Poplauschi e5faad0026 Reverted demo project referencing source files directly. Re-added SDWebImage project as subproject 2014-06-20 18:04:06 +03:00
Bogdan Poplauschi 60b043755f Created a SDWebImage workspace with the 2 existing projects, fixed the demo project so it directly references the source files. Shared a demo project scheme 2014-06-20 16:41:53 +03:00
Bogdan Poplauschi fe4b3a088a Fixed warnings from demo project (started using the new methods, the ones with the sd_ prefix). 2014-06-20 10:07:12 +03:00
Bogdan Poplauschi e4b9ef512b Fixed a warning in the demo project 2014-06-19 10:21:09 +03:00
Fabrice Aneche 8b16de2575 fix demo 2014-01-15 10:25:14 -08:00
Olivier Poitrey 5df0eafc92 Fix WebP target 2013-10-04 11:43:27 -07:00
Olivier Poitrey 04fa4c97b5 Add WebP format support (fix #410)
How awesome is that?! =)
2013-06-07 20:43:51 +02:00
Salvatore Randazzo 447f1ccc23 Custom image cache search paths
This is particularly useful if you are bundling images with your app that have been cached by SDWebImage. (ie. if you are 'seeding' your app with a core-data file that contains a lot of URL's to images and would like to also seed those images without having to copy every one of them over)

For example, you can tell SDImageCache to add '[[NSBundle mainBundle] resourcePath]' as a custom path, so that the main bundle will be queried for cached images.

This prevents the need for you to copy pre-cached images over to the caches/ImageCache folder that SDImageCache normally checks for.

The custom paths are read-only.
2013-06-07 17:57:28 +02:00
Andy LaVoy 3f98095704 support GIFs 2013-04-28 14:06:54 -07:00
Andrew Vyazovoy c77652755a Potential strong cycle fixed. 2013-03-27 23:44:47 +07:00
Andrew Vyazovoy ee9af6406c SDWebImageDownloaderQueueMode type renamed. Fixed typo. Added description for renamed type. Type renamed because "queue" notion is a FIFO only, but LIFO is a stack, and if we give the type a neutral name, we can avoid logical inconsistencies. 2013-03-27 23:43:42 +07:00
Olivier Poitrey 8cfd26f78b Disable duplicate disk cache prevention with SDWebImageRefreshCached to handle 302 caching correctly
See https://github.com/rs/SDWebImage/pull/326#issuecomment-14791505 for more info
2013-03-12 19:26:53 +01:00
Olivier Poitrey f024890ba7 Add (kinda) LIFO queue mode support for image downloading (fix #294) 2013-02-17 03:02:04 +01:00
Olivier Poitrey 6f198abd1b Add ability to set custom downloader HTTP headers (fix #171) 2013-02-16 23:33:41 +01:00
Olivier Poitrey 1ec36c7c99 Do not init an activity indictor if image isn't downloading in demo app (good practice) 2012-11-19 18:30:31 +01:00
Olivier Poitrey 6e99059007 Fix demo app regarding last changes 2012-11-19 16:58:45 +01:00
Olivier Poitrey 0920e7a001 Add activity indicator demo 2012-11-13 18:09:39 +01:00
Olivier Poitrey 73df9d7281 Track leaks 2012-11-05 23:05:54 +01:00
Olivier Poitrey f7d0f1d12f Fix example app 2012-11-05 20:38:31 +01:00
Olivier Poitrey 9df9bf8498 Fix example app 2012-11-02 01:24:09 +01:00
Olivier Poitrey ab07f23fbc Fix #200 crash on archived builds 2012-10-23 15:50:53 +02:00
Olivier Poitrey 34f18e012f Add a dedicated target with MKAnnotation category
This free other targets from unwanted MapKit framework requirement
2012-06-25 14:55:12 +02:00
Olivier Poitrey b357e8210c Add a dedicated target with MKAnnotation category
This free other targets from unwanted MapKit framework requirement
2012-06-05 23:31:27 +02:00
Olivier Poitrey aa64d20128 Fix README for static library instruction with archiving 2012-05-16 20:42:19 +02:00
Olivier Poitrey fc24642149 Fix ARC warning (fix #116) 2012-05-12 00:25:17 +02:00
Olivier Poitrey 110799614f Add appledoc comments 2012-05-10 14:07:38 +02:00
Olivier Poitrey ea819b2a45 Rework static library settings and documentation and add an example project
Inspired by http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules
2012-05-10 00:30:48 +02:00