forked from sensorsdata/sa-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SensorsAnalyticsSDK.podspec
106 lines (93 loc) · 4.29 KB
/
SensorsAnalyticsSDK.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Pod::Spec.new do |s|
s.name = "SensorsAnalyticsSDK"
s.version = "3.0.3"
s.summary = "The official iOS SDK of Sensors Analytics."
s.homepage = "http://www.sensorsdata.cn"
s.source = { :git => 'https://github.com/sensorsdata/sa-sdk-ios.git', :tag => "v#{s.version}" }
s.license = { :type => "Apache License, Version 2.0" }
s.author = { "Yuhan ZOU" => "[email protected]" }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.default_subspec = 'Core'
s.frameworks = 'Foundation', 'SystemConfiguration'
s.libraries = 'icucore', 'sqlite3', 'z'
s.subspec 'Common' do |c|
core_dir = "SensorsAnalyticsSDK/Core/"
c.source_files = core_dir + "**/*.{h,m}"
c.public_header_files = core_dir + "SensorsAnalyticsSDK.h", core_dir + "SensorsAnalyticsSDK+Public.h", core_dir + "SAAppExtensionDataManager.h", core_dir + "SASecurityPolicy.h", core_dir + "SAConfigOptions.h", core_dir + "SAConstants.h"
c.ios.source_files = "SensorsAnalyticsSDK/RemoteConfig/**/*.{h,m}", "SensorsAnalyticsSDK/ChannelMatch/**/*.{h,m}", "SensorsAnalyticsSDK/Encrypt/**/*.{h,m}", "SensorsAnalyticsSDK/Deeplink/**/*.{h,m}", "SensorsAnalyticsSDK/DebugMode/**/*.{h,m}"
c.ios.public_header_files = "SensorsAnalyticsSDK/Encrypt/SASecretKey.h", "SensorsAnalyticsSDK/ChannelMatch/SensorsAnalyticsSDK+SAChannelMatch.h"
c.ios.resource = 'SensorsAnalyticsSDK/SensorsAnalyticsSDK.bundle'
c.ios.frameworks = 'CoreTelephony'
end
s.subspec 'Core' do |c|
c.ios.dependency 'SensorsAnalyticsSDK/Visualized'
c.osx.dependency 'SensorsAnalyticsSDK/Common'
end
# 支持 CAID 渠道匹配
s.subspec 'CAID' do |f|
f.ios.deployment_target = '8.0'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = "SensorsAnalyticsSDK/CAID/**/*.{h,m}"
f.private_header_files = 'SensorsAnalyticsSDK/CAID/**/*.h'
end
# 全埋点
s.subspec 'AutoTrack' do |g|
g.ios.deployment_target = '8.0'
g.dependency 'SensorsAnalyticsSDK/Common'
g.source_files = "SensorsAnalyticsSDK/AutoTrack/**/*.{h,m}"
g.public_header_files = 'SensorsAnalyticsSDK/AutoTrack/SensorsAnalyticsSDK+SAAutoTrack.h'
g.frameworks = 'UIKit'
end
# 可视化相关功能,包含可视化全埋点和点击图
s.subspec 'Visualized' do |f|
f.ios.deployment_target = '8.0'
f.dependency 'SensorsAnalyticsSDK/AutoTrack'
f.source_files = "SensorsAnalyticsSDK/Visualized/**/*.{h,m}"
f.public_header_files = 'SensorsAnalyticsSDK/Visualized/SensorsAnalyticsSDK+Visualized.h'
end
# 开启 GPS 定位采集
s.subspec 'Location' do |f|
f.ios.deployment_target = '8.0'
f.frameworks = 'CoreLocation'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = "SensorsAnalyticsSDK/Location/**/*.{h,m}"
f.private_header_files = 'SensorsAnalyticsSDK/Location/**/*.h'
end
# 开启设备方向采集
s.subspec 'DeviceOrientation' do |f|
f.ios.deployment_target = '8.0'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = 'SensorsAnalyticsSDK/DeviceOrientation/**/*.{h,m}'
f.private_header_files = 'SensorsAnalyticsSDK/DeviceOrientation/**/*.h'
f.frameworks = 'CoreMotion'
end
# 推送点击
s.subspec 'AppPush' do |f|
f.ios.deployment_target = '8.0'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = "SensorsAnalyticsSDK/AppPush/**/*.{h,m}"
f.private_header_files = 'SensorsAnalyticsSDK/AppPush/**/*.h'
end
# 使用崩溃事件采集
s.subspec 'Exception' do |e|
e.ios.deployment_target = '8.0'
e.dependency 'SensorsAnalyticsSDK/Common'
e.source_files = "SensorsAnalyticsSDK/Exception/**/*.{h,m}"
e.private_header_files = 'SensorsAnalyticsSDK/Exception/**/*.h'
end
# 基于 UA,使用 UIWebView 或者 WKWebView 进行打通
s.subspec 'WebView' do |w|
w.ios.deployment_target = '8.0'
w.dependency 'SensorsAnalyticsSDK/Core'
w.source_files = "SensorsAnalyticsSDK/WebView/**/*.{h,m}"
w.public_header_files = 'SensorsAnalyticsSDK/WebView/SensorsAnalyticsSDK+WebView.h'
end
# 基于 UA,使用 WKWebView 进行打通
s.subspec 'WKWebView' do |w|
w.ios.deployment_target = '8.0'
w.dependency 'SensorsAnalyticsSDK/Core'
w.source_files = "SensorsAnalyticsSDK/WKWebView/**/*.{h,m}"
w.public_header_files = 'SensorsAnalyticsSDK/WKWebView/SensorsAnalyticsSDK+WKWebView.h'
end
end