Skip to content

Commit ad1c977

Browse files
committed
Update the version, organize the header files
1 parent 80de849 commit ad1c977

7 files changed

+13
-23
lines changed

Example/Podfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- SDWebImage/Core (5.0.0-beta)
3-
- SDWebImagePhotosPlugin (0.1.0):
2+
- SDWebImage/Core (5.0.0-beta3)
3+
- SDWebImagePhotosPlugin (0.1.1):
44
- SDWebImage/Core (~> 5.0.0-beta)
55

66
DEPENDENCIES:
@@ -16,12 +16,12 @@ EXTERNAL SOURCES:
1616

1717
CHECKOUT OPTIONS:
1818
SDWebImage:
19-
:commit: d5b60c6b39fdcd5d640ebf5c88b1279515291540
19+
:commit: d989549b34b7726651ff6bd5a9c63b7fb8ab3dec
2020
:git: https://github.com/rs/SDWebImage.git
2121

2222
SPEC CHECKSUMS:
23-
SDWebImage: 55c787b164fabe07f2a4d5307f6e1be7960fb9be
24-
SDWebImagePhotosPlugin: ec2740a8d70e7dc8ae05587dfd5408ffd3bf2d9f
23+
SDWebImage: e52654ceef9fdc19f4c612d64a5b6d3f05dd81a4
24+
SDWebImagePhotosPlugin: 4976eb48566aec15bbd0e6f92a4980570172eb12
2525

2626
PODFILE CHECKSUM: ba79f02637d8a9a6f597a92239ee648789cea74c
2727

SDWebImagePhotosPlugin.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SDWebImagePhotosPlugin'
11-
s.version = '0.1.0'
11+
s.version = '0.1.1'
1212
s.summary = 'A short description of SDWebImagePhotosPlugin.'
1313

1414
# This description is used to generate tags and improve search results.

SDWebImagePhotosPlugin/Classes/PHImageRequestOptions+SDWebImagePhotosPlugin.h

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
#import <Photos/Photos.h>
10-
#import "SDWebImagePhotosDefine.h"
1110

1211
// PHImageRequestOptions category to provide targetSize and contentMode when fetch Photos image asset
1312
@interface PHImageRequestOptions (SDWebImagePhotosPlugin)

SDWebImagePhotosPlugin/Classes/PHImageRequestOptions+SDWebImagePhotosPlugin.m

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
#import "PHImageRequestOptions+SDWebImagePhotosPlugin.h"
10+
#import "SDWebImagePhotosDefine.h"
1011
#import <SDWebImage/SDWebImage.h>
1112
#import <objc/runtime.h>
1213

SDWebImagePhotosPlugin/Classes/SDWebImagePhotosLoader.h

+4-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
*/
88

99
#import <SDWebImage/SDWebImage.h>
10-
11-
#if SD_UIKIT || SD_MAC
12-
1310
#import <Photos/Photos.h>
14-
#import "NSURL+SDWebImagePhotosPlugin.h"
15-
#import "PHImageRequestOptions+SDWebImagePhotosPlugin.h"
11+
#import "SDWebImagePhotosDefine.h"
1612

17-
// The imgae loader to load image asset from Photos library. To control single image request options, use the context option in `SDWebImagePhotosDefine.h`.
18-
// @note Use `NSURL+SDWebImagePhotosPlugin.h` category to create Photos URL instead of string.
13+
// The imgae loader to load image asset from Photos library. You need to register the loader into manager firstly. Use `@import SDWebImagePhotosPlugin` to import full framework instead of each header.
14+
// @note To control single image request options, use the context option in `SDWebImagePhotosDefine.h`.
15+
// @note Use `NSURL+SDWebImagePhotosPlugin.h` category to create Photos URL instead of string. Use `PHImageRequestOptions+SDWebImagePhotosPlugin.h` category to provide extra info for request options.
1916
// @note And it's also strongly recommeded to totally disable memory cache if you want to query batch of Photos images frequently. You can do this by using `SDWebImageFromLoaderOnly` options during image request. And you can use `SDWebImageContextStoreCacheType` with `SDImageCacheTypeNone` to disable cache storing. This is because Photos framework manage the image cache by their own process outside your application process and can reduce memory usage.
2017

2118
@interface SDWebImagePhotosLoader : NSObject <SDImageLoader>
@@ -42,5 +39,3 @@
4239
@property (nonatomic, strong, nullable) PHImageRequestOptions *imageRequestOptions;
4340

4441
@end
45-
46-
#endif

SDWebImagePhotosPlugin/Classes/SDWebImagePhotosLoader.m

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
*/
88

99
#import "SDWebImagePhotosLoader.h"
10-
11-
#if SD_UIKIT || SD_MAC
12-
10+
#import "NSURL+SDWebImagePhotosPlugin.h"
1311
#import "PHImageRequestOptions+SDWebImagePhotosPlugin.h"
1412
#import "SDWebImagePhotosError.h"
1513
#import <objc/runtime.h>
@@ -321,6 +319,3 @@ - (void)fetchImageDataWithAsset:(PHAsset *)asset operation:(SDWebImagePhotosLoad
321319
}
322320

323321
@end
324-
325-
#endif
326-

SDWebImagePhotosPlugin/Module/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.1.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)