2024-02-07 18:14:15 +08:00
|
|
|
install! "cocoapods",
|
2024-02-24 12:55:46 +08:00
|
|
|
:generate_multiple_pod_projects => true
|
2024-02-07 18:14:15 +08:00
|
|
|
|
2020-04-07 20:22:25 +08:00
|
|
|
use_frameworks!
|
|
|
|
|
|
|
|
example_project_path = 'Example/SDWebImageWebPCoderExample'
|
|
|
|
test_project_path = 'Tests/SDWebImageWebPCoderTests'
|
|
|
|
workspace 'SDWebImageWebPCoder.xcworkspace'
|
|
|
|
|
|
|
|
target 'SDWebImageWebPCoderExample' do
|
2020-11-23 10:36:38 +08:00
|
|
|
platform :ios, '9.0'
|
2020-04-07 20:22:25 +08:00
|
|
|
project example_project_path
|
|
|
|
pod 'SDWebImageWebPCoder', :path => './'
|
|
|
|
end
|
|
|
|
|
2023-11-08 17:37:37 +08:00
|
|
|
target 'SDWebImageWebPCoderExample-macOS' do
|
2023-11-08 20:51:08 +08:00
|
|
|
platform :osx, '10.11'
|
2023-11-08 17:37:37 +08:00
|
|
|
project example_project_path
|
|
|
|
pod 'SDWebImageWebPCoder', :path => './'
|
|
|
|
end
|
|
|
|
|
2020-04-07 20:22:25 +08:00
|
|
|
target 'SDWebImageWebPCoderTests' do
|
2020-11-23 10:36:38 +08:00
|
|
|
platform :ios, '9.0'
|
2020-04-07 20:22:25 +08:00
|
|
|
project test_project_path
|
|
|
|
pod 'Expecta'
|
|
|
|
pod 'SDWebImageWebPCoder', :path => './'
|
|
|
|
end
|
2023-11-08 18:14:10 +08:00
|
|
|
|
|
|
|
target 'SDWebImageWebPCoderTests-macOS' do
|
2023-11-08 20:51:08 +08:00
|
|
|
platform :osx, '10.11'
|
2023-11-08 18:14:10 +08:00
|
|
|
project test_project_path
|
|
|
|
pod 'Expecta'
|
|
|
|
pod 'SDWebImageWebPCoder', :path => './'
|
|
|
|
end
|
2024-02-24 12:55:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|