-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFactoryProvider.podspec
32 lines (30 loc) · 1.55 KB
/
FactoryProvider.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
Pod::Spec.new do |s|
s.name = "FactoryProvider"
s.version = "0.5.2"
s.summary = "FactoryProvider - generate boilerplate of factory Swift framework."
s.description = <<-DESC
FactoryProvider is a framework to generate boilerplate of factory with an easy to write TestCase.
It generates factories automatically to enable this functionality.
DESC
s.homepage = "https://github.com/Nonchalant/FactoryProvider"
s.license = 'MIT'
s.author = { "Takeshi Ihara" => "[email protected]" }
s.source = {
:git => "https://github.com/Nonchalant/FactoryProvider.git",
:tag => s.version.to_s
}
s.ios.deployment_target = '8.0'
# s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.source_files = ['Source/**/*.swift']
generator_name = 'generate'
s.preserve_paths = ['Generator/**/*', generator_name]
s.prepare_command = <<-CMD
curl -Lo #{generator_name} https://github.com/Nonchalant/FactoryProvider/releases/download/#{s.version}/#{generator_name}
chmod +x #{generator_name}
CMD
s.frameworks = 'Foundation'
s.requires_arc = true
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO', 'SWIFT_REFLECTION_METADATA_LEVEL' => 'none' }
end