diff --git a/README.md b/README.md index 81034ca7..cd077a22 100755 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ iOS 9.0 及以上,Xcode 9.0 及以上。 ## 新书推荐 -| 《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》 -| ------ | ------ | ------ | -| [![《数据驱动:从方法到实践》](https://opensource.sensorsdata.cn/wp-content/uploads/data_driven_book_1.jpg)](https://item.jd.com/12322322.html) | [![《Android 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/Android-全埋点thumbnail_1.png)](https://item.jd.com/12574672.html) | [![《iOS 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/iOS-全埋点thumbnail_1.png)](https://item.jd.com/12867068.html) +| 《ASM 全埋点开发实战》 | 《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》 +| ------ | ------ | ------ | ------ | +| [![《ASM 全埋点开发实战》](https://opensource.sensorsdata.cn/wp-content/uploads/ASM-全埋点thumbnail_1.jpg)](https://item.jd.com/14058352.html) | [![《数据驱动:从方法到实践》](https://opensource.sensorsdata.cn/wp-content/uploads/data_driven_book_1.jpg)](https://item.jd.com/12322322.html) | [![《Android 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/Android-全埋点thumbnail_1.png)](https://item.jd.com/12574672.html) | [![《iOS 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/iOS-全埋点thumbnail_1.png)](https://item.jd.com/12867068.html) ## 感谢 diff --git a/SensorsAnalyticsSDK.podspec b/SensorsAnalyticsSDK.podspec index 8a1b86dd..19d992b3 100644 --- a/SensorsAnalyticsSDK.podspec +++ b/SensorsAnalyticsSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SensorsAnalyticsSDK" - s.version = "4.5.13" + s.version = "4.5.14" 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}" } diff --git a/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m b/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m index 6859c579..582106ee 100755 --- a/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m +++ b/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m @@ -64,7 +64,7 @@ #import "SALimitKeyManager.h" #import "NSDictionary+SACopyProperties.h" -#define VERSION @"4.5.13" +#define VERSION @"4.5.14" void *SensorsAnalyticsQueueTag = &SensorsAnalyticsQueueTag; diff --git a/SensorsAnalyticsSDK/Deeplink/SADeepLinkProcessor.m b/SensorsAnalyticsSDK/Deeplink/SADeepLinkProcessor.m index fd88f57b..f8be9b21 100644 --- a/SensorsAnalyticsSDK/Deeplink/SADeepLinkProcessor.m +++ b/SensorsAnalyticsSDK/Deeplink/SADeepLinkProcessor.m @@ -102,9 +102,11 @@ - (NSString *)appInstallSource { - (void)trackDeepLinkLaunch:(NSDictionary *)properties { SADeepLinkLaunchEventObject *object = [[SADeepLinkLaunchEventObject alloc] initWithEventId:kSAAppDeepLinkLaunchEvent]; NSMutableDictionary *eventProperties = [NSMutableDictionary dictionary]; - [eventProperties addEntriesFromDictionary:properties]; eventProperties[kSAEventPropertyDeepLinkURL] = self.URL.absoluteString; eventProperties[kSAEventPropertyInstallSource] = [self appInstallSource]; + if (properties) { + [eventProperties addEntriesFromDictionary:properties]; + } [SensorsAnalyticsSDK.sharedInstance trackEventObject:object properties:eventProperties]; } diff --git a/SensorsAnalyticsSDK/Deeplink/SADeeplinkManager.m b/SensorsAnalyticsSDK/Deeplink/SADeeplinkManager.m index bee4c748..ffb7e44e 100644 --- a/SensorsAnalyticsSDK/Deeplink/SADeeplinkManager.m +++ b/SensorsAnalyticsSDK/Deeplink/SADeeplinkManager.m @@ -312,7 +312,7 @@ - (void)trackDeepLinkLaunchWithURL:(NSString *)url { return; } SADeepLinkEventProcessor *processor = [[SADeepLinkEventProcessor alloc] init]; - [processor startWithProperties:nil]; + [processor startWithProperties:(url ? @{kSAEventPropertyDeepLinkURL: url} : nil)]; } - (void)requestDeferredDeepLink:(NSDictionary *)properties {