Skip to content

Commit baf3475

Browse files
committed
Xcode SPM fix
1 parent 53b7c8d commit baf3475

7 files changed

+8
-4
lines changed

Sift/Sift.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
* Methods return YES on success.
2727
*/
28+
NS_EXTENSION_UNAVAILABLE_IOS("Sift is not supported for iOS extensions.")
2829
@interface Sift : NSObject
2930

3031
/** @return the shared instance of Sift. */

Sift/SiftIosAppState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
SiftHtDictionary *SFMakeEmptyIosAppState(void);
1111

12-
SiftHtDictionary *SFCollectIosAppState(CLLocationManager *locationManager, NSString *title);
12+
SiftHtDictionary *SFCollectIosAppState(CLLocationManager *locationManager, NSString *title) NS_EXTENSION_UNAVAILABLE_IOS("SFCollectIosAppState is not supported for iOS extensions.");
1313

1414
SiftHtDictionary *SFCLHeadingToDictionary(CLHeading *heading);
1515

Sift/SiftIosAppStateCollector+Private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
/**
2525
* Collect app state if there was no collection in the last SF_MAX_COLLECTION_PERIOD of time and app is active.
2626
*/
27-
- (void)checkAndCollectWhenNoneRecently:(SFTimestamp)now;
27+
- (void)checkAndCollectWhenNoneRecently:(SFTimestamp)now NS_EXTENSION_UNAVAILABLE_IOS("checkAndCollectWhenNoneRecently is not supported for iOS extensions.");
2828

2929
/** Collect app state. */
30-
- (void)collectWithTitle:(NSString *)title andTimestamp:(SFTimestamp)now;
30+
- (void)collectWithTitle:(NSString *)title andTimestamp:(SFTimestamp)now NS_EXTENSION_UNAVAILABLE_IOS("collectWithTitle is not supported for iOS extensions.");
3131

3232
/** @return YES if can collect Location data. */
3333
- (BOOL)canCollectLocationData;

Sift/SiftIosDeviceProperties.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
SiftHtDictionary *SFMakeEmptyIosDeviceProperties(void);
88

9-
SiftHtDictionary *SFCollectIosDeviceProperties(void);
9+
SiftHtDictionary *SFCollectIosDeviceProperties(void) NS_EXTENSION_UNAVAILABLE_IOS("SFCollectIosDeviceProperties is not supported for iOS extensions.");

Sift/SiftIosDevicePropertiesCollector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import Foundation;
44

55
/** Collect device properties. */
6+
NS_EXTENSION_UNAVAILABLE_IOS("SiftIosDevicePropertiesCollector is not supported for iOS extensions.")
67
@interface SiftIosDevicePropertiesCollector : NSObject
78

89
// Nothing here - a collector is autonomous.

Sift/SiftQueue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* A queue is simply a `NSArray` of `SFEvent` objects with an
1111
* `SFQueueConfig` policy object.
1212
*/
13+
NS_EXTENSION_UNAVAILABLE_IOS("SiftQueue is not supported for iOS extensions.")
1314
@interface SiftQueue : NSObject
1415

1516
- (instancetype)initWithIdentifier:(NSString *)identifier config:(SiftQueueConfig)config archivePath:(NSString *)archivePath sift:(Sift *)sift;

Sift/SiftUploader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#import "Sift.h"
66

7+
NS_EXTENSION_UNAVAILABLE_IOS("SiftUploader is not supported for iOS extensions.")
78
@interface SiftUploader : NSObject <NSURLSessionTaskDelegate, NSURLSessionDataDelegate>
89

910
- (instancetype)initWithArchivePath:(NSString *)archivePath sift:(Sift *)sift;

0 commit comments

Comments
 (0)