forked from Countly/countly-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Countly.podspec
42 lines (36 loc) · 1.62 KB
/
Countly.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
Pod::Spec.new do |s|
s.name = 'Countly'
s.version = '20.11.1'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
s.homepage = 'https://github.com/Countly/countly-sdk-ios'
s.social_media_url = 'https://twitter.com/gocountly'
s.author = {'Countly' => '[email protected]'}
s.source = { :git => 'https://github.com/Countly/countly-sdk-ios.git', :tag => s.version.to_s }
s.requires_arc = true
s.default_subspecs = 'Core'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.subspec 'Core' do |core|
core.source_files = '*.{h,m}'
core.public_header_files = 'Countly.h', 'CountlyUserDetails.h', 'CountlyConfig.h', 'CountlyFeedbackWidget.h'
core.preserve_path = 'countly_dsym_uploader.sh'
core.ios.frameworks = ['Foundation', 'UIKit', 'UserNotifications', 'CoreLocation', 'WebKit', 'CoreTelephony', 'WatchConnectivity']
end
s.subspec 'NotificationService' do |ns|
ns.source_files = 'CountlyNotificationService.{m,h}'
ns.ios.deployment_target = '10.0'
end
s.subspec 'PL' do |pl|
pl.platform = :ios
pl.dependency 'Countly/Core'
pl.dependency 'PLCrashReporter', '~> 1'
# It is not possible to set static_framework attribute on subspecs.
# So, we have to set it on main spec.
# But it affects the main spec even when this subspec is not used.
# Asked this on CocoaPods GitHub page: https://github.com/CocoaPods/CocoaPods/issues/7355#issuecomment-619261908
s.static_framework = true
end
end