forked from SDWebImage/SDWebImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
103 lines (88 loc) · 2.75 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
use_frameworks!
def all_example_pods
pod 'SDWebImage/MapKit', :path => './'
pod 'SDWebImageWebPCoder', :git => 'https://github.com/SDWebImage/SDWebImageWebPCoder.git', :branch => 'master'
end
def watch_example_pods
pod 'SDWebImage/Core', :path => './'
pod 'SDWebImageWebPCoder', :git => 'https://github.com/SDWebImage/SDWebImageWebPCoder.git', :branch => 'master'
end
def vision_example_pods
pod 'SDWebImage/MapKit', :path => './'
pod 'SDWebImageSwiftUI', :git => 'https://github.com/SDWebImage/SDWebImageSwiftUI.git', :branch => 'master'
end
def all_test_pods
pod 'SDWebImage/MapKit', :path => './'
# These two Pods seems no longer maintained...
pod 'Expecta', :podspec => 'Tests/Expecta.podspec'
pod 'KVOController', :podspec => 'Tests/KVOController.podspec'
end
example_project_path = 'Examples/SDWebImage Demo'
test_project_path = 'Tests/SDWebImage Tests'
workspace 'SDWebImage.xcworkspace'
# Example Project
target 'SDWebImage iOS Demo' do
project example_project_path
platform :ios, '9.0'
all_example_pods
end
target 'SDWebImage OSX Demo' do
project example_project_path
platform :osx, '10.11'
all_example_pods
end
target 'SDWebImage TV Demo' do
project example_project_path
platform :tvos, '9.0'
all_example_pods
end
target 'SDWebImage Watch Demo Extension' do
project example_project_path
platform :watchos, '2.0'
watch_example_pods
end
target 'SDWebImage Vision Demo' do
project example_project_path
platform :visionos, '1.0'
vision_example_pods
end
# Test Project
target 'Tests iOS' do
project test_project_path
platform :ios, '9.0'
all_test_pods
end
target 'Tests Mac' do
project test_project_path
platform :osx, '10.11'
all_test_pods
end
target 'Tests TV' do
project test_project_path
platform :tvos, '9.0'
all_test_pods
end
target 'Tests Vision' do
project test_project_path
platform :visionos, '1.0'
all_test_pods
end
# Inject macro during SDWebImage Demo and Tests
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.product_name == 'SDWebImage'
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