mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-24 04:15:32 +08:00
Fixes webp integration for CocoaPods > 1.0. Thanks to SDWebImage for the solution and @yxztj to pointing it out! (#226)
This commit is contained in:
@@ -11,8 +11,6 @@ env:
|
||||
- OS='latest' name='iPhone 6'
|
||||
|
||||
before_install:
|
||||
- gem uninstall cocoapods --version '>0.39.0'
|
||||
- gem install cocoapods -v '0.39.0'
|
||||
- gem install xcpretty
|
||||
before_script:
|
||||
- pod --version
|
||||
|
||||
@@ -62,7 +62,10 @@ Pod::Spec.new do |s|
|
||||
end
|
||||
|
||||
s.subspec 'WebP' do |webp|
|
||||
webp.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_WEBP=1' }
|
||||
webp.xcconfig = {
|
||||
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_WEBP=1',
|
||||
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
|
||||
}
|
||||
webp.dependency 'PINRemoteImage/Core'
|
||||
webp.dependency 'libwebp'
|
||||
end
|
||||
|
||||
@@ -9,11 +9,7 @@
|
||||
#import "PINImage+WebP.h"
|
||||
|
||||
#ifdef PIN_WEBP
|
||||
#if !COCOAPODS
|
||||
#import "webp/decode.h"
|
||||
#else
|
||||
#import "libwebp/webp/decode.h"
|
||||
#endif
|
||||
|
||||
static void releaseData(void *info, const void *data, size_t size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user