forked from MakeAWishFoundation/SwiftyMocky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwiftyMocky.podspec
44 lines (39 loc) · 1.84 KB
/
SwiftyMocky.podspec
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
#
# Be sure to run `pod lib lint Mocky.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'SwiftyMocky'
s.version = '2.0.0'
s.summary = 'Unit testing library for Swift, with mock generation. Adds a set of handy methods, simplifying testing.'
s.description = <<-DESC
Library that uses metaprogramming technique to generate mocks based on sources, that makes testing for Swift Mockito-like.
DESC
s.homepage = 'https://github.com/MakeAWishFoundation/SwiftyMocky'
s.screenshots = 'https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/1.0.0/icon.png'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Przemysław Wośko' => '[email protected]', 'Andrzej Michnia' => '[email protected]' }
s.source = { :git => 'https://github.com/MakeAWishFoundation/SwiftyMocky.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.macos.deployment_target = '10.9'
s.default_subspec = "Core"
s.preserve_paths = '*'
s.subspec 'Core' do |core|
core.source_files = 'Sources/Classes/**/*'
core.resources = '{Sources/Templates/*,get_sourcery.sh}'
core.xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DMocky' }
core.frameworks = 'Foundation'
core.dependency 'Sourcery'
end
s.subspec 'Custom' do |custom|
custom.source_files = 'Sources/Classes/**/*'
custom.resources = '{Sources/Templates/*,get_sourcery.sh}'
custom.xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DMockyCustom' }
custom.frameworks = 'Foundation'
custom.dependency 'Sourcery'
end
end