-
Notifications
You must be signed in to change notification settings - Fork 86
/
Podfile
57 lines (49 loc) · 1.79 KB
/
Podfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
install! "cocoapods",
:generate_multiple_pod_projects => true
use_frameworks!
example_project_path = 'Example/SDWebImageWebPCoderExample'
test_project_path = 'Tests/SDWebImageWebPCoderTests'
workspace 'SDWebImageWebPCoder.xcworkspace'
target 'SDWebImageWebPCoderExample' do
platform :ios, '9.0'
project example_project_path
pod 'SDWebImageWebPCoder', :path => './'
end
target 'SDWebImageWebPCoderExample-macOS' do
platform :osx, '10.11'
project example_project_path
pod 'SDWebImageWebPCoder', :path => './'
end
target 'SDWebImageWebPCoderTests' do
platform :ios, '9.0'
project test_project_path
pod 'Expecta'
pod 'SDWebImageWebPCoder', :path => './'
end
target 'SDWebImageWebPCoderTests-macOS' do
platform :osx, '10.11'
project test_project_path
pod 'Expecta'
pod 'SDWebImageWebPCoder', :path => './'
end
# Inject macro during SDWebImage Demo and Tests
post_install do |installer_representation|
installer_representation.generated_projects.each do |project|
project.targets.each do |target|
if target.product_name == 'SDWebImageWebPCoder'
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) SD_CHECK_CGIMAGE_RETAIN_SOURCE=1'
end
else
target.build_configurations.each do |config|
# Override the min deployment target for some test specs to workaround `libarclite.a` missing issue
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.11'
config.build_settings['TVOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '2.0'
config.build_settings['XROS_DEPLOYMENT_TARGET'] = '1.0'
end
end
end
end
end