Skip to content

Commit 418e25d

Browse files
authored
forward declarations for Objective-C++ compatibility (#1621)
* This fixes the "No type or protocol named" errors in Objective-C++ contexts * address #1512
1 parent 6a4ce90 commit 418e25d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignalFramework.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#import <OneSignalOSCore/OneSignalOSCore.h>
5050
#import <OneSignalNotifications/OneSignalNotifications.h>
5151

52+
// Forward declarations for Objective-C++ compatibility
53+
@protocol OSUser;
54+
@protocol OSLiveActivities;
55+
5256
#pragma clang diagnostic push
5357
#pragma clang diagnostic ignored "-Wstrict-prototypes"
5458
#pragma clang diagnostic ignored "-Wnullability-completeness"

0 commit comments

Comments
 (0)