-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKBAPISupport.podspec
49 lines (42 loc) · 1.74 KB
/
KBAPISupport.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
45
46
47
48
49
class Pod::Specification
def kb_subspec (name, requires: nil, &block)
self.subspec name do |sspec|
sspec.source_files = "#{sspec.name}/{Public,Internal,Private}/*.{h,m,mm,swift}", "#{self.name}/Supporting Files/#{self.name}.h"
sspec.public_header_files = "#{sspec.name}/Public/*.h", "#{self.name}/Supporting Files/#{self.name}.h"
sspec.dependency "#{self.name}/#{requires}" if requires
yield sspec if block_given?
end
end
end
Pod::Spec.new do |spec|
spec.name = 'KBAPISupport'
spec.version = '4.0.0-b01'
spec.license = { :type => 'MIT' }
spec.homepage = "https://github.com/byss/#{spec.name}"
spec.authors = { 'Kirill byss Bystrov' => 'kirrbyss@gmail.com' }
spec.summary = 'Simple library for HTTP/HTTPS requests and parsing & mapping JSON/XML responses to native objects.'
spec.source = { :git => "#{spec.homepage}.git", :tag => "v#{spec.version}" }
spec.requires_arc = false
spec.frameworks = 'Foundation'
spec.swift_version = '4.2'
spec.ios.deployment_target = '10.0'
spec.tvos.deployment_target = '10.0'
spec.osx.deployment_target = '10.12'
spec.watchos.deployment_target = '4.0'
spec.module_map = "#{spec.name}/Supporting Files/#{spec.name}.modulemap"
spec.pod_target_xcconfig = {
'COPY_HEADERS_RUN_UNIFDEF' => 'YES',
'COPY_HEADERS_UNIFDEF_FLAGS' => '-U__cplusplus',
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++17',
}
spec.kb_subspec 'Core' do |sspec|
sspec.private_header_files = "#{sspec.name}/Internal/*.h"
end
spec.kb_subspec 'ObjC', :requires => 'Core'
spec.kb_subspec 'ImageLoading', :requires => 'Core' do |sspec|
sspec.ios.frameworks = 'UIKit'
sspec.tvos.frameworks = 'UIKit'
sspec.osx.frameworks = 'AppKit'
end
spec.default_subspecs = 'Core'
end