@transistorsoft/capacitor-background-geolocation 7.0.5 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TransistorsoftCapacitorBackgroundGeolocation.podspec +4 -4
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +1 -1
- package/package.json +4 -3
- package/ios/Resources/PrivacyInfo.xcprivacy +0 -35
- package/ios/TSLocationManager.xcframework/Info.plist +0 -61
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources +0 -2033
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +0 -50
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +0 -536
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSConnectivityChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-22.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSConnectivityChangeEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL hasConnection;
|
|
12
|
-
|
|
13
|
-
-(instancetype) initWithHasConnection:(BOOL)hasConnection;
|
|
14
|
-
-(NSDictionary*) toDictionary;
|
|
15
|
-
@end
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSCurrentPositionRequest.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-11.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import "TSLocation.h"
|
|
9
|
-
|
|
10
|
-
@interface TSCurrentPositionRequest : NSObject
|
|
11
|
-
|
|
12
|
-
@property (atomic) NSTimeInterval timeout;
|
|
13
|
-
@property (atomic) double maximumAge;
|
|
14
|
-
@property (atomic) BOOL persist;
|
|
15
|
-
@property (atomic) int samples;
|
|
16
|
-
@property (atomic) CLLocationAccuracy desiredAccuracy;
|
|
17
|
-
@property (atomic) NSDictionary* extras;
|
|
18
|
-
@property (atomic, copy) void (^success)(TSLocation*);
|
|
19
|
-
@property (atomic, copy) void (^failure)(NSError*);
|
|
20
|
-
|
|
21
|
-
-(instancetype) init;
|
|
22
|
-
-(instancetype) initWithSuccess:(void (^)(TSLocation*))success failure:(void (^)(NSError*))failure;
|
|
23
|
-
|
|
24
|
-
-(instancetype) initWithPersist:(BOOL)persist
|
|
25
|
-
success:(void (^)(TSLocation*))success
|
|
26
|
-
failure:(void (^)(NSError*))failure;
|
|
27
|
-
|
|
28
|
-
-(instancetype) initWithPersist:(BOOL)persist
|
|
29
|
-
samples:(int)samples
|
|
30
|
-
success:(void (^)(TSLocation*))success
|
|
31
|
-
failure:(void (^)(NSError*))failure;
|
|
32
|
-
|
|
33
|
-
-(instancetype) initWithTimeout:(int)timeout
|
|
34
|
-
maximumAge:(double)maximumAge
|
|
35
|
-
persist:(BOOL)persist
|
|
36
|
-
samples:(int)samples
|
|
37
|
-
desiredAccuracy:(CLLocationAccuracy)desiredAccuracy
|
|
38
|
-
extras:(NSDictionary*)extras
|
|
39
|
-
success:(void (^)(TSLocation*))success
|
|
40
|
-
failure:(void (^)(NSError*))failure;
|
|
41
|
-
|
|
42
|
-
@end
|
|
43
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// DeviceInfo.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2019-11-21.
|
|
6
|
-
// Copyright © 2019 Christopher Scott. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import <objc/runtime.h>
|
|
9
|
-
#import <sys/utsname.h>
|
|
10
|
-
|
|
11
|
-
@interface TSDeviceInfo:NSObject
|
|
12
|
-
|
|
13
|
-
+ (TSDeviceInfo *)sharedInstance;
|
|
14
|
-
|
|
15
|
-
@property(nonatomic) NSString* model;
|
|
16
|
-
@property(nonatomic) NSString* manufacturer;
|
|
17
|
-
@property(nonatomic) NSString* platform;
|
|
18
|
-
@property(nonatomic) NSString* version;
|
|
19
|
-
|
|
20
|
-
-(NSDictionary*) toDictionary;
|
|
21
|
-
-(NSDictionary*) toDictionary:(NSString*)framework;
|
|
22
|
-
|
|
23
|
-
@end
|
|
24
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSEnabledChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-22.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSEnabledChangeEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL enabled;
|
|
12
|
-
-(instancetype) initWithEnabled:(BOOL)enabled;
|
|
13
|
-
|
|
14
|
-
@end
|
|
15
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofence.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-12-21.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@interface TSGeofence : NSObject
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
@property (nonatomic) NSString* identifier;
|
|
15
|
-
@property (nonatomic) CLLocationDistance radius;
|
|
16
|
-
|
|
17
|
-
@property (nonatomic) CLLocationDegrees latitude;
|
|
18
|
-
@property (nonatomic) CLLocationDegrees longitude;
|
|
19
|
-
@property (nonatomic) BOOL notifyOnEntry;
|
|
20
|
-
@property (nonatomic) BOOL notifyOnExit;
|
|
21
|
-
@property (nonatomic) BOOL notifyOnDwell;
|
|
22
|
-
@property (nonatomic) double loiteringDelay;
|
|
23
|
-
@property (nonatomic) NSDictionary* extras;
|
|
24
|
-
@property (nonatomic) NSArray* vertices;
|
|
25
|
-
/**
|
|
26
|
-
* Arbitrary extra data attached to the geofence
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
-(instancetype) initWithIdentifier:(NSString*)identifier
|
|
30
|
-
radius:(CLLocationDistance)radius
|
|
31
|
-
latitude:(CLLocationDegrees)latitude
|
|
32
|
-
longitude:(CLLocationDegrees)lontitude
|
|
33
|
-
notifyOnEntry:(BOOL)notifyOnEntry
|
|
34
|
-
notifyOnExit:(BOOL)notifyOnExit
|
|
35
|
-
notifyOnDwell:(BOOL)notifyOnDwell
|
|
36
|
-
loiteringDelay:(double)loiteringDelay;
|
|
37
|
-
|
|
38
|
-
-(instancetype) initWithIdentifier:(NSString*)identifier
|
|
39
|
-
radius:(CLLocationDistance)radius
|
|
40
|
-
latitude:(CLLocationDegrees)latitude
|
|
41
|
-
longitude:(CLLocationDegrees)longitude
|
|
42
|
-
notifyOnEntry:(BOOL)notifyOnEntry
|
|
43
|
-
notifyOnExit:(BOOL)notifyOnExit
|
|
44
|
-
notifyOnDwell:(BOOL)notifyOnDwell
|
|
45
|
-
loiteringDelay:(double)loiteringDelay
|
|
46
|
-
extras:(NSDictionary*)extras
|
|
47
|
-
vertices:(NSArray*)vertices;
|
|
48
|
-
|
|
49
|
-
- (NSDictionary*) toDictionary;
|
|
50
|
-
- (BOOL) isPolygon;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@end
|
|
54
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofenceEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-03-27.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "TSLocation.h"
|
|
11
|
-
#import "TSGeofence.h"
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
The event object provided to `-[TSLocationManager onGeofence:]`
|
|
15
|
-
|
|
16
|
-
```obj-c
|
|
17
|
-
TSLocationManager *bgGeo = [TSLocationManager sharedInstance];
|
|
18
|
-
[bgGeo onGeofence:^(TSGeofenceEvent *event) {
|
|
19
|
-
NSLog(@"[onGeofence]: %@", event);
|
|
20
|
-
}];
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
@interface TSGeofenceEvent : NSObject
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/// The location associated with this geofence event.
|
|
30
|
-
@property (nonatomic, readonly) TSLocation* location;
|
|
31
|
-
/// The triggered geofence
|
|
32
|
-
@property (nonatomic, readonly) TSGeofence* geofence;
|
|
33
|
-
/// The region instance.
|
|
34
|
-
@property (nonatomic, readonly) CLCircularRegion* region;
|
|
35
|
-
|
|
36
|
-
@property (nonatomic) NSDate *timestamp;
|
|
37
|
-
|
|
38
|
-
/// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
|
|
39
|
-
@property (nonatomic, readonly) NSString* action;
|
|
40
|
-
/// :nodoc:
|
|
41
|
-
@property (nonatomic, readonly) BOOL isLoitering;
|
|
42
|
-
|
|
43
|
-
/// :nodoc:
|
|
44
|
-
@property (nonatomic, readonly) BOOL isFinishedLoitering;
|
|
45
|
-
|
|
46
|
-
/// :nodoc:
|
|
47
|
-
-(instancetype)initWithGeofence:(TSGeofence*)geofence region:(CLCircularRegion*)circularRegion action:(NSString*)actionName;
|
|
48
|
-
-(instancetype)initWithGeofence:(TSGeofence*)geofence action:(NSString*)actionName;
|
|
49
|
-
|
|
50
|
-
/// :nodoc:
|
|
51
|
-
-(void) startLoiteringAt:(CLLocation*)location callback:(void (^)(void))callback;
|
|
52
|
-
/// :nodoc:
|
|
53
|
-
-(BOOL) isLoiteringAt:(CLLocation*)location;
|
|
54
|
-
/// :nodoc:
|
|
55
|
-
-(void) setTriggerLocation:(CLLocation*)location;
|
|
56
|
-
/// :nodoc:
|
|
57
|
-
-(void) cancel;
|
|
58
|
-
|
|
59
|
-
/// Returns an `NSDictionary` representaton.
|
|
60
|
-
-(NSDictionary*)toDictionary;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@end
|
|
64
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// GeofenceManager.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-10-04.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <CoreLocation/CoreLocation.h>
|
|
11
|
-
#import "TSGeofenceEvent.h"
|
|
12
|
-
#import "TSGeofencesChangeEvent.h"
|
|
13
|
-
|
|
14
|
-
extern NSString *const STATIONARY_REGION_IDENTIFIER;
|
|
15
|
-
|
|
16
|
-
@interface TSGeofenceManager : NSObject<CLLocationManagerDelegate>
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@property (copy) void (^onGeofence) (TSGeofenceEvent* event);
|
|
22
|
-
|
|
23
|
-
@property (atomic) BOOL isMoving;
|
|
24
|
-
@property (atomic) BOOL enabled;
|
|
25
|
-
@property (atomic) BOOL evaluated;
|
|
26
|
-
@property (atomic) BOOL isUpdatingLocation;
|
|
27
|
-
@property (atomic) BOOL isEvaluatingEvents;
|
|
28
|
-
@property (atomic) BOOL isRequestingLocation;
|
|
29
|
-
@property (atomic) BOOL isMonitoringSignificantChanges;
|
|
30
|
-
@property (atomic) BOOL willEvaluateProximity;
|
|
31
|
-
@property (atomic) CLLocation *lastLocation;
|
|
32
|
-
|
|
33
|
-
@property (atomic, readonly) NSMutableArray *geofencesChangeListeners;
|
|
34
|
-
@property (atomic, readonly) NSMutableArray *geofenceListeners;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// Event listeners
|
|
38
|
-
-(void) onGeofencesChange:(void (^)(TSGeofencesChangeEvent*))success;
|
|
39
|
-
-(void) onGeofence:(void (^)(TSGeofenceEvent*))success;
|
|
40
|
-
-(void) un:(NSString*)event callback:(void(^)(id))callback;
|
|
41
|
-
-(void) removeListeners;
|
|
42
|
-
-(void) start;
|
|
43
|
-
-(void) stop;
|
|
44
|
-
-(void) ready;
|
|
45
|
-
-(void) setLocation:(CLLocation*)location isMoving:(BOOL)isMoving;
|
|
46
|
-
-(void) setProximityRadius:(CLLocationDistance)radius;
|
|
47
|
-
-(BOOL) isMonitoringRegion:(CLCircularRegion*)region;
|
|
48
|
-
-(void) didBecomeStationary:(CLLocation*)locaiton;
|
|
49
|
-
-(NSString*) identifierFor:(CLCircularRegion*)region;
|
|
50
|
-
-(void) create:(NSArray*)geofences success:(void (^)(void))success failure:(void (^)(NSString*))failure;
|
|
51
|
-
-(void) destroy:(NSArray*)identifiers success:(void (^)(void))success failure:(void (^)(NSString*))failure;
|
|
52
|
-
-(BOOL) isInfiniteMonitoring;
|
|
53
|
-
|
|
54
|
-
@end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofencesChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-29.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import "TSSchedule.h"
|
|
9
|
-
|
|
10
|
-
@interface TSGeofencesChangeEvent : NSObject
|
|
11
|
-
|
|
12
|
-
@property (nonatomic, readonly) NSArray* on;
|
|
13
|
-
@property (nonatomic, readonly) NSArray* off;
|
|
14
|
-
|
|
15
|
-
-(id) initWithOn:(NSArray*)on off:(NSArray*)off;
|
|
16
|
-
-(NSDictionary*) toDictionary;
|
|
17
|
-
@end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSHeartbeat.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-28.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "TSLocation.h"
|
|
10
|
-
|
|
11
|
-
@interface TSHeartbeatEvent : NSObject
|
|
12
|
-
|
|
13
|
-
@property (nonatomic, readonly) TSLocation* location;
|
|
14
|
-
|
|
15
|
-
-(id) initWithLocation:(CLLocation*)location;
|
|
16
|
-
-(NSDictionary*) toDictionary;
|
|
17
|
-
@end
|
|
18
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSHttpResponse.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-28.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSHttpEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL isSuccess;
|
|
12
|
-
@property (nonatomic, readonly) NSInteger statusCode;
|
|
13
|
-
@property (nonatomic, readonly) NSDictionary *requestData;
|
|
14
|
-
@property (nonatomic, readonly) NSString *responseText;
|
|
15
|
-
@property (nonatomic, readonly) NSError *error;
|
|
16
|
-
|
|
17
|
-
-(id) initWithStatusCode:(NSInteger)statusCode requestData:(NSDictionary*)requestData responseData:(NSData*)responseData error:(NSError*)error;
|
|
18
|
-
-(NSDictionary*) toDictionary;
|
|
19
|
-
@end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSScheduler.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-04-26.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// TSScheduler
|
|
10
|
-
// TODO This should be decoupled into some sort of plugin
|
|
11
|
-
//
|
|
12
|
-
#import <Foundation/Foundation.h>
|
|
13
|
-
#import <UIKit/UIKit.h>
|
|
14
|
-
#import "TSConnectivityChangeEvent.h"
|
|
15
|
-
#import "TSAuthorizationEvent.h"
|
|
16
|
-
#import "AtomicBoolean.h"
|
|
17
|
-
#import "HttpRequest.h"
|
|
18
|
-
#import "TSReachability.h"
|
|
19
|
-
#import "TSCallback.h"
|
|
20
|
-
|
|
21
|
-
@class TSHttpService;
|
|
22
|
-
|
|
23
|
-
@interface TSHttpService : NSObject
|
|
24
|
-
|
|
25
|
-
#pragma mark - Singleton
|
|
26
|
-
+ (TSHttpService *)sharedInstance;
|
|
27
|
-
|
|
28
|
-
#pragma mark - Properties
|
|
29
|
-
|
|
30
|
-
@property (copy) void (^httpResponseBlock) (HttpRequest *request, HttpResponse *response);
|
|
31
|
-
|
|
32
|
-
@property (nonatomic) AtomicBoolean *isBusy;
|
|
33
|
-
@property (nonatomic) BOOL hasNetworkConnection;
|
|
34
|
-
|
|
35
|
-
@property (nonatomic, readonly) NSMutableArray *syncedRecords;
|
|
36
|
-
@property (nonatomic, readonly) TSReachability *reachability;
|
|
37
|
-
@property (nonatomic, readonly) UIBackgroundTaskIdentifier bgTask;
|
|
38
|
-
|
|
39
|
-
@property (nonatomic, readonly) NSMutableSet *connectivityChangeListeners;
|
|
40
|
-
@property (nonatomic, readonly) NSMutableSet *authorizationListeners;
|
|
41
|
-
|
|
42
|
-
@property (nonatomic) TSCallback *callback;
|
|
43
|
-
@property (nonatomic) long autoSyncThreshold;
|
|
44
|
-
|
|
45
|
-
#pragma mark - Methods
|
|
46
|
-
-(void)flush;
|
|
47
|
-
-(void)flush:(BOOL)overrideSyncThreshold;
|
|
48
|
-
-(void)flush:(void(^)(NSArray*))success failure:(void(^)(NSError*))failure;
|
|
49
|
-
-(void)startMonitoring;
|
|
50
|
-
-(void)stopMonitoring;
|
|
51
|
-
|
|
52
|
-
-(void)onConnectivityChange:(void (^)(TSConnectivityChangeEvent*))success;
|
|
53
|
-
-(void)onAuthorization:(void(^)(TSAuthorizationEvent*))callback;
|
|
54
|
-
-(void)un:(NSString*)event callback:(void(^)(id))callback;
|
|
55
|
-
-(void)removeListeners;
|
|
56
|
-
-(void)removeListeners:(NSString*)event;
|
|
57
|
-
|
|
58
|
-
@end
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSLocation.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-02-11.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSLocation : NSObject
|
|
10
|
-
|
|
11
|
-
// Location types
|
|
12
|
-
typedef enum tsLocationType : NSInteger {
|
|
13
|
-
TS_LOCATION_TYPE_MOTIONCHANGE = 0,
|
|
14
|
-
TS_LOCATION_TYPE_TRACKING = 1,
|
|
15
|
-
TS_LOCATION_TYPE_CURRENT = 2,
|
|
16
|
-
TS_LOCATION_TYPE_SAMPLE = 3,
|
|
17
|
-
TS_LOCATION_TYPE_WATCH = 4,
|
|
18
|
-
TS_LOCATION_TYPE_GEOFENCE = 5,
|
|
19
|
-
TS_LOCATION_TYPE_HEARTBEAT = 6
|
|
20
|
-
} tsLocationtype;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The native CLLocation instance
|
|
24
|
-
*/
|
|
25
|
-
@property (nonatomic, readonly) CLLocation* location;
|
|
26
|
-
/**
|
|
27
|
-
* Universally unique identifier. The uuid is used to locate the record in the database. It is also posted by default in HTTP requests so your server can determine if a duplicate location has been posted. It's also helpful to match a location received at your server to entries in the plugin logs.
|
|
28
|
-
*/
|
|
29
|
-
@property (nonatomic, readonly) NSString *uuid;
|
|
30
|
-
/**
|
|
31
|
-
* The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
|
|
32
|
-
*/
|
|
33
|
-
@property (nonatomic, readonly) NSString *timestamp;
|
|
34
|
-
|
|
35
|
-
@property (nonatomic, readonly) NSNumber *age;
|
|
36
|
-
/**
|
|
37
|
-
* The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
|
|
38
|
-
*/
|
|
39
|
-
@property (nonatomic, readonly) enum tsLocationType type;
|
|
40
|
-
/**
|
|
41
|
-
* YES when location was recorded while device is in motion; NO otherwise.
|
|
42
|
-
*/
|
|
43
|
-
@property (nonatomic, readonly) BOOL isMoving;
|
|
44
|
-
/**
|
|
45
|
-
* Arbitrary extras data attached to the location.
|
|
46
|
-
*/
|
|
47
|
-
@property (nonatomic, readonly) NSDictionary* extras;
|
|
48
|
-
/**
|
|
49
|
-
* For internal use only. Geofence data rendered to NSDictionary for posting to server.
|
|
50
|
-
*/
|
|
51
|
-
@property (nonatomic, readonly) NSDictionary* geofence;
|
|
52
|
-
// Battery
|
|
53
|
-
/**
|
|
54
|
-
* YES when device is plugged into power and charging
|
|
55
|
-
*/
|
|
56
|
-
@property (nonatomic, readonly) BOOL batteryIsCharging;
|
|
57
|
-
/**
|
|
58
|
-
* The battery level between 0 (empty) and 1 (full)
|
|
59
|
-
*/
|
|
60
|
-
@property (nonatomic, readonly) NSNumber *batteryLevel;
|
|
61
|
-
// Activity
|
|
62
|
-
/**
|
|
63
|
-
* Activity type rendered as string: still|on_foot|in_vehicle|running|on_bicycle
|
|
64
|
-
*/
|
|
65
|
-
@property (nonatomic, readonly) NSString *activityType;
|
|
66
|
-
/**
|
|
67
|
-
* Confidence of activity-type estimation as % 0-100
|
|
68
|
-
*/
|
|
69
|
-
@property (nonatomic, readonly) NSNumber *activityConfidence;
|
|
70
|
-
// State
|
|
71
|
-
/**
|
|
72
|
-
* YES when recorded location is a sample. The plugin records multiple locations for particular events, such as "motionchange" in order to determine
|
|
73
|
-
* highest accuracy location before persisting that location to the database and POSTing to your configured #url. Location "samples" are not persisted
|
|
74
|
-
* to the plugin's database, nor are they posted to your configured #url
|
|
75
|
-
*/
|
|
76
|
-
@property (nonatomic, readonly) BOOL isSample;
|
|
77
|
-
|
|
78
|
-
@property (nonatomic, readonly) BOOL mock;
|
|
79
|
-
/**
|
|
80
|
-
* YES when this location was provided to a heartbeat event
|
|
81
|
-
*/
|
|
82
|
-
@property (nonatomic, readonly) BOOL isHeartbeat;
|
|
83
|
-
/**
|
|
84
|
-
* The current value of the odometer in meters
|
|
85
|
-
*/
|
|
86
|
-
@property (nonatomic, readonly) NSNumber *odometer;
|
|
87
|
-
/**
|
|
88
|
-
* The event associated with this location: location|motionchange|heartbeat|providerchange
|
|
89
|
-
*/
|
|
90
|
-
@property (nonatomic, readonly) NSString *event;
|
|
91
|
-
|
|
92
|
-
-(instancetype) initWithLocation:(CLLocation*)location;
|
|
93
|
-
-(instancetype) initWithLocation:(CLLocation*)location type:(enum tsLocationType)type extras:(NSDictionary*)extras;
|
|
94
|
-
-(instancetype) initWithLocation:(CLLocation*)location geofence:(NSDictionary*)geofenceData;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Render location-data as JSON string
|
|
98
|
-
*/
|
|
99
|
-
- (NSData*)toJson:(NSError**)error;
|
|
100
|
-
/**
|
|
101
|
-
* Render location-data as NSDictionary
|
|
102
|
-
*/
|
|
103
|
-
- (NSDictionary*)toDictionary;
|
|
104
|
-
|
|
105
|
-
@end
|