Skip to content

Commit

Permalink
Nullability, subspecs, and compiler directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalmo Cirne committed Mar 16, 2016
1 parent b6f0601 commit 5fa3c2b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mParticle-Apple-SDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Pod::Spec.new do |s|
s.subspec 'Crittercism' do |ss|
ss.ios.dependency 'mParticle-Apple-SDK/Core-SDK'
ss.ios.dependency 'mParticle-Apple-SDK/mParticle'
ss.ios.dependency 'CrittercismSDK', '5.5'
ss.ios.dependency 'CrittercismSDK', '5.4.0'
ss.ios.prefix_header_contents = "#define MP_KIT_CRITTERCISM 1"
ss.ios.deployment_target = "7.0"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ - (MPKitExecStatus *)logScreen:(MPEvent *)event {
return execStatus;
}

- (nonnull MPKitExecStatus *)openURL:(nonnull NSURL *)url sourceApplication:(nonnull NSString *)sourceApplication annotation:(nullable id)annotation {
- (nonnull MPKitExecStatus *)openURL:(nonnull NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(nullable id)annotation {
[branchInstance handleDeepLink:url];

MPKitExecStatus *execStatus = [[MPKitExecStatus alloc] initWithSDKCode:@(MPKitInstanceBranchMetrics) returnCode:MPKitReturnCodeSuccess];
Expand Down
2 changes: 1 addition & 1 deletion mParticle-Apple-SDK/Kits/MPKitContainer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ - (void)removeAllKitConfigurations {
@(MPKitInstanceLocalytics),
#endif
#if defined(MP_KIT_TUNE)
@(MPKitTune),
@(MPKitInstanceTune),
#endif
#if defined(MP_KIT_WOOTRIC)
@(MPKitInstanceWootric),
Expand Down
2 changes: 1 addition & 1 deletion mParticle-Apple-SDK/MPBackendController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ - (void)requestConfig:(void(^ _Nullable)(BOOL uploadBatch))completionHandler {

MPResponseConfig *responseConfig = [[MPResponseConfig alloc] initWithConfiguration:configurationDictionary];

if (responseConfig.influencedOpenTimer) {
if (responseConfig.influencedOpenTimer && strongSelf) {
#if TARGET_OS_IOS == 1
strongSelf.notificationController.influencedOpenTimer = [responseConfig.influencedOpenTimer doubleValue];
#endif
Expand Down
2 changes: 2 additions & 0 deletions mParticle-Apple-SDK/Notifications/MPNotificationController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ @interface MPNotificationController() {

@end

#if TARGET_OS_IOS == 1
static NSData *deviceToken = nil;
static int64_t launchNotificationHash = 0;
#endif

@implementation MPNotificationController

Expand Down

0 comments on commit 5fa3c2b

Please sign in to comment.