Skip to content

Commit 88d7937

Browse files
authored
Merge pull request #1381 from BranchMetrics/SDK-1217-tvOS-spm-issue-2
SDK-1217 workaround tvOS SPM issue
2 parents 89dea0c + 8ff3e14 commit 88d7937

14 files changed

+35
-0
lines changed

Sources/BranchSDK/BNCContentDiscoveryManager.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2015 Branch Metrics. All rights reserved.
77
//
88

9+
#if !TARGET_OS_TV
10+
911
#import "BNCContentDiscoveryManager.h"
1012
#import "Branch.h"
1113
#import "BranchConstants.h"
@@ -396,3 +398,4 @@ - (void)indexContentWithTitle:(NSString *)title
396398
}
397399

398400
@end
401+
#endif

Sources/BranchSDK/BNCSpotlightService.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2017 Branch Metrics. All rights reserved.
77
//
88

9+
#if !TARGET_OS_TV
10+
911
#import "BNCSpotlightService.h"
1012
#import "Branch.h"
1113
#import "BNCSystemObserver.h"
@@ -487,3 +489,4 @@ - (void)removeAllBranchSearchableItemsWithCallback:(void (^_Nullable)(NSError *
487489
#undef IndexingNotAvalable
488490
}
489491
@end
492+
#endif

Sources/BranchSDK/BNCUserAgentCollector.m

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

9+
#if !TARGET_OS_TV
910
#import "BNCUserAgentCollector.h"
1011
#import "BNCPreferenceHelper.h"
1112
#import "BNCDeviceSystem.h"
@@ -108,3 +109,4 @@ - (void)collectUserAgentWithCompletion:(void (^)(NSString *userAgent))completion
108109
}
109110

110111
@end
112+
#endif

Sources/BranchSDK/BranchActivityItemProvider.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright (c) 2015 Branch Metrics. All rights reserved.
77
//
88

9+
#if !TARGET_OS_TV
10+
911
#import "BranchActivityItemProvider.h"
1012
#import "Branch.h"
1113
#import "BranchConstants.h"
@@ -255,3 +257,4 @@ - (NSString *)aliasForChannel:(NSString *)channel {
255257
}
256258

257259
@end
260+
#endif

Sources/BranchSDK/BranchCSSearchableItemAttributeSet.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by Derrick Staten on 9/8/15.
66
// Copyright © 2015 Branch Metrics. All rights reserved.
77
//
8+
#if !TARGET_OS_TV
89

910
#import "BranchCSSearchableItemAttributeSet.h"
1011
#import "NSError+Branch.h"
@@ -157,3 +158,4 @@ - (void)indexContentWithUrl:(NSString *)url spotlightIdentifier:(NSString *)spot
157158
}
158159

159160
@end
161+
#endif

Sources/BranchSDK/BranchPasteControl.m

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

9+
#if !TARGET_OS_TV
910
#import "BranchPasteControl.h"
1011
#import "Branch.h"
1112

@@ -50,3 +51,4 @@ - (BOOL)canPasteItemProviders:(NSArray<NSItemProvider *> *)itemProviders {
5051
}
5152

5253
@end
54+
#endif

Sources/BranchSDK/BranchShareLink.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by Edward Smith on 3/13/17.
66
// Copyright © 2017 Branch Metrics. All rights reserved.
77
//
8+
#if !TARGET_OS_TV
89

910
#import "BranchShareLink.h"
1011
#import "BranchConstants.h"
@@ -330,3 +331,4 @@ - (void)addLPLinkMetadata:(NSString *)title icon:(UIImage *)icon API_AVAILABLE(i
330331
}
331332

332333
@end
334+
#endif

Sources/BranchSDK/Private/BNCContentDiscoveryManager.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2015 Branch Metrics. All rights reserved.
77
//
88

9+
#if !TARGET_OS_TV
10+
911
#if __has_feature(modules)
1012
@import Foundation;
1113
#else
@@ -60,3 +62,4 @@
6062
spotlightCallback:(callbackWithUrlAndSpotlightIdentifier)spotlightCallback;
6163

6264
@end
65+
#endif

Sources/BranchSDK/Private/BNCSpotlightService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2017 Branch Metrics. All rights reserved.
77
//
88

9+
#if !TARGET_OS_TV
10+
911
#if __has_feature(modules)
1012
@import Foundation;
1113
#else
@@ -36,3 +38,4 @@
3638

3739
- (void)removeAllBranchSearchableItemsWithCallback:(void (^_Nullable)(NSError * _Nullable error))completion;
3840
@end
41+
#endif

Sources/BranchSDK/Private/BNCUserAgentCollector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// Copyright © 2019 Branch, Inc. All rights reserved.
99
//
1010

11+
#if !TARGET_OS_TV
1112
#if __has_feature(modules)
1213
@import Foundation;
1314
#else
@@ -28,3 +29,4 @@ NS_ASSUME_NONNULL_BEGIN
2829
@end
2930

3031
NS_ASSUME_NONNULL_END
32+
#endif

0 commit comments

Comments
 (0)