Skip to content

Commit 6925424

Browse files
authored
Nullability Issue (#340)
• 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.
1 parent a3839ff commit 6925424

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
#import <UserNotifications/UserNotifications.h>
5151
#endif
5252

53+
54+
#pragma clang diagnostic push
55+
#pragma clang diagnostic ignored "-Wstrict-prototypes"
56+
#pragma clang diagnostic ignored "-Wnullability-completeness"
57+
5358
/* The action type associated to an OSNotificationAction object */
5459
typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
5560
OSNotificationActionTypeOpened,
@@ -422,3 +427,5 @@ typedef void (^OSEmailSuccessBlock)();
422427
+ (void)setEmail:(NSString * _Nonnull)email withEmailAuthHashToken:(NSString * _Nullable)hashToken;
423428

424429
@end
430+
431+
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)