2
0

pushTestMode doesn't support nil values but defaults to it.

This commit is contained in:
Maarten Billemont 2020-04-04 18:12:26 -04:00
parent 7085eaf726
commit 81a92400fb
2 changed files with 4 additions and 8 deletions

View File

@ -130,11 +130,9 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
countlyConfig.appKey = decrypt( countlyKey ); countlyConfig.appKey = decrypt( countlyKey );
countlyConfig.features = @[ CLYPushNotifications ]; countlyConfig.features = @[ CLYPushNotifications ];
countlyConfig.requiresConsent = YES; countlyConfig.requiresConsent = YES;
#if PUBLIC #if DEBUG
countlyConfig.pushTestMode = nil;
#elif DEBUG
countlyConfig.pushTestMode = CLYPushTestModeDevelopment; countlyConfig.pushTestMode = CLYPushTestModeDevelopment;
#else #elif ! PUBLIC
countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc; countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc;
#endif #endif
countlyConfig.alwaysUsePOST = YES; countlyConfig.alwaysUsePOST = YES;

View File

@ -138,11 +138,9 @@ void mpw_log_sink_pearl(const MPLogEvent *record) {
countlyConfig.appKey = decrypt( countlyKey ); countlyConfig.appKey = decrypt( countlyKey );
countlyConfig.features = @[ CLYPushNotifications, CLYAutoViewTracking ]; countlyConfig.features = @[ CLYPushNotifications, CLYAutoViewTracking ];
countlyConfig.requiresConsent = YES; countlyConfig.requiresConsent = YES;
#if PUBLIC #if DEBUG
countlyConfig.pushTestMode = nil;
#elif DEBUG
countlyConfig.pushTestMode = CLYPushTestModeDevelopment; countlyConfig.pushTestMode = CLYPushTestModeDevelopment;
#else #elif ! PUBLIC
countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc; countlyConfig.pushTestMode = CLYPushTestModeTestFlightOrAdHoc;
#endif #endif
countlyConfig.alwaysUsePOST = YES; countlyConfig.alwaysUsePOST = YES;