Skip to content

Commit 399a36e

Browse files
committed
SDK-667 add fallback for no modules
1 parent 93e7282 commit 399a36e

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Branch-SDK/Branch-SDK/BNCAppleReceipt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2019 Branch, Inc. All rights reserved.
77
//
88

9+
#if __has_feature(modules)
910
@import Foundation;
11+
#else
12+
#import <Foundation/Foundation.h>
13+
#endif
1014

1115
NS_ASSUME_NONNULL_BEGIN
1216

Branch-SDK/Branch-SDK/BNCUserAgentCollector.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2019 Branch, Inc. All rights reserved.
77
//
88

9+
#if __has_feature(modules)
910
@import Foundation;
11+
#else
12+
#import <Foundation/Foundation.h>
13+
#endif
1014

1115
NS_ASSUME_NONNULL_BEGIN
1216

Branch-SDK/Branch-SDK/BNCUserAgentCollector.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
#import "BNCUserAgentCollector.h"
1010
#import "BNCPreferenceHelper.h"
1111
#import "BNCDeviceSystem.h"
12+
#if __has_feature(modules)
1213
@import WebKit;
14+
#else
15+
#import <WebKit/WebKit.h>
16+
#endif
1317

1418
@interface BNCUserAgentCollector()
1519
// need to hold onto the webview until the async user agent fetch is done

Branch-SDK/Branch-SDK/NSError+Branch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
@copyright Copyright © 2014 Branch. All rights reserved.
99
*/
1010

11+
#if __has_feature(modules)
1112
@import Foundation;
13+
#else
14+
#import <Foundation/Foundation.h>
15+
#endif
1216

1317
NS_ASSUME_NONNULL_BEGIN
1418

0 commit comments

Comments
 (0)