forked from SwiftKickMobile/SwiftMessages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwiftMessages.podspec
32 lines (29 loc) · 1.42 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
Pod::Spec.new do |spec|
spec.name = 'SwiftMessages'
spec.version = '7.0.1'
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.swift_version = '5.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
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