Skip to content

Commit 6148d0b

Browse files
committed
Swift 5.2.4 compatibility for Xcode 11.5
1 parent a5de7fc commit 6148d0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4312
-17
lines changed

Beaconstac.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Beaconstac'
3-
s.version = '3.2.7'
3+
s.version = '3.2.8'
44
s.swift_version = '5.0'
55
s.summary = 'iOS library for iBeacon devices'
66

232 KB
Binary file not shown.

Beaconstac/Beaconstac.framework/Headers/Beaconstac-Swift.h

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#if 0
22
#elif defined(__arm64__) && __arm64__
3-
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
3+
// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
44
#pragma clang diagnostic push
55
#pragma clang diagnostic ignored "-Wgcc-compat"
66

@@ -84,6 +84,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
8484
#else
8585
# define SWIFT_NOESCAPE
8686
#endif
87+
#if __has_attribute(ns_consumed)
88+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
89+
#else
90+
# define SWIFT_RELEASES_ARGUMENT
91+
#endif
8792
#if __has_attribute(warn_unused_result)
8893
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
8994
#else
@@ -224,7 +229,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac14BeaconDelegate_")
224229
- (void)didExitRegion:(Beaconstac * _Nonnull)beaconstac region:(NSString * _Nonnull)region;
225230
@end
226231

227-
typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, closed) {
232+
typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, open) {
228233
BeaconHardwareTypeUnknown = 0,
229234
BeaconHardwareTypeIndoor = 1,
230235
BeaconHardwareTypeOutdoor = 2,
@@ -269,11 +274,13 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
269274
///
270275
/// \param organization Optional, part of the Beaconstac dashborad.
271276
///
277+
/// \param offlineMode Optional, determines whether the SDK will fetch data from the API, default = false.
278+
///
272279
/// \param delegate Optional, to listen to the BeaconDelegate callbacks, if you don’t provide the delegate we will startScanningForBeacons once we have required data.
273280
///
274281
/// \param completion this is called once the SDK gets initialised successfully or if any error occurs.
275282
///
276-
+ (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
283+
+ (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization offlineMode:(BOOL)offlineMode delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
277284
/// Invoke this method if you want the SDK to scan for beacons. Based on the SDK configuration this determines when to start scanning beacons.
278285
- (void)startScanningBeacons;
279286
/// Invoke this method if you want the SDK to stop scanning in between the process.
@@ -329,7 +336,7 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
329336
@end
330337

331338
/// Error codes if any error occurs inside SDK, the domain name is com.beaconstac.sdk.error
332-
typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
339+
typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, open) {
333340
/// Indicate that the SDK is not configured yet for you to use.
334341
BeaconstacSDKErrorSDKNotInitialized = -1001,
335342
/// If the app doesn’t have authorization to use bluetooth or the Bluetooth is disabled in the Device.
@@ -364,12 +371,12 @@ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
364371
BeaconstacSDKErrorInvalidRequest = -1016,
365372
};
366373

367-
typedef SWIFT_ENUM(NSInteger, HardwareState, closed) {
374+
typedef SWIFT_ENUM(NSInteger, HardwareState, open) {
368375
HardwareStateActive = 0,
369376
HardwareStateSleeping = 1,
370377
};
371378

372-
typedef SWIFT_ENUM(int64_t, LatchLatency, closed) {
379+
typedef SWIFT_ENUM(int64_t, LatchLatency, open) {
373380
LatchLatencyLOW = 3,
374381
LatchLatencyMEDIUM = 5,
375382
LatchLatencyHIGH = 7,
@@ -500,7 +507,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MNFCTag")
500507
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
501508
@end
502509

503-
typedef SWIFT_ENUM(NSInteger, MNFCTagType, closed) {
510+
typedef SWIFT_ENUM(NSInteger, MNFCTagType, open) {
504511
MNFCTagTypeUnknown = 0,
505512
MNFCTagTypeSticker = 7,
506513
MNFCTagTypeKeycard = 8,
@@ -645,7 +652,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac15WebhookDelegate_")
645652
@end
646653

647654
/// The iBeaconOption specifies how the SDK monitors and ranges beacon.
648-
typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed) {
655+
typedef SWIFT_ENUM(NSInteger, iBeaconOption, open) {
649656
/// This ranges beacons in background only if the display wakes up. Requires always location Authorization
650657
iBeaconOptionBackgroundRangeOnDisplayWakeUp = 0,
651658
/// This ranges beacons only in foreground, requires when in use location Authorization
@@ -658,7 +665,7 @@ typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed) {
658665
#pragma clang diagnostic pop
659666

660667
#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
661-
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
668+
// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
662669
#pragma clang diagnostic push
663670
#pragma clang diagnostic ignored "-Wgcc-compat"
664671

@@ -742,6 +749,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
742749
#else
743750
# define SWIFT_NOESCAPE
744751
#endif
752+
#if __has_attribute(ns_consumed)
753+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
754+
#else
755+
# define SWIFT_RELEASES_ARGUMENT
756+
#endif
745757
#if __has_attribute(warn_unused_result)
746758
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
747759
#else
@@ -882,7 +894,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac14BeaconDelegate_")
882894
- (void)didExitRegion:(Beaconstac * _Nonnull)beaconstac region:(NSString * _Nonnull)region;
883895
@end
884896

885-
typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, closed) {
897+
typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, open) {
886898
BeaconHardwareTypeUnknown = 0,
887899
BeaconHardwareTypeIndoor = 1,
888900
BeaconHardwareTypeOutdoor = 2,
@@ -927,11 +939,13 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
927939
///
928940
/// \param organization Optional, part of the Beaconstac dashborad.
929941
///
942+
/// \param offlineMode Optional, determines whether the SDK will fetch data from the API, default = false.
943+
///
930944
/// \param delegate Optional, to listen to the BeaconDelegate callbacks, if you don’t provide the delegate we will startScanningForBeacons once we have required data.
931945
///
932946
/// \param completion this is called once the SDK gets initialised successfully or if any error occurs.
933947
///
934-
+ (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
948+
+ (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization offlineMode:(BOOL)offlineMode delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
935949
/// Invoke this method if you want the SDK to scan for beacons. Based on the SDK configuration this determines when to start scanning beacons.
936950
- (void)startScanningBeacons;
937951
/// Invoke this method if you want the SDK to stop scanning in between the process.
@@ -987,7 +1001,7 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
9871001
@end
9881002

9891003
/// Error codes if any error occurs inside SDK, the domain name is com.beaconstac.sdk.error
990-
typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
1004+
typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, open) {
9911005
/// Indicate that the SDK is not configured yet for you to use.
9921006
BeaconstacSDKErrorSDKNotInitialized = -1001,
9931007
/// If the app doesn’t have authorization to use bluetooth or the Bluetooth is disabled in the Device.
@@ -1022,12 +1036,12 @@ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
10221036
BeaconstacSDKErrorInvalidRequest = -1016,
10231037
};
10241038

1025-
typedef SWIFT_ENUM(NSInteger, HardwareState, closed) {
1039+
typedef SWIFT_ENUM(NSInteger, HardwareState, open) {
10261040
HardwareStateActive = 0,
10271041
HardwareStateSleeping = 1,
10281042
};
10291043

1030-
typedef SWIFT_ENUM(int64_t, LatchLatency, closed) {
1044+
typedef SWIFT_ENUM(int64_t, LatchLatency, open) {
10311045
LatchLatencyLOW = 3,
10321046
LatchLatencyMEDIUM = 5,
10331047
LatchLatencyHIGH = 7,
@@ -1158,7 +1172,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MNFCTag")
11581172
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
11591173
@end
11601174

1161-
typedef SWIFT_ENUM(NSInteger, MNFCTagType, closed) {
1175+
typedef SWIFT_ENUM(NSInteger, MNFCTagType, open) {
11621176
MNFCTagTypeUnknown = 0,
11631177
MNFCTagTypeSticker = 7,
11641178
MNFCTagTypeKeycard = 8,
@@ -1303,7 +1317,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac15WebhookDelegate_")
13031317
@end
13041318

13051319
/// The iBeaconOption specifies how the SDK monitors and ranges beacon.
1306-
typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed) {
1320+
typedef SWIFT_ENUM(NSInteger, iBeaconOption, open) {
13071321
/// This ranges beacons in background only if the display wakes up. Requires always location Authorization
13081322
iBeaconOptionBackgroundRangeOnDisplayWakeUp = 0,
13091323
/// This ranges beacons only in foreground, requires when in use location Authorization
2 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)