|
@@ -674,10 +674,10 @@ static NSString *const KMPurchaseCompareDMGCellIdentifier = @"KMPurchaseCo
|
|
|
NSString *paidEventName = [self _buyNowEventToPaidEventName];
|
|
|
NSDictionary *paidEventParams = [self _getPaidEventParamsWith:paidEventName];
|
|
|
|
|
|
- NSString *thePaidEventName = paidEventParams.allValues.firstObject;
|
|
|
+ NSString *thePaidEventName = paidEventParams.allKeys.firstObject;
|
|
|
NSDictionary *thePaidEventParams = nil;
|
|
|
- if (paidEventName != nil && paidEventParams.allKeys.firstObject != nil) {
|
|
|
- thePaidEventParams = @{paidEventParams.allKeys.firstObject : paidEventName};
|
|
|
+ if (paidEventName != nil && paidEventParams.allValues.firstObject != nil) {
|
|
|
+ thePaidEventParams = @{paidEventParams.allValues.firstObject : paidEventName};
|
|
|
}
|
|
|
|
|
|
[self close];
|
|
@@ -757,10 +757,10 @@ static NSString *const KMPurchaseCompareDMGCellIdentifier = @"KMPurchaseCo
|
|
|
[self trackEvent_buyNow];
|
|
|
NSString *paidEventName = [self _buyNowEventToPaidEventName];
|
|
|
NSDictionary *paidEventParams = [self _getPaidEventParamsWith:paidEventName];
|
|
|
- NSString *thePaidEventName = paidEventParams.allValues.firstObject;
|
|
|
+ NSString *thePaidEventName = paidEventParams.allKeys.firstObject;
|
|
|
NSDictionary *thePaidEventParams = nil;
|
|
|
- if (paidEventName != nil && paidEventParams.allKeys.firstObject != nil) {
|
|
|
- thePaidEventParams = @{paidEventParams.allKeys.firstObject : paidEventName};
|
|
|
+ if (paidEventName != nil && paidEventParams.allValues.firstObject != nil) {
|
|
|
+ thePaidEventParams = @{paidEventParams.allValues.firstObject : paidEventName};
|
|
|
}
|
|
|
|
|
|
[self close];
|
|
@@ -796,10 +796,10 @@ static NSString *const KMPurchaseCompareDMGCellIdentifier = @"KMPurchaseCo
|
|
|
|
|
|
- (void)trackEvent_buyNow {
|
|
|
NSDictionary *params = [self _getBuyNowEventParams];
|
|
|
- NSString *theEventName = params.allValues.firstObject;
|
|
|
+ NSString *theEventName = params.allKeys.firstObject;
|
|
|
NSDictionary *theParams = nil;
|
|
|
- if (self.kEventName != nil && params.allKeys.firstObject != nil) {
|
|
|
- theParams = @{params.allKeys.firstObject : self.kEventName};
|
|
|
+ if (self.kEventName != nil && params.allValues.firstObject != nil) {
|
|
|
+ theParams = @{params.allValues.firstObject : self.kEventName};
|
|
|
}
|
|
|
|
|
|
[self trackEvent_dmgWithEventName:theEventName params:theParams platform:KMAnalyticsPlatformAppCenter];
|