-
Notifications
You must be signed in to change notification settings - Fork 176
/
Cuckoo.podspec
44 lines (40 loc) · 1.98 KB
/
Cuckoo.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
Pod::Spec.new do |s|
s.name = 'Cuckoo'
s.version = '2.0.10'
s.summary = 'Cuckoo - first boilerplate-free Swift mocking framework.'
s.description = <<-DESC
Cuckoo is a mocking framework with an easy to use API (inspired by Mockito).
It generates mocks and some helper structures automatically to enable this functionality.
DESC
s.homepage = 'https://github.com/Brightify/Cuckoo'
s.license = 'MIT'
s.author = { 'Matyas Kriz' => '[email protected]', 'Tadeas Kriz' => '[email protected]', 'Filip Dolnik' => '[email protected]' }
s.source = { :git => 'https://github.com/Brightify/Cuckoo.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '11'
#s.watchos.deployment_target = '2.0' # watchos does not include XCTest framework :(
s.tvos.deployment_target = '13.0'
generator_name = 'cuckoonator'
s.swift_version = '5.0'
s.preserve_paths = ['Generator/**/*', 'version', 'run', 'build_generator', generator_name]
s.prepare_command = <<-CMD
curl -Lo #{generator_name} https://github.com/Brightify/Cuckoo/releases/download/#{s.version}/#{generator_name}
chmod +x #{generator_name}
CMD
s.frameworks = 'XCTest', 'Foundation'
s.requires_arc = true
s.pod_target_xcconfig = {
'ENABLE_BITCODE' => 'NO',
'SWIFT_REFLECTION_METADATA_LEVEL' => 'none',
'OTHER_LDFLAGS' => '$(inherited) -weak-lXCTestSwiftSupport',
}
s.default_subspec = 'Swift'
s.subspec 'Swift' do |sub|
sub.source_files = 'Source/**/*.swift'
end
s.subspec 'OCMock' do |sub|
sub.source_files = 'OCMock/**/*.{h,m,swift}'
sub.dependency 'Cuckoo/Swift'
sub.dependency 'OCMock', '3.9.3'
end
end