Skip to content

Commit 7867f8f

Browse files
committed
Swift 5.0
1 parent 47e1d59 commit 7867f8f

File tree

16 files changed

+71
-18
lines changed

16 files changed

+71
-18
lines changed
305 KB
Binary file not shown.
-31.8 KB
Binary file not shown.
15.1 KB
Binary file not shown.
35.9 KB
Binary file not shown.
971 Bytes
Binary file not shown.

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

Lines changed: 67 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
1+
// Generated by Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
22
#pragma clang diagnostic push
33
#pragma clang diagnostic ignored "-Wgcc-compat"
44

@@ -20,7 +20,7 @@
2020
#endif
2121

2222
#pragma clang diagnostic ignored "-Wauto-import"
23-
#include <objc/NSObject.h>
23+
#include <Foundation/Foundation.h>
2424
#include <stdint.h>
2525
#include <stddef.h>
2626
#include <stdbool.h>
@@ -163,6 +163,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
163163
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
164164
#endif
165165
#if __has_feature(modules)
166+
#if __has_warning("-Watimport-in-framework-header")
167+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
168+
#endif
169+
@import CoreData;
166170
@import ObjectiveC;
167171
@import UserNotifications;
168172
#endif
@@ -213,11 +217,6 @@ typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, closed) {
213217
BeaconHardwareTypeUsb = 6,
214218
};
215219

216-
typedef SWIFT_ENUM(NSInteger, BeaconState, closed) {
217-
BeaconStateActive = 0,
218-
BeaconStateSleeping = 1,
219-
};
220-
221220
@protocol RuleProcessorDelegate;
222221
@protocol NotificationDelegate;
223222
@protocol WebhookDelegate;
@@ -263,7 +262,7 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
263262
/// Invoke this method if you want the SDK to stop scanning in between the process.
264263
- (void)stopScanningBeacons;
265264
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
266-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
265+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
267266
@end
268267

269268
@class MVisitor;
@@ -348,6 +347,11 @@ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
348347
BeaconstacSDKErrorInvalidRequest = -1016,
349348
};
350349

350+
typedef SWIFT_ENUM(NSInteger, HardwareState, closed) {
351+
HardwareStateActive = 0,
352+
HardwareStateSleeping = 1,
353+
};
354+
351355
typedef SWIFT_ENUM(int64_t, LatchLatency, closed) {
352356
LatchLatencyLOW = 3,
353357
LatchLatencyMEDIUM = 5,
@@ -373,7 +377,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MBeacon")
373377
/// The campedOn status
374378
@property (nonatomic, readonly) BOOL isCampedOn;
375379
/// The state of the beacon
376-
@property (nonatomic, readonly) enum BeaconState state;
380+
@property (nonatomic, readonly) enum HardwareState state;
377381
/// The place id of the beacon
378382
@property (nonatomic, readonly) int64_t place;
379383
/// The place name of the beacon
@@ -388,7 +392,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MBeacon")
388392
@property (nonatomic, readonly, strong) MHardware * _Nonnull hardware;
389393
@property (nonatomic) int64_t latestRSSI;
390394
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
391-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
395+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
392396
@end
393397

394398

@@ -402,7 +406,7 @@ SWIFT_CLASS("_TtC10Beaconstac10MEddystone")
402406
/// The eddystone url parameter of the beacon hardware
403407
@property (nonatomic, readonly, copy) NSString * _Nonnull url;
404408
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
405-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
409+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
406410
@end
407411

408412

@@ -434,7 +438,7 @@ SWIFT_CLASS("_TtC10Beaconstac9MHardware")
434438
/// The eddystone object of the beacon hardware
435439
@property (nonatomic, readonly, strong) MEddystone * _Nonnull eddystone;
436440
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
437-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
441+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
438442
@end
439443

440444

@@ -448,9 +452,43 @@ SWIFT_CLASS("_TtC10Beaconstac13MMarkdownCard")
448452
/// The url of the markdown card
449453
@property (nonatomic, readonly, copy) NSString * _Nonnull url;
450454
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
451-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
455+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
456+
@end
457+
458+
enum MNFCTagType : NSInteger;
459+
460+
SWIFT_CLASS("_TtC10Beaconstac7MNFCTag")
461+
@interface MNFCTag : NSObject
462+
/// The id of the nfcTag
463+
@property (nonatomic, readonly) int64_t id;
464+
/// The name of the nfcTag
465+
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
466+
/// The url of the nfcTag
467+
@property (nonatomic, readonly, copy) NSString * _Nonnull url;
468+
/// The url of the nfcTag
469+
@property (nonatomic, readonly, copy) NSString * _Nonnull uid;
470+
/// The counter of the nfcTag
471+
@property (nonatomic, readonly) int64_t counter;
472+
/// The state of the tag
473+
@property (nonatomic, readonly) enum HardwareState state;
474+
/// The place id of the tag
475+
@property (nonatomic, readonly) int64_t place;
476+
/// The place name of the tag
477+
@property (nonatomic, readonly, copy) NSString * _Nonnull placeName;
478+
/// The tags associated with the beacon
479+
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull tags;
480+
/// The hardware type of the beacon
481+
@property (nonatomic, readonly) enum MNFCTagType type;
482+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
483+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
452484
@end
453485

486+
typedef SWIFT_ENUM(NSInteger, MNFCTagType, closed) {
487+
MNFCTagTypeUnknown = 0,
488+
MNFCTagTypeSticker = 7,
489+
MNFCTagTypeKeycard = 8,
490+
};
491+
454492

455493
/// The Notification class to handle the notification action.
456494
SWIFT_CLASS("_TtC10Beaconstac13MNotification")
@@ -466,7 +504,7 @@ SWIFT_CLASS("_TtC10Beaconstac13MNotification")
466504
/// The markdown card assocaited with the notification as set by the marketer on the dashboard.
467505
@property (nonatomic, readonly, strong) MMarkdownCard * _Nullable markdownCard;
468506
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
469-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
507+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
470508
@end
471509

472510

@@ -500,7 +538,7 @@ SWIFT_CLASS("_TtC10Beaconstac5MRule")
500538
/// Determines if the marketer has activated/paused the rule on the dashboard.
501539
- (BOOL)isActive SWIFT_WARN_UNUSED_RESULT;
502540
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
503-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
541+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
504542
@end
505543

506544

@@ -530,7 +568,7 @@ SWIFT_CLASS("_TtC10Beaconstac8MVisitor")
530568
///
531569
- (nonnull instancetype)init:(NSString * _Nonnull)firstName lastName:(NSString * _Nonnull)lastName email:(NSString * _Nullable)email age:(NSNumber * _Nullable)age gender:(NSString * _Nullable)gender OBJC_DESIGNATED_INITIALIZER;
532570
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
533-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
571+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
534572
@end
535573

536574

@@ -548,9 +586,21 @@ SWIFT_CLASS("_TtC10Beaconstac8MWebhook")
548586
/// The parameters to be sent as part of the post body which is set by the marketer.
549587
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable params;
550588
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
551-
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
589+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
552590
@end
553591

592+
@class NSEntityDescription;
593+
@class NSManagedObjectContext;
594+
595+
SWIFT_CLASS_NAMED("NFCTagEntity")
596+
@interface NFCTagEntity : NSManagedObject
597+
- (nonnull instancetype)initWithEntity:(NSEntityDescription * _Nonnull)entity insertIntoManagedObjectContext:(NSManagedObjectContext * _Nullable)context OBJC_DESIGNATED_INITIALIZER;
598+
@end
599+
600+
601+
602+
603+
554604

555605
/// The notification delegate
556606
SWIFT_PROTOCOL("_TtP10Beaconstac20NotificationDelegate_")
3 Bytes
Binary file not shown.
1.4 KB
Binary file not shown.
-23.8 KB
Binary file not shown.
1.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)