From 63b07dab1565db4dee4160aeb3c6f9e953c263e9 Mon Sep 17 00:00:00 2001 From: "nightsd01@gmail.com" Date: Sat, 17 Feb 2018 13:33:07 -0800 Subject: [PATCH] Nullability Issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Since Nullability specifiers have been added to new methods (Email methods) in the SDK, Xcode will show compiler warnings since not all previous methods in OneSignal.h have these specifiers • Since adding nullability flags to existing methods would be a breaking change we will not do this until the next major release. • Until then, this commit adds a compiler flag to ignore nullability warnings. --- iOS_SDK/OneSignalSDK/Source/OneSignal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iOS_SDK/OneSignalSDK/Source/OneSignal.h b/iOS_SDK/OneSignalSDK/Source/OneSignal.h index c1a192948..b9bf7c808 100755 --- a/iOS_SDK/OneSignalSDK/Source/OneSignal.h +++ b/iOS_SDK/OneSignalSDK/Source/OneSignal.h @@ -50,6 +50,11 @@ #import #endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" +#pragma clang diagnostic ignored "-Wnullability-completeness" + /* The action type associated to an OSNotificationAction object */ typedef NS_ENUM(NSUInteger, OSNotificationActionType) { OSNotificationActionTypeOpened, @@ -422,3 +427,5 @@ typedef void (^OSEmailSuccessBlock)(); + (void)setEmail:(NSString * _Nonnull)email withEmailAuthHashToken:(NSString * _Nullable)hashToken; @end + +#pragma clang diagnostic pop