2019-06-17 15:58:49 +08:00
|
|
|
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 all_test_pods
|
|
|
|
pod 'SDWebImage/MapKit', :path => './'
|
|
|
|
pod 'Expecta'
|
|
|
|
pod 'KVOController'
|
2021-10-07 19:15:19 +08:00
|
|
|
pod 'SDWebImageWebPCoder', :git => 'https://github.com/SDWebImage/SDWebImageWebPCoder.git', :branch => 'master'
|
2019-06-17 15:58:49 +08:00
|
|
|
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
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :ios, '9.0'
|
2019-06-17 15:58:49 +08:00
|
|
|
all_example_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
target 'SDWebImage OSX Demo' do
|
|
|
|
project example_project_path
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :osx, '10.11'
|
2019-06-17 15:58:49 +08:00
|
|
|
all_example_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
target 'SDWebImage TV Demo' do
|
|
|
|
project example_project_path
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :tvos, '9.0'
|
2019-06-17 15:58:49 +08:00
|
|
|
all_example_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
target 'SDWebImage Watch Demo Extension' do
|
|
|
|
project example_project_path
|
|
|
|
platform :watchos, '2.0'
|
|
|
|
watch_example_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
# Test Project
|
2019-10-28 13:18:12 +08:00
|
|
|
target 'Tests iOS' do
|
2019-06-17 15:58:49 +08:00
|
|
|
project test_project_path
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :ios, '9.0'
|
2019-06-17 15:58:49 +08:00
|
|
|
all_test_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
target 'Tests Mac' do
|
|
|
|
project test_project_path
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :osx, '10.11'
|
2019-06-17 15:58:49 +08:00
|
|
|
all_test_pods
|
|
|
|
end
|
2019-10-27 22:25:02 +08:00
|
|
|
|
|
|
|
target 'Tests TV' do
|
|
|
|
project test_project_path
|
2020-11-20 16:06:34 +08:00
|
|
|
platform :tvos, '9.0'
|
2019-10-27 22:25:02 +08:00
|
|
|
all_test_pods
|
|
|
|
end
|