-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRFSegue.podspec
77 lines (66 loc) · 2.2 KB
/
RFSegue.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Pod::Spec.new do |s|
s.name = 'RFSegue'
s.version = '4.1.0'
s.summary = 'Missing features for UIStoryboardSegue.'
s.description = <<-DESC
Safter push segue, silent fail when the navigation controller is nil.
Perform an segue asynchronous.
DESC
s.homepage = 'https://github.com/RFUI/RFSegue'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'BB9z' => '[email protected]' }
s.source = {
:git => 'https://github.com/RFUI/RFSegue.git',
:branch => 'develop'
}
s.ios.deployment_target = '9.0'
s.tvos.deployment_target = '9.0'
s.requires_arc = true
s.frameworks = 'UIKit'
s.subspec 'Core' do |ss|
ss.dependency 'RFKit/Runtime', '>= 1.7'
ss.dependency 'RFKit/Category/UIDevice'
ss.dependency 'RFKit/Category/UINavigationController'
ss.source_files = [
'RFSegue.{h,m}',
'RFSegueDelegate.h',
'RFNavigationPush*.{h,m}'
]
ss.public_header_files = [
'RFSegue.h',
'RFSegueDelegate.h',
'RFNavigationPush*.h'
]
end
s.subspec 'Present' do |ss|
ss.dependency 'RFSegue/Core'
ss.source_files = ['RFPresent*.{h,m}']
ss.public_header_files = ['RFPresent*.h']
end
s.subspec 'Async' do |ss|
ss.dependency 'RFSegue/Core'
ss.source_files = ['Async/*.{h,m}']
ss.public_header_files = ['Async/*.h']
end
s.subspec 'Return' do |ss|
ss.dependency 'RFKit/Runtime', '>= 1.7'
ss.dependency 'RFKit/Category/UIView'
ss.dependency 'RFKit/Category/UIResponder'
ss.dependency 'RFSegue/Core'
ss.source_files = ['Return/*.{h,m}']
ss.public_header_files = ['Return/*.h']
end
s.pod_target_xcconfig = {
# These config should only exsists in develop branch.
'WARNING_CFLAGS'=> [
'-Weverything', # Enable all possiable as we are developing a library.
'-Wno-gnu-statement-expression', # Allow ?: expression.
'-Wno-gnu-conditional-omitted-operand',
'-Wno-auto-import', # Still needs old #import for backward compatibility.
'-Wno-sign-conversion',
'-Wno-sign-compare',
'-Wno-double-promotion',
'-Wno-objc-missing-property-synthesis'
].join(' ')
}
end