mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-09 15:51:05 +00:00
Don't return non-animated GIFs for animation (update to latest PINRemoteImage beta) (#940)
* Don't return non-animated GIFs for animation * Update to latest PINRemoteImage beta
This commit is contained in:
parent
efeb3d2749
commit
999cb6e485
4
Cartfile
4
Cartfile
@ -1,2 +1,2 @@
|
||||
github "pinterest/PINRemoteImage" "3.0.0-beta.13"
|
||||
github "pinterest/PINCache" "3.0.1-beta.6"
|
||||
github "pinterest/PINRemoteImage" "3.0.0-beta.14"
|
||||
github "pinterest/PINCache" "3.0.1-beta.7"
|
||||
|
||||
2
Podfile
2
Podfile
@ -8,7 +8,7 @@ target :'AsyncDisplayKitTests' do
|
||||
pod 'JGMethodSwizzler', :git => 'https://github.com/JonasGessner/JGMethodSwizzler', :branch => 'master'
|
||||
|
||||
# Only for buck build
|
||||
pod 'PINRemoteImage', '3.0.0-beta.13'
|
||||
pod 'PINRemoteImage', '3.0.0-beta.14'
|
||||
end
|
||||
|
||||
#TODO CocoaPods plugin instead?
|
||||
|
||||
@ -332,7 +332,7 @@ static dispatch_once_t shared_init_predicate;
|
||||
- (id)alternateRepresentationWithData:(NSData *)data options:(PINRemoteImageManagerDownloadOptions)options
|
||||
{
|
||||
#if PIN_ANIMATED_AVAILABLE
|
||||
if ([data pin_isGIF]) {
|
||||
if ([data pin_isAnimatedGIF]) {
|
||||
return data;
|
||||
}
|
||||
#if PIN_WEBP_AVAILABLE
|
||||
|
||||
@ -39,7 +39,7 @@ Pod::Spec.new do |spec|
|
||||
end
|
||||
|
||||
spec.subspec 'PINRemoteImage' do |pin|
|
||||
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.13'
|
||||
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.14'
|
||||
pin.dependency 'PINRemoteImage/PINCache'
|
||||
pin.dependency 'Texture/Core'
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user