forked from sensorsdata/sa-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSensorsAnalyticsSDK.podspec
More file actions
137 lines (119 loc) · 6.58 KB
/
SensorsAnalyticsSDK.podspec
File metadata and controls
137 lines (119 loc) · 6.58 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Pod::Spec.new do |s|
s.name = "SensorsAnalyticsSDK"
s.version = "4.5.17"
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 = '9.0'
s.osx.deployment_target = '10.13'
s.default_subspec = 'Core'
s.frameworks = 'Foundation', 'SystemConfiguration'
s.libraries = 'icucore', 'z'
s.subspec '__Store' do |ss|
ss.source_files = 'SensorsAnalyticsSDK/Store/*.{h,m}'
ss.public_header_files = 'SensorsAnalyticsSDK/Store/SABaseStoreManager.h', 'SensorsAnalyticsSDK/Store/SAStorePlugin.h', 'SensorsAnalyticsSDK/Store/SAAESStorePlugin.h'
end
s.subspec 'Base' do |b|
core_dir = "SensorsAnalyticsSDK/Core/"
b.source_files = core_dir + "**/*.{h,m}"
b.exclude_files = core_dir + 'SAAlertController.{h,m}'
b.public_header_files = core_dir + "SensorsAnalyticsSDK.h", core_dir + "SensorsAnalyticsExtension.h", core_dir + "SensorsAnalyticsSDK+Public.h", core_dir + "SASecurityPolicy.h", core_dir + "SAConfigOptions.h", core_dir + "SAConstants.h", core_dir + "PropertyPlugin/SAPropertyPlugin.h"
b.ios.frameworks = 'CoreTelephony'
b.dependency 'SensorsAnalyticsSDK/__Store'
end
s.subspec 'Common' do |c|
c.dependency 'SensorsAnalyticsSDK/Base'
c.public_header_files = 'SensorsAnalyticsSDK/JSBridge/SensorsAnalyticsSDK+JavaScriptBridge.h'
c.source_files = 'SensorsAnalyticsSDK/Core/SAAlertController.{h,m}', 'SensorsAnalyticsSDK/JSBridge/**/*.{h,m}'
c.ios.source_files = 'SensorsAnalyticsSDK/RemoteConfig/**/*.{h,m}', 'SensorsAnalyticsSDK/ChannelMatch/**/*.{h,m}', 'SensorsAnalyticsSDK/Encrypt/**/*.{h,m}', 'SensorsAnalyticsSDK/Deeplink/**/*.{h,m}', 'SensorsAnalyticsSDK/DebugMode/**/*.{h,m}', 'SensorsAnalyticsSDK/Core/SAAlertController.h', 'SensorsAnalyticsSDK/UIRelated/**/*.{h,m}'
c.ios.public_header_files = 'SensorsAnalyticsSDK/{Encrypt,RemoteConfig,ChannelMatch,Deeplink,DebugMode}/{SAConfigOptions,SensorsAnalyticsSDK}+*.h', 'SensorsAnalyticsSDK/Encrypt/SAEncryptProtocol.h', 'SensorsAnalyticsSDK/Encrypt/SASecretKey.h', 'SensorsAnalyticsSDK/Deeplink/SASlinkCreator.h', 'SensorsAnalyticsSDK/UIRelated/UIView+SensorsAnalytics.h'
end
s.subspec 'Core' do |c|
c.ios.dependency 'SensorsAnalyticsSDK/Visualized'
c.osx.dependency 'SensorsAnalyticsSDK/Common'
end
# 全埋点
s.subspec 'AutoTrack' do |g|
g.ios.deployment_target = '9.0'
g.dependency 'SensorsAnalyticsSDK/Common'
g.source_files = "SensorsAnalyticsSDK/AutoTrack/**/*.{h,m}"
g.public_header_files = 'SensorsAnalyticsSDK/AutoTrack/SensorsAnalyticsSDK+SAAutoTrack.h', 'SensorsAnalyticsSDK/AutoTrack/SAConfigOptions+AutoTrack.h'
g.frameworks = 'UIKit'
end
# 可视化相关功能,包含可视化全埋点和点击图
s.subspec 'Visualized' do |f|
f.ios.deployment_target = '9.0'
f.dependency 'SensorsAnalyticsSDK/AutoTrack'
f.source_files = "SensorsAnalyticsSDK/Visualized/**/*.{h,m}"
f.public_header_files = 'SensorsAnalyticsSDK/Visualized/SensorsAnalyticsSDK+Visualized.h', 'SensorsAnalyticsSDK/Visualized/SAConfigOptions+Visualized.h'
end
# 开启 GPS 定位采集
s.subspec 'Location' do |f|
f.ios.deployment_target = '9.0'
f.frameworks = 'CoreLocation'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = "SensorsAnalyticsSDK/Location/**/*.{h,m}"
f.public_header_files = 'SensorsAnalyticsSDK/Location/SensorsAnalyticsSDK+Location.h'
end
# 开启设备方向采集
s.subspec 'DeviceOrientation' do |f|
f.ios.deployment_target = '9.0'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = 'SensorsAnalyticsSDK/DeviceOrientation/**/*.{h,m}'
f.public_header_files = 'SensorsAnalyticsSDK/DeviceOrientation/SensorsAnalyticsSDK+DeviceOrientation.h'
f.frameworks = 'CoreMotion'
end
# 推送点击
s.subspec 'AppPush' do |f|
f.ios.deployment_target = '9.0'
f.dependency 'SensorsAnalyticsSDK/Core'
f.source_files = "SensorsAnalyticsSDK/AppPush/**/*.{h,m}"
f.public_header_files = 'SensorsAnalyticsSDK/AppPush/SAConfigOptions+AppPush.h'
end
# 使用崩溃事件采集
s.subspec 'Exception' do |e|
e.ios.deployment_target = '9.0'
e.dependency 'SensorsAnalyticsSDK/Common'
e.source_files = "SensorsAnalyticsSDK/Exception/**/*.{h,m}"
e.public_header_files = 'SensorsAnalyticsSDK/Exception/SAConfigOptions+Exception.h'
end
# 基于 UA,使用 UIWebView 或者 WKWebView 进行打通
s.subspec 'WebView' do |w|
w.ios.deployment_target = '9.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 = '9.0'
w.dependency 'SensorsAnalyticsSDK/Core'
w.source_files = "SensorsAnalyticsSDK/WKWebView/**/*.{h,m}"
w.public_header_files = 'SensorsAnalyticsSDK/WKWebView/SensorsAnalyticsSDK+WKWebView.h'
end
s.subspec 'ApplicationExtension' do |e|
e.dependency 'SensorsAnalyticsSDK/Base'
e.source_files = 'SensorsAnalyticsSDK/AppExtension/*.{h,m}'
e.public_header_files = 'SensorsAnalyticsSDK/AppExtension/SensorsAnalyticsSDK+SAAppExtension.h'
end
s.subspec 'DeprecatedCellClick' do |d|
d.ios.deployment_target = '9.0'
d.dependency 'SensorsAnalyticsSDK/Core'
d.source_files = 'CellClick_HookDelegate_Deprecated/*.{h,m}'
d.project_header_files = 'CellClick_HookDelegate_Deprecated/*.h'
end
s.subspec 'Exposure' do |h|
h.ios.deployment_target = '9.0'
h.dependency 'SensorsAnalyticsSDK/Common'
h.source_files = 'SensorsAnalyticsSDK/Exposure/**/*.{h,m}'
h.public_header_files = 'SensorsAnalyticsSDK/Exposure/SAConfigOptions+Exposure.h', 'SensorsAnalyticsSDK/Exposure/SAExposureConfig.h', 'SensorsAnalyticsSDK/Exposure/SAExposureData.h', 'SensorsAnalyticsSDK/Exposure/SensorsAnalyticsSDK+Exposure.h', 'SensorsAnalyticsSDK/Exposure/UIView+ExposureIdentifier.h', 'SensorsAnalyticsSDK/Exposure/SAExposureListener.h'
end
# SDK 切换到英文版,运营商属性、日志和弹框提示等,都换成英文。使用前咨询神策售后技术顾问,否则请慎重使用!
s.subspec 'EnglishResources' do |e|
e.dependency 'SensorsAnalyticsSDK/Base'
e.source_files = 'SpecialFileSources/SACoreResources+English.{h,m}'
e.project_header_files = 'SpecialFileSources/SACoreResources+English.h'
end
end