Skip to content

Commit

Permalink
Release 4.5.20
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyue committed Sep 28, 2023
1 parent afab7d2 commit 520ac45
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
14 changes: 8 additions & 6 deletions SensorsAnalyticsSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SensorsAnalyticsSDK"
s.version = "4.5.19"
s.version = "4.5.20"
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}" }
Expand Down Expand Up @@ -49,7 +49,7 @@ Pod::Spec.new do |s|
g.frameworks = 'UIKit'
end

# 可视化相关功能,包含可视化全埋点和点击图
# 可视化相关功能,包含可视化全埋点和点击分析
s.subspec 'Visualized' do |f|
f.ios.deployment_target = '9.0'
f.dependency 'SensorsAnalyticsSDK/AutoTrack'
Expand All @@ -75,31 +75,31 @@ Pod::Spec.new do |s|
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 进行打通
# 基于 UA,使用 UIWebView 或者 WKWebView 进行 App 与 H5 打通
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 进行打通
# 基于 UA,使用 WKWebView 进行 App 与 H5 打通
s.subspec 'WKWebView' do |w|
w.ios.deployment_target = '9.0'
w.dependency 'SensorsAnalyticsSDK/Core'
Expand All @@ -113,13 +113,15 @@ Pod::Spec.new do |s|
e.public_header_files = 'SensorsAnalyticsSDK/AppExtension/SensorsAnalyticsSDK+SAAppExtension.h'
end

# 使用老版 Cell 点击全埋点采集方案,可能导致某些场景,事件漏采集。使用前建议咨询神策售后技术顾问,否则请慎重使用!
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'
Expand Down
16 changes: 14 additions & 2 deletions SensorsAnalyticsSDK/AutoTrack/SAAutoTrackResources.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ + (NSDictionary *)gestureViewBlacklist {
static dispatch_once_t onceToken;
static NSDictionary *info = nil;
dispatch_once(&onceToken, ^{
info = @{@"public":@[@"UIPageControl",@"UITextField",@"UITextView",@"UITabBar",@"UICollectionView",@"UISearchBar",],@"private":@[@"_UIContextMenuContainerView",@"_UIPreviewPlatterView",@"UISwitchModernVisualElement",@"WKContentView",@"UIWebBrowserView",],};
info = @{
@"public":@[@"UIPageControl",@"UITextField",@"UITextView",@"UITabBar",@"UICollectionView",@"UISearchBar"],
@"private":@[@"_UIContextMenuContainerView",@"_UIPreviewPlatterView",@"UISwitchModernVisualElement",@"WKContentView",@"UIWebBrowserView"]
};
});
return info;
}
Expand All @@ -39,7 +42,16 @@ + (NSDictionary *)viewControllerBlacklist {
static dispatch_once_t onceToken;
static NSDictionary *allClasses = nil;
dispatch_once(&onceToken, ^{
allClasses = @{@"$AppClick":@{@"public":@[@"UINavigationController",@"SAAlertController",@"SFSafariViewController",@"AVPlayerViewController",@"UIReferenceLibraryViewController",@"UIImagePickerController",@"UIDocumentMenuViewController",@"UIActivityViewController",@"SLComposeViewController",@"UISplitViewController",],@"private":@[@"SFBrowserRemoteViewController",@"UIInputWindowController",@"UIKeyboardCandidateGridCollectionViewController",@"UICompatibilityInputViewController",@"UIApplicationRotationFollowingControllerNoTouches",@"UIActivityGroupViewController",@"UIKeyboardCandidateRowViewController",@"UIKeyboardHiddenViewController",@"_UIAlertControllerTextFieldViewController",@"_UILongDefinitionViewController",@"_UIResilientRemoteViewContainerViewController",@"_UIShareExtensionRemoteViewController",@"_UIRemoteDictionaryViewController",@"UISystemKeyboardDockController",@"_UINoDefinitionViewController",@"_UIActivityGroupListViewController",@"_UIRemoteViewController",@"_UIFallbackPresentationViewController",@"_UIDocumentPickerRemoteViewController",@"_UIAlertShimPresentingViewController",@"_UIWaitingForRemoteViewContainerViewController",@"_UIActivityUserDefaultsViewController",@"_UIActivityViewControllerContentController",@"_UIRemoteInputViewController",@"_UIUserDefaultsActivityNavigationController",@"_SFAppPasswordSavingViewController",@"UISnapshotModalViewController",@"WKActionSheet",@"DDSafariViewController",@"SFAirDropActivityViewController",@"CKSMSComposeController",@"DDParsecLoadingViewController",@"PLUIPrivacyViewController",@"PLUICameraViewController",@"SLRemoteComposeViewController",@"CAMViewfinderViewController",@"DDParsecNoDataViewController",@"CAMPreviewViewController",@"DDParsecCollectionViewController",@"DDParsecRemoteCollectionViewController",@"AVFullScreenPlaybackControlsViewController",@"PLPhotoTileViewController",@"AVFullScreenViewController",@"CAMImagePickerCameraViewController",@"CKSMSComposeRemoteViewController",@"PUPhotoPickerHostViewController",@"PUUIAlbumListViewController",@"PUUIPhotosAlbumViewController",@"SFAppAutoFillPasswordViewController",@"PUUIMomentsGridViewController",@"SFPasswordRemoteViewController",@"UIWebRotatingAlertController",@"UIEditUserWordController",@"UIActivityContentViewController",],},@"$AppViewScreen":@{@"public":@[@"UIAlertController",@"UITabBarController",@"UINavigationController",@"SAAlertController",@"SFSafariViewController",@"AVPlayerViewController",@"UIReferenceLibraryViewController",@"UIImagePickerController",@"UIDocumentMenuViewController",@"UIActivityViewController",@"SLComposeViewController",@"UISplitViewController",@"UIDocumentPickerViewController",@"UIDocumentBrowserViewController",],@"private":@[@"UIApplicationRotationFollowingController",@"SFBrowserRemoteViewController",@"UIInputWindowController",@"UIKeyboardCandidateGridCollectionViewController",@"UICompatibilityInputViewController",@"UIApplicationRotationFollowingControllerNoTouches",@"UIActivityGroupViewController",@"UIKeyboardCandidateRowViewController",@"UIKeyboardHiddenViewController",@"_UIAlertControllerTextFieldViewController",@"_UILongDefinitionViewController",@"_UIResilientRemoteViewContainerViewController",@"_UIShareExtensionRemoteViewController",@"_UIRemoteDictionaryViewController",@"UISystemKeyboardDockController",@"_UINoDefinitionViewController",@"_UIActivityGroupListViewController",@"_UIRemoteViewController",@"_UIFallbackPresentationViewController",@"_UIDocumentPickerRemoteViewController",@"_UIAlertShimPresentingViewController",@"_UIWaitingForRemoteViewContainerViewController",@"_UIActivityUserDefaultsViewController",@"_UIActivityViewControllerContentController",@"_UIRemoteInputViewController",@"_UIUserDefaultsActivityNavigationController",@"_SFAppPasswordSavingViewController",@"UISnapshotModalViewController",@"WKActionSheet",@"DDSafariViewController",@"SFAirDropActivityViewController",@"CKSMSComposeController",@"DDParsecLoadingViewController",@"PLUIPrivacyViewController",@"PLUICameraViewController",@"SLRemoteComposeViewController",@"CAMViewfinderViewController",@"DDParsecNoDataViewController",@"CAMPreviewViewController",@"DDParsecCollectionViewController",@"DDParsecRemoteCollectionViewController",@"AVFullScreenPlaybackControlsViewController",@"PLPhotoTileViewController",@"AVFullScreenViewController",@"CAMImagePickerCameraViewController",@"CKSMSComposeRemoteViewController",@"PUPhotoPickerHostViewController",@"PUUIAlbumListViewController",@"PUUIPhotosAlbumViewController",@"SFAppAutoFillPasswordViewController",@"PUUIMomentsGridViewController",@"SFPasswordRemoteViewController",@"UIWebRotatingAlertController",@"UIEditUserWordController",@"_UIContextMenuActionsOnlyViewController",@"UIPredictionViewController",@"UISystemInputAssistantViewController",@"UICandidateViewController",@"UIActivityContentViewController",@"SFAirDropViewController",],},};
allClasses = @{
@"$AppClick":
@{@"public":@[@"UINavigationController",@"SAAlertController",@"SFSafariViewController",@"AVPlayerViewController",@"UIReferenceLibraryViewController",@"UIImagePickerController",@"UIDocumentMenuViewController",@"UIActivityViewController",@"SLComposeViewController",@"UISplitViewController"],
@"private":@[@"SFBrowserRemoteViewController",@"UIInputWindowController",@"UIKeyboardCandidateGridCollectionViewController",@"UICompatibilityInputViewController",@"UIApplicationRotationFollowingControllerNoTouches",@"UIActivityGroupViewController",@"UIKeyboardCandidateRowViewController",@"UIKeyboardHiddenViewController",@"_UIAlertControllerTextFieldViewController",@"_UILongDefinitionViewController",@"_UIResilientRemoteViewContainerViewController",@"_UIShareExtensionRemoteViewController",@"_UIRemoteDictionaryViewController",@"UISystemKeyboardDockController",@"_UINoDefinitionViewController",@"_UIActivityGroupListViewController",@"_UIRemoteViewController",@"_UIFallbackPresentationViewController",@"_UIDocumentPickerRemoteViewController",@"_UIAlertShimPresentingViewController",@"_UIWaitingForRemoteViewContainerViewController",@"_UIActivityUserDefaultsViewController",@"_UIActivityViewControllerContentController",@"_UIRemoteInputViewController",@"_UIUserDefaultsActivityNavigationController",@"_SFAppPasswordSavingViewController",@"UISnapshotModalViewController",@"WKActionSheet",@"DDSafariViewController",@"SFAirDropActivityViewController",@"CKSMSComposeController",@"DDParsecLoadingViewController",@"PLUIPrivacyViewController",@"PLUICameraViewController",@"SLRemoteComposeViewController",@"CAMViewfinderViewController",@"DDParsecNoDataViewController",@"CAMPreviewViewController",@"DDParsecCollectionViewController",@"DDParsecRemoteCollectionViewController",@"AVFullScreenPlaybackControlsViewController",@"PLPhotoTileViewController",@"AVFullScreenViewController",@"CAMImagePickerCameraViewController",@"CKSMSComposeRemoteViewController",@"PUPhotoPickerHostViewController",@"PUUIAlbumListViewController",@"PUUIPhotosAlbumViewController",@"SFAppAutoFillPasswordViewController",@"PUUIMomentsGridViewController",@"SFPasswordRemoteViewController",@"UIWebRotatingAlertController",@"UIEditUserWordController",@"UIActivityContentViewController"]
},
@"$AppViewScreen":
@{@"public":@[@"UIAlertController",@"UITabBarController",@"UINavigationController",@"SAAlertController",@"SFSafariViewController",@"AVPlayerViewController",@"UIReferenceLibraryViewController",@"UIImagePickerController",@"UIDocumentMenuViewController",@"UIActivityViewController",@"SLComposeViewController",@"UISplitViewController",@"UIDocumentPickerViewController",@"UIDocumentBrowserViewController"],
@"private":@[@"UIApplicationRotationFollowingController",@"SFBrowserRemoteViewController",@"UIInputWindowController",@"UIKeyboardCandidateGridCollectionViewController",@"UICompatibilityInputViewController",@"UIApplicationRotationFollowingControllerNoTouches",@"UIActivityGroupViewController",@"UIKeyboardCandidateRowViewController",@"UIKeyboardHiddenViewController",@"_UIAlertControllerTextFieldViewController",@"_UILongDefinitionViewController",@"_UIResilientRemoteViewContainerViewController",@"_UIShareExtensionRemoteViewController",@"_UIRemoteDictionaryViewController",@"UISystemKeyboardDockController",@"_UINoDefinitionViewController",@"_UIActivityGroupListViewController",@"_UIRemoteViewController",@"_UIFallbackPresentationViewController",@"_UIDocumentPickerRemoteViewController",@"_UIAlertShimPresentingViewController",@"_UIWaitingForRemoteViewContainerViewController",@"_UIActivityUserDefaultsViewController",@"_UIActivityViewControllerContentController",@"_UIRemoteInputViewController",@"_UIUserDefaultsActivityNavigationController",@"_SFAppPasswordSavingViewController",@"UISnapshotModalViewController",@"WKActionSheet",@"DDSafariViewController",@"SFAirDropActivityViewController",@"CKSMSComposeController",@"DDParsecLoadingViewController",@"PLUIPrivacyViewController",@"PLUICameraViewController",@"SLRemoteComposeViewController",@"CAMViewfinderViewController",@"DDParsecNoDataViewController",@"CAMPreviewViewController",@"DDParsecCollectionViewController",@"DDParsecRemoteCollectionViewController",@"AVFullScreenPlaybackControlsViewController",@"PLPhotoTileViewController",@"AVFullScreenViewController",@"CAMImagePickerCameraViewController",@"CKSMSComposeRemoteViewController",@"PUPhotoPickerHostViewController",@"PUUIAlbumListViewController",@"PUUIPhotosAlbumViewController",@"SFAppAutoFillPasswordViewController",@"PUUIMomentsGridViewController",@"SFPasswordRemoteViewController",@"UIWebRotatingAlertController",@"UIEditUserWordController",@"_UIContextMenuActionsOnlyViewController",@"UIPredictionViewController",@"UISystemInputAssistantViewController",@"UICandidateViewController",@"UIActivityContentViewController",@"SFAirDropViewController",@"_UICursorAccessoryViewController"]
}
};
});
return allClasses;
}
Expand Down
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#import "SALimitKeyManager.h"
#import "NSDictionary+SACopyProperties.h"

#define VERSION @"4.5.19"
#define VERSION @"4.5.20"

void *SensorsAnalyticsQueueTag = &SensorsAnalyticsQueueTag;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"UISystemInputAssistantViewController",
"UICandidateViewController",
"UIActivityContentViewController",
"SFAirDropViewController"
"SFAirDropViewController",
"_UICursorAccessoryViewController"
]
},
"$AppClick": {
Expand Down

0 comments on commit 520ac45

Please sign in to comment.