Skip to content

Commit 9fb0579

Browse files
committed
objc: fix import to allow compilation in a static library (fixes #1)
1 parent 36d609b commit 9fb0579

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.0.3
2+
3+
- Allow usage in a cocoapods static library
4+
15
# 3.0.2
26

37
- Fix an issue where a user would be considered as opted-out even though they were not

Sources/ObjC/BAENotificationServiceExtension.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
#import "BAENotificationServiceExtension.h"
99

10+
#if __has_include("BatchExtension-Swift.h")
11+
#import "BatchExtension-Swift.h"
12+
#else
1013
#import <BatchExtension/BatchExtension-Swift.h>
14+
#endif
1115

1216
@implementation BAENotificationServiceExtension
1317
{

0 commit comments

Comments
 (0)