mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Fix build and podfile
This commit is contained in:
parent
0be51c1ca2
commit
820390e496
@ -51,7 +51,7 @@ Pod::Spec.new do |spec|
|
|||||||
|
|
||||||
spec.subspec 'PINRemoteImage' do |pin|
|
spec.subspec 'PINRemoteImage' do |pin|
|
||||||
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
|
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
|
||||||
pin.dependency 'PINRemoteImage'
|
pin.dependency 'PINRemoteImage', '>= 2'
|
||||||
pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
|
pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ typedef void(^ASImageCacherCompletion)(UIImage * _Nullable imageFromCache);
|
|||||||
|
|
||||||
@protocol ASImageCacheProtocol <NSObject>
|
@protocol ASImageCacheProtocol <NSObject>
|
||||||
|
|
||||||
@required
|
@optional
|
||||||
/**
|
/**
|
||||||
@deprecated This method is deprecated @see cachedImageWithURL:callbackQueue:completion: instead
|
@deprecated This method is deprecated @see cachedImageWithURL:callbackQueue:completion: instead
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -53,12 +53,12 @@
|
|||||||
*/
|
*/
|
||||||
- (nullable id)downloadImageWithURL:(NSURL *)URL
|
- (nullable id)downloadImageWithURL:(NSURL *)URL
|
||||||
callbackQueue:(dispatch_queue_t)callbackQueue
|
callbackQueue:(dispatch_queue_t)callbackQueue
|
||||||
downloadProgressBlock:(void (^)(CGFloat progress))downloadProgressBlock
|
downloadProgress:(void (^)(CGFloat progress))downloadProgressBlock
|
||||||
completion:(void (^)(CGImageRef image, NSError * error, id downloadIdentifier))completion
|
completion:(void (^)(UIImage *image, NSError * error, id downloadIdentifier))completion
|
||||||
{
|
{
|
||||||
return [[PINRemoteImageManager sharedImageManager] downloadImageWithURL:URL completion:^(PINRemoteImageManagerResult *result) {
|
return [[PINRemoteImageManager sharedImageManager] downloadImageWithURL:URL completion:^(PINRemoteImageManagerResult *result) {
|
||||||
dispatch_async(callbackQueue, ^{
|
dispatch_async(callbackQueue, ^{
|
||||||
completion([result.image CGImage], result.error, result.UUID);
|
completion(result.image, result.error, result.UUID);
|
||||||
});
|
});
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user