forked from SwiftKickMobile/SwiftMessages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSwiftMessages.podspec
41 lines (37 loc) · 2.03 KB
/
SwiftMessages.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
Pod::Spec.new do |spec|
spec.name = 'SwiftMessages'
spec.version = '4.2.0'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages'
spec.authors = { 'Timothy Moose' => 'tim@swiftkick.it' }
spec.summary = 'A very flexible message bar for iOS written in Swift.'
spec.source = {:git => 'https://github.com/SwiftKickMobile/SwiftMessages.git', :tag => spec.version}
spec.platform = :ios, '9.0'
spec.ios.deployment_target = '9.0'
spec.framework = 'UIKit'
spec.requires_arc = true
spec.default_subspec = 'App'
spec.subspec 'App' do |app|
app.source_files = 'SwiftMessages/**/*.swift'
app.resource_bundles = {'SwiftMessages' => ['SwiftMessages/Resources/**/*']}
end
# Contains sub-classes of SwiftMessagesSegue with pre-defined layout and animation
# configurations (all of them can be seen in the "View Controllers" section of the Demo app.
# Note that by including this sub-spec, Interface Builder will display all seven options
# in the "Segue Type" picker when creating a new segue. If you don't want this, create your
# own sub-classes as needed or use the `SwiftMessagesSegue` base class (which appears in the picker
# as "swift messages" and configure it in prepare(for:sender).
spec.subspec 'SegueExtras' do |segues|
segues.source_files = 'SwiftMessagesSegueExtras/**/*.swift'
end
spec.subspec 'AppExtension' do |ext|
ext.source_files = 'SwiftMessages/**/*.swift'
ext.exclude_files = 'SwiftMessages/**/SegueConvenienceClasses.swift'
ext.resource_bundles = {'SwiftMessages' => ['SwiftMessages/Resources/**/*']}
# For app extensions, disabling code paths using unavailable API
ext.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'SWIFTMESSAGES_APP_EXTENSIONS',
'GCC_PREPROCESSOR_DEFINITIONS' => 'SWIFTMESSAGES_APP_EXTENSIONS=1'
}
end
end