-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathNBClient.podspec
49 lines (45 loc) · 1.43 KB
/
NBClient.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
Pod::Spec.new do |s|
s.name = 'NBClient'
s.version = '1.3.1'
s.license = 'MIT'
s.summary = 'An iOS client to the NationBuilder API.'
s.homepage = 'https://github.com/nationbuilder/nationbuilder-ios'
s.authors = { 'Peng Wang' => '[email protected]' }
s.source = { git: 'https://github.com/nationbuilder/nationbuilder-ios.git', tag: s.version.to_s }
# Platform
s.platform = :ios
s.ios.deployment_target = '9.0'
# Build settings
s.requires_arc = true
s.subspec 'Core' do |sp|
# Build settings
sp.dependency 'NBClient/Locale'
sp.frameworks = ['Security', 'UIKit']
# File patterns
sp.source_files = 'NBClient/NBClient/*.{h,m}'
sp.exclude_files = 'NBClient/UI'
sp.private_header_files = 'NBClient/NBClient/*_Internal.h'
end
s.subspec 'UI' do |sp|
# Build settings
sp.dependency 'NBClient/Core'
sp.frameworks = ['UIKit', 'CoreText']
# File patterns
sp.source_files = 'NBClient/NBClient/UI/*.{h,m}'
sp.resources = [
'NBClient/NBClient/UI/*.xib',
'NBClient/NBClient/UI/NBClient_UI.xcassets',
'NBClient/NBClient/UI/pe-icon-7-stroke.ttf'
]
end
s.subspec 'Locale' do |sp|
# File patterns
sp.subspec 'All' do |l|
l.resources = l.preserve_paths = 'NBClient/NBClient/*.lproj'
end
sp.subspec 'en' do |l|
l.resources = l.preserve_paths = 'NBClient/NBClient/en.lproj'
end
end
s.default_subspecs = 'Core', 'UI', 'Locale/en'
end