hypertrack-sdk-react-native 7.19.0 → 8.0.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/CHANGELOG.md +14 -0
- package/CONTRIBUTING.md +154 -0
- package/README.md +25 -16
- package/android/build.gradle +141 -35
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +6 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/src/main/AndroidManifest.xml +2 -3
- package/android/src/main/java/com/reactnativehypertracksdk/HyperTrackModule.kt +284 -0
- package/android/src/main/java/com/reactnativehypertracksdk/HyperTrackSdkPackage.kt +17 -0
- package/hypertrack-sdk-react-native.podspec +34 -15
- package/ios/{RNHyperTrack/RNHyperTrack.h → HyperTrack.h} +1 -2
- package/ios/HyperTrack.m +384 -0
- package/ios/{RNHyperTrack.xcodeproj → HyperTrackSdk.xcodeproj}/project.pbxproj +70 -99
- package/lib/commonjs/HyperTrack/HyperTrack.js +244 -0
- package/lib/commonjs/HyperTrack/HyperTrack.js.map +1 -0
- package/lib/commonjs/index.js +52 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/HyperTrack/HyperTrack.js +230 -0
- package/lib/module/HyperTrack/HyperTrack.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/HyperTrack/HyperTrack.d.ts +161 -0
- package/lib/typescript/index.d.ts +4 -0
- package/package.json +145 -47
- package/src/HyperTrack/HyperTrack.ts +273 -0
- package/src/index.tsx +11 -0
- package/android/src/main/java/com/hypertrack/reactnative/androidsdk/HTSDKModule.java +0 -301
- package/android/src/main/java/com/hypertrack/reactnative/androidsdk/HTSDKPackage.java +0 -29
- package/ios/RNHyperTrack/RNHyperTrack.m +0 -312
- package/ios/RNHyperTrack.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNHyperTrack.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNHyperTrack.xcodeproj/project.xcworkspace/xcuserdata/tulushev.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNHyperTrack.xcodeproj/xcuserdata/tulushev.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/js/CriticalErrors.js +0 -97
- package/js/EventEmitter.js +0 -11
- package/js/HyperTrack.js +0 -130
- package/js/index.js +0 -13
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
archiveVersion = 1;
|
|
4
4
|
classes = {
|
|
5
5
|
};
|
|
6
|
-
objectVersion =
|
|
6
|
+
objectVersion = 46;
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
10
|
+
12CFB2D62872FAE100FEE5E6 /* HyperTrack.m in Sources */ = {isa = PBXBuildFile; fileRef = 12CFB2D52872FAE100FEE5E6 /* HyperTrack.m */; };
|
|
11
11
|
/* End PBXBuildFile section */
|
|
12
12
|
|
|
13
13
|
/* Begin PBXCopyFilesBuildPhase section */
|
|
14
|
-
|
|
14
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
15
15
|
isa = PBXCopyFilesBuildPhase;
|
|
16
16
|
buildActionMask = 2147483647;
|
|
17
17
|
dstPath = "include/$(PRODUCT_NAME)";
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
/* End PBXCopyFilesBuildPhase section */
|
|
24
24
|
|
|
25
25
|
/* Begin PBXFileReference section */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
12CFB2D52872FAE100FEE5E6 /* HyperTrack.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HyperTrack.m; sourceTree = "<group>"; };
|
|
27
|
+
12CFB2D72872FAFE00FEE5E6 /* HyperTrack.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HyperTrack.h; sourceTree = "<group>"; };
|
|
28
|
+
134814201AA4EA6300B7C361 /* libHyperTrackSdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperTrackSdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
F4FF95D5245B92E700C19C63 /* HyperTrackSdk-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HyperTrackSdk-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
29
30
|
/* End PBXFileReference section */
|
|
30
31
|
|
|
31
32
|
/* Begin PBXFrameworksBuildPhase section */
|
|
32
|
-
|
|
33
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
33
34
|
isa = PBXFrameworksBuildPhase;
|
|
34
35
|
buildActionMask = 2147483647;
|
|
35
36
|
files = (
|
|
@@ -39,132 +40,118 @@
|
|
|
39
40
|
/* End PBXFrameworksBuildPhase section */
|
|
40
41
|
|
|
41
42
|
/* Begin PBXGroup section */
|
|
42
|
-
|
|
43
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
43
44
|
isa = PBXGroup;
|
|
44
45
|
children = (
|
|
45
|
-
|
|
46
|
-
B4868ABD2523842E00E37CF0 /* Products */,
|
|
47
|
-
);
|
|
48
|
-
sourceTree = "<group>";
|
|
49
|
-
};
|
|
50
|
-
B4868ABD2523842E00E37CF0 /* Products */ = {
|
|
51
|
-
isa = PBXGroup;
|
|
52
|
-
children = (
|
|
53
|
-
B4868ABC2523842E00E37CF0 /* libRNHyperTrack.a */,
|
|
46
|
+
134814201AA4EA6300B7C361 /* libHyperTrackSdk.a */,
|
|
54
47
|
);
|
|
55
48
|
name = Products;
|
|
56
49
|
sourceTree = "<group>";
|
|
57
50
|
};
|
|
58
|
-
|
|
51
|
+
58B511D21A9E6C8500147676 = {
|
|
59
52
|
isa = PBXGroup;
|
|
60
53
|
children = (
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
12CFB2D52872FAE100FEE5E6 /* HyperTrack.m */,
|
|
55
|
+
12CFB2D72872FAFE00FEE5E6 /* HyperTrack.h */,
|
|
56
|
+
F4FF95D5245B92E700C19C63 /* HyperTrackSdk-Bridging-Header.h */,
|
|
57
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
63
58
|
);
|
|
64
|
-
path = RNHyperTrack;
|
|
65
59
|
sourceTree = "<group>";
|
|
66
60
|
};
|
|
67
61
|
/* End PBXGroup section */
|
|
68
62
|
|
|
69
63
|
/* Begin PBXNativeTarget section */
|
|
70
|
-
|
|
64
|
+
58B511DA1A9E6C8500147676 /* HyperTrackSdk */ = {
|
|
71
65
|
isa = PBXNativeTarget;
|
|
72
|
-
buildConfigurationList =
|
|
66
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperTrackSdk" */;
|
|
73
67
|
buildPhases = (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
69
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
70
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
77
71
|
);
|
|
78
72
|
buildRules = (
|
|
79
73
|
);
|
|
80
74
|
dependencies = (
|
|
81
75
|
);
|
|
82
|
-
name =
|
|
83
|
-
productName =
|
|
84
|
-
productReference =
|
|
76
|
+
name = HyperTrackSdk;
|
|
77
|
+
productName = RCTDataManager;
|
|
78
|
+
productReference = 134814201AA4EA6300B7C361 /* libHyperTrackSdk.a */;
|
|
85
79
|
productType = "com.apple.product-type.library.static";
|
|
86
80
|
};
|
|
87
81
|
/* End PBXNativeTarget section */
|
|
88
82
|
|
|
89
83
|
/* Begin PBXProject section */
|
|
90
|
-
|
|
84
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
91
85
|
isa = PBXProject;
|
|
92
86
|
attributes = {
|
|
93
|
-
LastUpgradeCheck =
|
|
87
|
+
LastUpgradeCheck = 0920;
|
|
88
|
+
ORGANIZATIONNAME = Facebook;
|
|
94
89
|
TargetAttributes = {
|
|
95
|
-
|
|
96
|
-
CreatedOnToolsVersion =
|
|
90
|
+
58B511DA1A9E6C8500147676 = {
|
|
91
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
97
92
|
};
|
|
98
93
|
};
|
|
99
94
|
};
|
|
100
|
-
buildConfigurationList =
|
|
101
|
-
compatibilityVersion = "Xcode
|
|
102
|
-
developmentRegion =
|
|
95
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperTrackSdk" */;
|
|
96
|
+
compatibilityVersion = "Xcode 3.2";
|
|
97
|
+
developmentRegion = English;
|
|
103
98
|
hasScannedForEncodings = 0;
|
|
104
99
|
knownRegions = (
|
|
100
|
+
English,
|
|
105
101
|
en,
|
|
106
|
-
Base,
|
|
107
102
|
);
|
|
108
|
-
mainGroup =
|
|
109
|
-
productRefGroup =
|
|
103
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
104
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
110
105
|
projectDirPath = "";
|
|
111
106
|
projectRoot = "";
|
|
112
107
|
targets = (
|
|
113
|
-
|
|
108
|
+
58B511DA1A9E6C8500147676 /* HyperTrackSdk */,
|
|
114
109
|
);
|
|
115
110
|
};
|
|
116
111
|
/* End PBXProject section */
|
|
117
112
|
|
|
118
113
|
/* Begin PBXSourcesBuildPhase section */
|
|
119
|
-
|
|
114
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
120
115
|
isa = PBXSourcesBuildPhase;
|
|
121
116
|
buildActionMask = 2147483647;
|
|
122
117
|
files = (
|
|
123
|
-
|
|
118
|
+
12CFB2D62872FAE100FEE5E6 /* HyperTrack.m in Sources */,
|
|
124
119
|
);
|
|
125
120
|
runOnlyForDeploymentPostprocessing = 0;
|
|
126
121
|
};
|
|
127
122
|
/* End PBXSourcesBuildPhase section */
|
|
128
123
|
|
|
129
124
|
/* Begin XCBuildConfiguration section */
|
|
130
|
-
|
|
125
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
131
126
|
isa = XCBuildConfiguration;
|
|
132
127
|
buildSettings = {
|
|
133
128
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
134
|
-
|
|
135
|
-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
136
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
129
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
137
130
|
CLANG_CXX_LIBRARY = "libc++";
|
|
138
131
|
CLANG_ENABLE_MODULES = YES;
|
|
139
132
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
140
|
-
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
141
133
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
142
134
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
143
135
|
CLANG_WARN_COMMA = YES;
|
|
144
136
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
145
|
-
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
146
137
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
147
|
-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
148
138
|
CLANG_WARN_EMPTY_BODY = YES;
|
|
149
139
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
150
140
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
151
141
|
CLANG_WARN_INT_CONVERSION = YES;
|
|
152
142
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
153
|
-
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
154
143
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
155
144
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
156
|
-
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
157
145
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
158
146
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
159
147
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
160
|
-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
161
148
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
162
149
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
163
150
|
COPY_PHASE_STRIP = NO;
|
|
164
|
-
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
165
151
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
166
152
|
ENABLE_TESTABILITY = YES;
|
|
167
|
-
|
|
153
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
154
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
168
155
|
GCC_DYNAMIC_NO_PIC = NO;
|
|
169
156
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
170
157
|
GCC_OPTIMIZATION_LEVEL = 0;
|
|
@@ -172,58 +159,50 @@
|
|
|
172
159
|
"DEBUG=1",
|
|
173
160
|
"$(inherited)",
|
|
174
161
|
);
|
|
162
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
175
163
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
176
164
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
177
165
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
178
166
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
179
167
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
180
168
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
181
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
182
|
-
MTL_ENABLE_DEBUG_INFO =
|
|
183
|
-
MTL_FAST_MATH = YES;
|
|
169
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
170
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
184
171
|
ONLY_ACTIVE_ARCH = YES;
|
|
185
172
|
SDKROOT = iphoneos;
|
|
186
173
|
};
|
|
187
174
|
name = Debug;
|
|
188
175
|
};
|
|
189
|
-
|
|
176
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
190
177
|
isa = XCBuildConfiguration;
|
|
191
178
|
buildSettings = {
|
|
192
179
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
193
|
-
|
|
194
|
-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
195
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
180
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
196
181
|
CLANG_CXX_LIBRARY = "libc++";
|
|
197
182
|
CLANG_ENABLE_MODULES = YES;
|
|
198
183
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
199
|
-
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
200
184
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
201
185
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
202
186
|
CLANG_WARN_COMMA = YES;
|
|
203
187
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
204
|
-
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
205
188
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
206
|
-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
207
189
|
CLANG_WARN_EMPTY_BODY = YES;
|
|
208
190
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
209
191
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
210
192
|
CLANG_WARN_INT_CONVERSION = YES;
|
|
211
193
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
212
|
-
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
213
194
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
214
195
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
215
|
-
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
216
196
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
217
197
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
218
198
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
219
|
-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
220
199
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
221
200
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
222
|
-
COPY_PHASE_STRIP =
|
|
223
|
-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
201
|
+
COPY_PHASE_STRIP = YES;
|
|
224
202
|
ENABLE_NS_ASSERTIONS = NO;
|
|
225
203
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
226
|
-
|
|
204
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
205
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
227
206
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
228
207
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
229
208
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
@@ -231,80 +210,72 @@
|
|
|
231
210
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
232
211
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
233
212
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
234
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
213
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
235
214
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
236
|
-
MTL_FAST_MATH = YES;
|
|
237
215
|
SDKROOT = iphoneos;
|
|
238
216
|
VALIDATE_PRODUCT = YES;
|
|
239
217
|
};
|
|
240
218
|
name = Release;
|
|
241
219
|
};
|
|
242
|
-
|
|
220
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
243
221
|
isa = XCBuildConfiguration;
|
|
244
222
|
buildSettings = {
|
|
245
|
-
CODE_SIGN_STYLE = Automatic;
|
|
246
|
-
DEVELOPMENT_TEAM = H4925W78YQ;
|
|
247
|
-
FRAMEWORK_SEARCH_PATHS = (
|
|
248
|
-
"$(PROJECT_DIR)/../HyperTrack/**",
|
|
249
|
-
"$(PROJECT_DIR)/../../../ios/Pods/HyperTrack",
|
|
250
|
-
);
|
|
251
223
|
HEADER_SEARCH_PATHS = (
|
|
252
224
|
"$(inherited)",
|
|
253
225
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
254
|
-
"$(SRCROOT)
|
|
226
|
+
"$(SRCROOT)/../../../React/**",
|
|
255
227
|
"$(SRCROOT)/../../react-native/React/**",
|
|
256
228
|
);
|
|
229
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
257
230
|
OTHER_LDFLAGS = "-ObjC";
|
|
258
|
-
PRODUCT_NAME =
|
|
231
|
+
PRODUCT_NAME = HyperTrackSdk;
|
|
259
232
|
SKIP_INSTALL = YES;
|
|
260
|
-
|
|
233
|
+
SWIFT_OBJC_BRIDGING_HEADER = "HyperTrackSdk-Bridging-Header.h";
|
|
234
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
235
|
+
SWIFT_VERSION = 5.0;
|
|
261
236
|
};
|
|
262
237
|
name = Debug;
|
|
263
238
|
};
|
|
264
|
-
|
|
239
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
265
240
|
isa = XCBuildConfiguration;
|
|
266
241
|
buildSettings = {
|
|
267
|
-
CODE_SIGN_STYLE = Automatic;
|
|
268
|
-
DEVELOPMENT_TEAM = H4925W78YQ;
|
|
269
|
-
FRAMEWORK_SEARCH_PATHS = (
|
|
270
|
-
"$(PROJECT_DIR)/../HyperTrack/**",
|
|
271
|
-
"$(PROJECT_DIR)/../../../ios/Pods/HyperTrack",
|
|
272
|
-
);
|
|
273
242
|
HEADER_SEARCH_PATHS = (
|
|
274
243
|
"$(inherited)",
|
|
275
244
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
276
|
-
"$(SRCROOT)
|
|
245
|
+
"$(SRCROOT)/../../../React/**",
|
|
277
246
|
"$(SRCROOT)/../../react-native/React/**",
|
|
278
247
|
);
|
|
248
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
279
249
|
OTHER_LDFLAGS = "-ObjC";
|
|
280
|
-
PRODUCT_NAME =
|
|
250
|
+
PRODUCT_NAME = HyperTrackSdk;
|
|
281
251
|
SKIP_INSTALL = YES;
|
|
282
|
-
|
|
252
|
+
SWIFT_OBJC_BRIDGING_HEADER = "HyperTrackSdk-Bridging-Header.h";
|
|
253
|
+
SWIFT_VERSION = 5.0;
|
|
283
254
|
};
|
|
284
255
|
name = Release;
|
|
285
256
|
};
|
|
286
257
|
/* End XCBuildConfiguration section */
|
|
287
258
|
|
|
288
259
|
/* Begin XCConfigurationList section */
|
|
289
|
-
|
|
260
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperTrackSdk" */ = {
|
|
290
261
|
isa = XCConfigurationList;
|
|
291
262
|
buildConfigurations = (
|
|
292
|
-
|
|
293
|
-
|
|
263
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
264
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
294
265
|
);
|
|
295
266
|
defaultConfigurationIsVisible = 0;
|
|
296
267
|
defaultConfigurationName = Release;
|
|
297
268
|
};
|
|
298
|
-
|
|
269
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperTrackSdk" */ = {
|
|
299
270
|
isa = XCConfigurationList;
|
|
300
271
|
buildConfigurations = (
|
|
301
|
-
|
|
302
|
-
|
|
272
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
273
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
303
274
|
);
|
|
304
275
|
defaultConfigurationIsVisible = 0;
|
|
305
276
|
defaultConfigurationName = Release;
|
|
306
277
|
};
|
|
307
278
|
/* End XCConfigurationList section */
|
|
308
279
|
};
|
|
309
|
-
rootObject =
|
|
280
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
310
281
|
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.SDKError = exports.LocationError = exports.GeotagError = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
const LINKING_ERROR = `The package 'hypertrack-sdk-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
11
|
+
ios: "- You have run 'pod install'\n",
|
|
12
|
+
default: ''
|
|
13
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
14
|
+
const HyperTrackSdk = _reactNative.NativeModules.HyperTrack ? _reactNative.NativeModules.HyperTrack : new Proxy({}, {
|
|
15
|
+
get() {
|
|
16
|
+
throw new Error(LINKING_ERROR);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
});
|
|
20
|
+
const EventEmitter = new _reactNative.NativeEventEmitter(HyperTrackSdk);
|
|
21
|
+
let SDKError;
|
|
22
|
+
/**
|
|
23
|
+
* A base interface for errors in SDK.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
exports.SDKError = SDKError;
|
|
27
|
+
|
|
28
|
+
(function (SDKError) {
|
|
29
|
+
SDKError[SDKError["GENERAL"] = 0] = "GENERAL";
|
|
30
|
+
SDKError[SDKError["INVALID_PUBLISHABLE_KEY"] = 1] = "INVALID_PUBLISHABLE_KEY";
|
|
31
|
+
SDKError[SDKError["AUTHORIZATION_FAILED"] = 2] = "AUTHORIZATION_FAILED";
|
|
32
|
+
SDKError[SDKError["PERMISSION_DENIED"] = 3] = "PERMISSION_DENIED";
|
|
33
|
+
})(SDKError || (exports.SDKError = SDKError = {}));
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Interface for accessing adding geotag result.
|
|
37
|
+
*/
|
|
38
|
+
let GeotagError;
|
|
39
|
+
exports.GeotagError = GeotagError;
|
|
40
|
+
|
|
41
|
+
(function (GeotagError) {
|
|
42
|
+
GeotagError[GeotagError["PLATFORM_NOT_SUPPORTED"] = 0] = "PLATFORM_NOT_SUPPORTED";
|
|
43
|
+
GeotagError[GeotagError["LOCATION_MISMATCH"] = 1] = "LOCATION_MISMATCH";
|
|
44
|
+
GeotagError[GeotagError["LOCATION_NOT_AVAILABLE"] = 2] = "LOCATION_NOT_AVAILABLE";
|
|
45
|
+
GeotagError[GeotagError["INVALID_ARGUMENTS"] = 3] = "INVALID_ARGUMENTS";
|
|
46
|
+
})(GeotagError || (exports.GeotagError = GeotagError = {}));
|
|
47
|
+
|
|
48
|
+
let LocationError;
|
|
49
|
+
exports.LocationError = LocationError;
|
|
50
|
+
|
|
51
|
+
(function (LocationError) {
|
|
52
|
+
LocationError["LOCATION_PERMISSIONS_NOT_DETERMINED"] = "location_permissions_not_determined";
|
|
53
|
+
LocationError["LOCATION_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND"] = "location_permissions_cant_be_asked_in_background";
|
|
54
|
+
LocationError["LOCATION_PERMISSIONS_INSUFFICIENT_FOR_BACKGROUND"] = "location_permissions_insufficient_for_background";
|
|
55
|
+
LocationError["LOCATION_PERMISSIONS_RESTRICTED"] = "location_permissions_restricted";
|
|
56
|
+
LocationError["LOCATION_PERMISSIONS_REDUCED_ACCURACY"] = "location_permissions_reduced_accuracy";
|
|
57
|
+
LocationError["LOCATION_PERMISSIONS_DENIED"] = "location_permissions_denied";
|
|
58
|
+
LocationError["LOCATION_SERVICES_DISABLED"] = "location_services_disabled";
|
|
59
|
+
LocationError["MOTION_ACTIVITY_PERMISSIONS_NOT_DETERMINED"] = "motion_activity_permissions_not_determined";
|
|
60
|
+
LocationError["MOTION_ACTIVITY_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND"] = "motion_activity_permissions_cant_be_asked_in_background";
|
|
61
|
+
LocationError["MOTION_ACTIVITY_PERMISSIONS_DENIED"] = "motion_activity_permissions_denied";
|
|
62
|
+
LocationError["MOTION_ACTIVITY_SERVICES_DISABLED"] = "motion_activity_services_disabled";
|
|
63
|
+
LocationError["NOT_RUNNING"] = "not_running";
|
|
64
|
+
LocationError["GPS_SIGNAL_LOST"] = "gps_signal_lost";
|
|
65
|
+
LocationError["STARTING"] = "starting";
|
|
66
|
+
LocationError["LOCATION_MOCKED"] = "location_mocked";
|
|
67
|
+
})(LocationError || (exports.LocationError = LocationError = {}));
|
|
68
|
+
|
|
69
|
+
class HyperTrack {
|
|
70
|
+
constructor() {
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static async createInstance(publishableKey) {
|
|
75
|
+
let automaticallyRequestPermissions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
76
|
+
|
|
77
|
+
try {
|
|
78
|
+
await HyperTrackSdk.initialize(publishableKey, false, automaticallyRequestPermissions);
|
|
79
|
+
return new HyperTrack();
|
|
80
|
+
} catch (error) {
|
|
81
|
+
throw new Error(error.message);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Enables debug log output. This is very verbose, so you shouldn't use this for
|
|
86
|
+
* production build.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
static enableDebugLogging(enable) {
|
|
91
|
+
HyperTrack.enableDebugLogging(enable);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns a string which is used by HyperTrack to uniquely identify the user.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
async getDeviceID() {
|
|
99
|
+
return HyperTrackSdk.getDeviceID();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Device's availability for nearby search
|
|
103
|
+
*
|
|
104
|
+
* @returns true when is available or false when unavailable
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
isAvailable() {
|
|
109
|
+
return HyperTrackSdk.isAvailable();
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Allows you to set device availability for nearby search
|
|
113
|
+
*
|
|
114
|
+
* @param availability true when is available or false when unavailable
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
async setAvailability(availability) {
|
|
119
|
+
return HyperTrackSdk.setAvailability(availability);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Determine whether the SDK is tracking the movement of the user.
|
|
123
|
+
* @return {boolean} Whether the user's movement data is getting tracked or not.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
isTracking() {
|
|
128
|
+
return HyperTrackSdk.isTracking();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Update device state from server.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
syncDeviceSettings() {
|
|
136
|
+
HyperTrackSdk.syncDeviceSettings();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Start or resume tracking location and activity events.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
startTracking() {
|
|
144
|
+
HyperTrackSdk.startTracking();
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Stops the SDK from listening to the user's movement updates and recording any data.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
stopTracking() {
|
|
152
|
+
HyperTrackSdk.stopTracking();
|
|
153
|
+
} /// The current location of the user or an outage reason.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
getLocation() {
|
|
157
|
+
return HyperTrackSdk.getLocation();
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Listen for errors.
|
|
161
|
+
*
|
|
162
|
+
* @param listener (errors: {code, message}) => void
|
|
163
|
+
* @returns EmitterSubscription
|
|
164
|
+
* @example
|
|
165
|
+
* ```js
|
|
166
|
+
* const subscription = HyperTrack.subscribeToErrors(errors => {
|
|
167
|
+
* errors.forEach(error => {
|
|
168
|
+
* // ... error
|
|
169
|
+
* })
|
|
170
|
+
* })
|
|
171
|
+
*
|
|
172
|
+
* // later, to stop listening
|
|
173
|
+
* subscription.remove()
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
subscribeToErrors(listener) {
|
|
179
|
+
return EventEmitter.addListener('onTrackingErrorHyperTrack', listener);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Listen for tracking changes.
|
|
183
|
+
*
|
|
184
|
+
* @param listener (isTracking: boolean) => void
|
|
185
|
+
* @returns EmitterSubscription
|
|
186
|
+
* @example
|
|
187
|
+
* ```js
|
|
188
|
+
* const subscription = HyperTrack.subscribeToTracking(isTracking => {
|
|
189
|
+
* if (isTracking) {
|
|
190
|
+
* // ... ready to go
|
|
191
|
+
* }
|
|
192
|
+
* })
|
|
193
|
+
*
|
|
194
|
+
* // later, to stop listening
|
|
195
|
+
* subscription.remove()
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
subscribeToTracking(listener) {
|
|
201
|
+
return EventEmitter.addListener('onTrackingStateChanged', listener);
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Send device name to HyperTrack
|
|
205
|
+
* @param {string} name - Device name you want to see in the Dashboard.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
setDeviceName(name) {
|
|
210
|
+
HyperTrackSdk.setDeviceName(name);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Send metadata details to HyperTrack
|
|
214
|
+
* @param {Object} data - Send extra device information.
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
setMetadata(data) {
|
|
219
|
+
HyperTrackSdk.setMetadata(data);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated
|
|
223
|
+
* Set a trip marker
|
|
224
|
+
* @param {Object} _data - Include anything that can be parsed into JSON.
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
setTripMarker(_data) {
|
|
229
|
+
throw new Error('Deprecated');
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Add geotag
|
|
233
|
+
* @param {Object} data - Include anything that can be parsed into JSON.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
addGeotag(data) {
|
|
238
|
+
return HyperTrackSdk.addGeotag(data);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
exports.default = HyperTrack;
|
|
244
|
+
//# sourceMappingURL=HyperTrack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","HyperTrackSdk","NativeModules","HyperTrack","Proxy","get","Error","EventEmitter","NativeEventEmitter","SDKError","GeotagError","LocationError","constructor","createInstance","publishableKey","automaticallyRequestPermissions","initialize","error","message","enableDebugLogging","enable","getDeviceID","isAvailable","setAvailability","availability","isTracking","syncDeviceSettings","startTracking","stopTracking","getLocation","subscribeToErrors","listener","addListener","subscribeToTracking","setDeviceName","name","setMetadata","data","setTripMarker","_data","addGeotag"],"sources":["HyperTrack.ts"],"sourcesContent":["import { NativeModules, Platform, NativeEventEmitter } from 'react-native';\n\nconst LINKING_ERROR =\n `The package 'hypertrack-sdk-react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nconst HyperTrackSdk = NativeModules.HyperTrack\n ? NativeModules.HyperTrack\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nconst EventEmitter = new NativeEventEmitter(HyperTrackSdk);\n\nexport enum SDKError {\n /**\n * An error that we couldn't recognize.\n */\n GENERAL = 0,\n /**\n * Publishable key is invalid. Check your key on hypertrack dashboard setup.\n */\n INVALID_PUBLISHABLE_KEY = 1,\n /**\n * Your free trial ended or account was not renewed. Check your account on hypertrack dashboard.\n */\n AUTHORIZATION_FAILED = 2,\n /**\n * Tracking won't start due to denied (or absent) permission.\n */\n PERMISSION_DENIED = 3,\n}\n\n/**\n * A base interface for errors in SDK.\n */\nexport type Error = {\n code: SDKError;\n message?: string;\n};\n\n/**\n * Interface for accessing adding geotag result.\n */\nexport enum GeotagError {\n /** Expected location is not supported on this platform */\n PLATFORM_NOT_SUPPORTED = 0,\n /** Expected vs actual location difference is greater then required */\n LOCATION_MISMATCH = 1,\n /** SDK can't get actual location from OS sensors */\n LOCATION_NOT_AVAILABLE = 2,\n /** Invalid arguments */\n INVALID_ARGUMENTS = 3,\n}\n\nexport interface Location {\n location: {\n latitude: number;\n longitude: number;\n };\n}\n\nexport enum LocationError {\n // The user has not chosen whether the app can use location services.\n // SDK automatically asked for permissions.\n LOCATION_PERMISSIONS_NOT_DETERMINED = 'location_permissions_not_determined',\n // The user has not chosen whether the app can use location services.\n // SDK can't ask for permissions in background.\n LOCATION_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND = 'location_permissions_cant_be_asked_in_background',\n // Can't start tracking in background with When In Use location\n // permissions. SDK will automatically start tracking when app will return\n // to foreground.\n LOCATION_PERMISSIONS_INSUFFICIENT_FOR_BACKGROUND = 'location_permissions_insufficient_for_background',\n // The app is not authorized to use location services.\n LOCATION_PERMISSIONS_RESTRICTED = 'location_permissions_restricted',\n // The user didn't grant precise location permissions or downgraded permissions to imprecise.\n LOCATION_PERMISSIONS_REDUCED_ACCURACY = 'location_permissions_reduced_accuracy',\n // The user denied location permissions.\n LOCATION_PERMISSIONS_DENIED = 'location_permissions_denied',\n // The user disabled location services systemwide.\n LOCATION_SERVICES_DISABLED = 'location_services_disabled',\n // The user has not chosen whether the app can use motion activity\n // services. SDK automatically asked for permissions.\n MOTION_ACTIVITY_PERMISSIONS_NOT_DETERMINED = 'motion_activity_permissions_not_determined',\n // The user has not chosen whether the app can use motion activity\n // services. SDK can't ask for permissions in background.\n MOTION_ACTIVITY_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND = 'motion_activity_permissions_cant_be_asked_in_background',\n // Motion activity permissions denied after SDK's initialization. Granting\n // them will restart the app, so in effect, they are denied during this app's\n // session.\n MOTION_ACTIVITY_PERMISSIONS_DENIED = 'motion_activity_permissions_denied',\n // The user disabled motion services systemwide.\n MOTION_ACTIVITY_SERVICES_DISABLED = 'motion_activity_services_disabled',\n // The SDK is not collecting locations because it's either not tracking or is unavailable.\n NOT_RUNNING = 'not_running',\n // GPS satellites are not in view.\n GPS_SIGNAL_LOST = 'gps_signal_lost',\n // The SDK started collecting locations and is waiting for OS location services to respond.\n STARTING = 'starting',\n // The user enabled mock location app while mocking locations is prohibited.\n LOCATION_MOCKED = 'location_mocked',\n}\n\nexport default class HyperTrack {\n constructor() {\n return this;\n }\n\n static async createInstance(\n publishableKey: string,\n automaticallyRequestPermissions = true\n ) {\n try {\n await HyperTrackSdk.initialize(\n publishableKey,\n false,\n automaticallyRequestPermissions\n );\n return new HyperTrack();\n } catch (error: any) {\n throw new Error(error.message);\n }\n }\n\n /**\n * Enables debug log output. This is very verbose, so you shouldn't use this for\n * production build.\n */\n static enableDebugLogging(enable: boolean) {\n HyperTrack.enableDebugLogging(enable);\n }\n\n /**\n * Returns a string which is used by HyperTrack to uniquely identify the user.\n */\n async getDeviceID(): Promise<string> {\n return HyperTrackSdk.getDeviceID();\n }\n\n /**\n * Device's availability for nearby search\n *\n * @returns true when is available or false when unavailable\n */\n isAvailable(): Promise<boolean> {\n return HyperTrackSdk.isAvailable();\n }\n\n /**\n * Allows you to set device availability for nearby search\n *\n * @param availability true when is available or false when unavailable\n */\n async setAvailability(availability: Boolean): Promise<void> {\n return HyperTrackSdk.setAvailability(availability);\n }\n\n /**\n * Determine whether the SDK is tracking the movement of the user.\n * @return {boolean} Whether the user's movement data is getting tracked or not.\n */\n isTracking(): Promise<boolean> {\n return HyperTrackSdk.isTracking();\n }\n\n /**\n * Update device state from server.\n */\n syncDeviceSettings() {\n HyperTrackSdk.syncDeviceSettings();\n }\n\n /**\n * Start or resume tracking location and activity events.\n */\n startTracking() {\n HyperTrackSdk.startTracking();\n }\n\n /**\n * Stops the SDK from listening to the user's movement updates and recording any data.\n */\n stopTracking() {\n HyperTrackSdk.stopTracking();\n }\n\n /// The current location of the user or an outage reason.\n getLocation(): Promise<LocationError | Location> {\n return HyperTrackSdk.getLocation();\n }\n\n /**\n * Listen for errors.\n *\n * @param listener (errors: {code, message}) => void\n * @returns EmitterSubscription\n * @example\n * ```js\n * const subscription = HyperTrack.subscribeToErrors(errors => {\n * errors.forEach(error => {\n * // ... error\n * })\n * })\n *\n * // later, to stop listening\n * subscription.remove()\n * ```\n */\n subscribeToErrors(listener: (errors: Error) => void) {\n return EventEmitter.addListener('onTrackingErrorHyperTrack', listener);\n }\n\n /**\n * Listen for tracking changes.\n *\n * @param listener (isTracking: boolean) => void\n * @returns EmitterSubscription\n * @example\n * ```js\n * const subscription = HyperTrack.subscribeToTracking(isTracking => {\n * if (isTracking) {\n * // ... ready to go\n * }\n * })\n *\n * // later, to stop listening\n * subscription.remove()\n * ```\n */\n subscribeToTracking(listener: (isTracking: boolean) => void) {\n return EventEmitter.addListener('onTrackingStateChanged', listener);\n }\n\n /**\n * Send device name to HyperTrack\n * @param {string} name - Device name you want to see in the Dashboard.\n */\n setDeviceName(name: string) {\n HyperTrackSdk.setDeviceName(name);\n }\n\n /**\n * Send metadata details to HyperTrack\n * @param {Object} data - Send extra device information.\n */\n setMetadata(data: Object) {\n HyperTrackSdk.setMetadata(data);\n }\n\n /**\n * @deprecated\n * Set a trip marker\n * @param {Object} _data - Include anything that can be parsed into JSON.\n */\n setTripMarker(_data: Object) {\n throw new Error('Deprecated');\n }\n\n /**\n * Add geotag\n * @param {Object} data - Include anything that can be parsed into JSON.\n */\n addGeotag(data: Object): Promise<LocationError | Location> {\n return HyperTrackSdk.addGeotag(data);\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAEA,MAAMA,aAAa,GAChB,sFAAD,GACAC,qBAAA,CAASC,MAAT,CAAgB;EAAEC,GAAG,EAAE,gCAAP;EAAyCC,OAAO,EAAE;AAAlD,CAAhB,CADA,GAEA,sDAFA,GAGA,6CAJF;AAMA,MAAMC,aAAa,GAAGC,0BAAA,CAAcC,UAAd,GAClBD,0BAAA,CAAcC,UADI,GAElB,IAAIC,KAAJ,CACE,EADF,EAEE;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAJ,CAAUV,aAAV,CAAN;EACD;;AAHH,CAFF,CAFJ;AAWA,MAAMW,YAAY,GAAG,IAAIC,+BAAJ,CAAuBP,aAAvB,CAArB;IAEYQ,Q;AAmBZ;AACA;AACA;;;;WArBYA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;GAAAA,Q,wBAAAA,Q;;AA2BZ;AACA;AACA;IACYC,W;;;WAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;GAAAA,W,2BAAAA,W;;IAkBAC,a;;;WAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;EAAAA,a;GAAAA,a,6BAAAA,a;;AAyCG,MAAMR,UAAN,CAAiB;EAC9BS,WAAW,GAAG;IACZ,OAAO,IAAP;EACD;;EAE0B,aAAdC,cAAc,CACzBC,cADyB,EAGzB;IAAA,IADAC,+BACA,uEADkC,IAClC;;IACA,IAAI;MACF,MAAMd,aAAa,CAACe,UAAd,CACJF,cADI,EAEJ,KAFI,EAGJC,+BAHI,CAAN;MAKA,OAAO,IAAIZ,UAAJ,EAAP;IACD,CAPD,CAOE,OAAOc,KAAP,EAAmB;MACnB,MAAM,IAAIX,KAAJ,CAAUW,KAAK,CAACC,OAAhB,CAAN;IACD;EACF;EAED;AACF;AACA;AACA;;;EAC2B,OAAlBC,kBAAkB,CAACC,MAAD,EAAkB;IACzCjB,UAAU,CAACgB,kBAAX,CAA8BC,MAA9B;EACD;EAED;AACF;AACA;;;EACmB,MAAXC,WAAW,GAAoB;IACnC,OAAOpB,aAAa,CAACoB,WAAd,EAAP;EACD;EAED;AACF;AACA;AACA;AACA;;;EACEC,WAAW,GAAqB;IAC9B,OAAOrB,aAAa,CAACqB,WAAd,EAAP;EACD;EAED;AACF;AACA;AACA;AACA;;;EACuB,MAAfC,eAAe,CAACC,YAAD,EAAuC;IAC1D,OAAOvB,aAAa,CAACsB,eAAd,CAA8BC,YAA9B,CAAP;EACD;EAED;AACF;AACA;AACA;;;EACEC,UAAU,GAAqB;IAC7B,OAAOxB,aAAa,CAACwB,UAAd,EAAP;EACD;EAED;AACF;AACA;;;EACEC,kBAAkB,GAAG;IACnBzB,aAAa,CAACyB,kBAAd;EACD;EAED;AACF;AACA;;;EACEC,aAAa,GAAG;IACd1B,aAAa,CAAC0B,aAAd;EACD;EAED;AACF;AACA;;;EACEC,YAAY,GAAG;IACb3B,aAAa,CAAC2B,YAAd;EACD,CAjF6B,CAmF9B;;;EACAC,WAAW,GAAsC;IAC/C,OAAO5B,aAAa,CAAC4B,WAAd,EAAP;EACD;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;EACEC,iBAAiB,CAACC,QAAD,EAAoC;IACnD,OAAOxB,YAAY,CAACyB,WAAb,CAAyB,2BAAzB,EAAsDD,QAAtD,CAAP;EACD;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;EACEE,mBAAmB,CAACF,QAAD,EAA0C;IAC3D,OAAOxB,YAAY,CAACyB,WAAb,CAAyB,wBAAzB,EAAmDD,QAAnD,CAAP;EACD;EAED;AACF;AACA;AACA;;;EACEG,aAAa,CAACC,IAAD,EAAe;IAC1BlC,aAAa,CAACiC,aAAd,CAA4BC,IAA5B;EACD;EAED;AACF;AACA;AACA;;;EACEC,WAAW,CAACC,IAAD,EAAe;IACxBpC,aAAa,CAACmC,WAAd,CAA0BC,IAA1B;EACD;EAED;AACF;AACA;AACA;AACA;;;EACEC,aAAa,CAACC,KAAD,EAAgB;IAC3B,MAAM,IAAIjC,KAAJ,CAAU,YAAV,CAAN;EACD;EAED;AACF;AACA;AACA;;;EACEkC,SAAS,CAACH,IAAD,EAAkD;IACzD,OAAOpC,aAAa,CAACuC,SAAd,CAAwBH,IAAxB,CAAP;EACD;;AAjK6B"}
|