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:
Garrett Moon 2019-02-21 15:21:19 -08:00 committed by GitHub
parent efeb3d2749
commit 999cb6e485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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?

View File

@ -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

View File

@ -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