expo-background-tracking 1.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/LICENSE +21 -0
- package/README.md +260 -0
- package/build/BackgroundGeolocation.d.ts +122 -0
- package/build/BackgroundGeolocation.js +901 -0
- package/build/Database.d.ts +30 -0
- package/build/Database.js +206 -0
- package/build/EventBus.d.ts +10 -0
- package/build/EventBus.js +37 -0
- package/build/GeofenceManager.d.ts +42 -0
- package/build/GeofenceManager.js +281 -0
- package/build/HttpService.d.ts +27 -0
- package/build/HttpService.js +265 -0
- package/build/Logger.d.ts +15 -0
- package/build/Logger.js +52 -0
- package/build/MotionDetector.d.ts +40 -0
- package/build/MotionDetector.js +141 -0
- package/build/Scheduler.d.ts +19 -0
- package/build/Scheduler.js +79 -0
- package/build/environment.d.ts +8 -0
- package/build/environment.js +26 -0
- package/build/geo.d.ts +10 -0
- package/build/geo.js +46 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +28 -0
- package/build/types.d.ts +275 -0
- package/build/types.js +56 -0
- package/package.json +351 -0
- package/src/BackgroundGeolocation.ts +1032 -0
- package/src/Database.ts +236 -0
- package/src/EventBus.ts +33 -0
- package/src/GeofenceManager.ts +269 -0
- package/src/HttpService.ts +232 -0
- package/src/Logger.ts +52 -0
- package/src/MotionDetector.ts +149 -0
- package/src/Scheduler.ts +90 -0
- package/src/environment.ts +22 -0
- package/src/geo.ts +57 -0
- package/src/index.ts +7 -0
- package/src/types.ts +410 -0
package/package.json
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "expo-background-tracking",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Background geolocation & geofencing for Expo — battery-conscious motion-detection, SQLite persistence, HTTP sync. Expo Go compatible (foreground), full background in dev builds. No Firebase.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"expo",
|
|
7
|
+
"expo-go",
|
|
8
|
+
"react-native",
|
|
9
|
+
"background-geolocation",
|
|
10
|
+
"background-location",
|
|
11
|
+
"geofencing",
|
|
12
|
+
"geofence",
|
|
13
|
+
"location-tracking",
|
|
14
|
+
"gps",
|
|
15
|
+
"tracker",
|
|
16
|
+
"http-sync"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/farhatired/expo-background-tracking#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/farhatired/expo-background-tracking/issues"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/farhatired/expo-background-tracking.git"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"author": "Farhati <farhatired@gmail.com>",
|
|
28
|
+
"type": "commonjs",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./build/index.d.ts",
|
|
32
|
+
"react-native": "./src/index.ts",
|
|
33
|
+
"default": "./build/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"main": "build/index.js",
|
|
37
|
+
"types": "build/index.d.ts",
|
|
38
|
+
"files": [
|
|
39
|
+
"build",
|
|
40
|
+
"src",
|
|
41
|
+
"README.md",
|
|
42
|
+
"FEATURES.md",
|
|
43
|
+
"LICENSE"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc",
|
|
47
|
+
"clean": "rm -rf build",
|
|
48
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"abort-controller": "^3.0.0",
|
|
52
|
+
"accepts": "^2.0.0",
|
|
53
|
+
"acorn": "^8.17.0",
|
|
54
|
+
"agent-base": "^7.1.4",
|
|
55
|
+
"anser": "^1.4.10",
|
|
56
|
+
"ansi-escapes": "^4.3.2",
|
|
57
|
+
"ansi-regex": "^5.0.1",
|
|
58
|
+
"ansi-styles": "^4.3.0",
|
|
59
|
+
"arg": "^5.0.2",
|
|
60
|
+
"argparse": "^2.0.1",
|
|
61
|
+
"asap": "^2.0.6",
|
|
62
|
+
"await-lock": "^2.2.2",
|
|
63
|
+
"babel-plugin-polyfill-corejs2": "^0.4.17",
|
|
64
|
+
"babel-plugin-polyfill-corejs3": "^0.13.0",
|
|
65
|
+
"babel-plugin-polyfill-regenerator": "^0.6.8",
|
|
66
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
67
|
+
"babel-plugin-react-native-web": "^0.21.2",
|
|
68
|
+
"babel-plugin-syntax-hermes-parser": "^0.33.3",
|
|
69
|
+
"babel-plugin-transform-flow-enums": "^0.0.2",
|
|
70
|
+
"balanced-match": "^4.0.4",
|
|
71
|
+
"base64-js": "^1.5.1",
|
|
72
|
+
"baseline-browser-mapping": "^2.10.36",
|
|
73
|
+
"big-integer": "^1.6.52",
|
|
74
|
+
"bplist-creator": "^0.1.0",
|
|
75
|
+
"bplist-parser": "^0.3.1",
|
|
76
|
+
"brace-expansion": "^5.0.6",
|
|
77
|
+
"braces": "^3.0.3",
|
|
78
|
+
"browserslist": "^4.28.2",
|
|
79
|
+
"bser": "^2.1.1",
|
|
80
|
+
"buffer-from": "^1.1.2",
|
|
81
|
+
"bytes": "^3.1.2",
|
|
82
|
+
"camelcase": "^6.3.0",
|
|
83
|
+
"caniuse-lite": "^1.0.30001799",
|
|
84
|
+
"chalk": "^4.1.2",
|
|
85
|
+
"chrome-launcher": "^0.15.2",
|
|
86
|
+
"chromium-edge-launcher": "^0.3.0",
|
|
87
|
+
"ci-info": "^2.0.0",
|
|
88
|
+
"cli-cursor": "^2.1.0",
|
|
89
|
+
"cli-spinners": "^2.9.2",
|
|
90
|
+
"cliui": "^8.0.1",
|
|
91
|
+
"clone": "^1.0.4",
|
|
92
|
+
"color-convert": "^2.0.1",
|
|
93
|
+
"color-name": "^1.1.4",
|
|
94
|
+
"commander": "^7.2.0",
|
|
95
|
+
"compressible": "^2.0.18",
|
|
96
|
+
"compression": "^1.8.1",
|
|
97
|
+
"connect": "^3.7.0",
|
|
98
|
+
"convert-source-map": "^2.0.0",
|
|
99
|
+
"core-js-compat": "^3.49.0",
|
|
100
|
+
"cross-spawn": "^7.0.6",
|
|
101
|
+
"csstype": "^3.2.3",
|
|
102
|
+
"debug": "^4.4.3",
|
|
103
|
+
"deepmerge": "^4.3.1",
|
|
104
|
+
"defaults": "^1.0.4",
|
|
105
|
+
"depd": "^2.0.0",
|
|
106
|
+
"destroy": "^1.2.0",
|
|
107
|
+
"detect-libc": "^2.1.2",
|
|
108
|
+
"dnssd-advertise": "^1.1.6",
|
|
109
|
+
"ee-first": "^1.1.1",
|
|
110
|
+
"electron-to-chromium": "^1.5.372",
|
|
111
|
+
"emoji-regex": "^8.0.0",
|
|
112
|
+
"encodeurl": "^1.0.2",
|
|
113
|
+
"error-stack-parser": "^2.1.4",
|
|
114
|
+
"es-errors": "^1.3.0",
|
|
115
|
+
"escalade": "^3.2.0",
|
|
116
|
+
"escape-html": "^1.0.3",
|
|
117
|
+
"escape-string-regexp": "^4.0.0",
|
|
118
|
+
"etag": "^1.8.1",
|
|
119
|
+
"event-target-shim": "^5.0.1",
|
|
120
|
+
"expo-modules-autolinking": "^56.0.15",
|
|
121
|
+
"expo-modules-core": "^56.0.16",
|
|
122
|
+
"expo-modules-jsi": "^56.0.9",
|
|
123
|
+
"expo-server": "^56.0.5",
|
|
124
|
+
"exponential-backoff": "^3.1.3",
|
|
125
|
+
"fb-dotslash": "^0.5.8",
|
|
126
|
+
"fb-watchman": "^2.0.2",
|
|
127
|
+
"fetch-nodeshim": "^0.4.10",
|
|
128
|
+
"fill-range": "^7.1.1",
|
|
129
|
+
"finalhandler": "^1.1.2",
|
|
130
|
+
"flow-enums-runtime": "^0.0.6",
|
|
131
|
+
"fontfaceobserver": "^2.3.0",
|
|
132
|
+
"fresh": "^0.5.2",
|
|
133
|
+
"function-bind": "^1.1.2",
|
|
134
|
+
"gensync": "^1.0.0-beta.2",
|
|
135
|
+
"get-caller-file": "^2.0.5",
|
|
136
|
+
"getenv": "^2.0.0",
|
|
137
|
+
"glob": "^13.0.6",
|
|
138
|
+
"graceful-fs": "^4.2.11",
|
|
139
|
+
"has-flag": "^4.0.0",
|
|
140
|
+
"hasown": "^2.0.4",
|
|
141
|
+
"hermes-compiler": "^250829098.0.10",
|
|
142
|
+
"hermes-estree": "^0.35.0",
|
|
143
|
+
"hermes-parser": "^0.35.0",
|
|
144
|
+
"hosted-git-info": "^7.0.2",
|
|
145
|
+
"http-errors": "^2.0.1",
|
|
146
|
+
"https-proxy-agent": "^7.0.6",
|
|
147
|
+
"ignore": "^5.3.2",
|
|
148
|
+
"image-size": "^1.2.1",
|
|
149
|
+
"inherits": "^2.0.4",
|
|
150
|
+
"invariant": "^2.2.4",
|
|
151
|
+
"is-core-module": "^2.16.2",
|
|
152
|
+
"is-docker": "^2.2.1",
|
|
153
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
154
|
+
"is-number": "^7.0.0",
|
|
155
|
+
"is-wsl": "^2.2.0",
|
|
156
|
+
"isexe": "^2.0.0",
|
|
157
|
+
"jest-get-type": "^29.6.3",
|
|
158
|
+
"jest-util": "^29.7.0",
|
|
159
|
+
"jest-validate": "^29.7.0",
|
|
160
|
+
"jest-worker": "^29.7.0",
|
|
161
|
+
"jimp-compact": "^0.16.1",
|
|
162
|
+
"js-tokens": "^4.0.0",
|
|
163
|
+
"js-yaml": "^4.2.0",
|
|
164
|
+
"jsc-safe-url": "^0.2.4",
|
|
165
|
+
"jsesc": "^3.1.0",
|
|
166
|
+
"json5": "^2.2.3",
|
|
167
|
+
"kleur": "^3.0.3",
|
|
168
|
+
"lan-network": "^0.2.1",
|
|
169
|
+
"leven": "^3.1.0",
|
|
170
|
+
"lighthouse-logger": "^1.4.2",
|
|
171
|
+
"lightningcss": "^1.32.0",
|
|
172
|
+
"lightningcss-darwin-arm64": "^1.32.0",
|
|
173
|
+
"lightningcss-linux-arm64-gnu": "^1.32.0",
|
|
174
|
+
"lightningcss-linux-arm64-musl": "^1.32.0",
|
|
175
|
+
"lodash.debounce": "^4.0.8",
|
|
176
|
+
"lodash.throttle": "^4.1.1",
|
|
177
|
+
"log-symbols": "^2.2.0",
|
|
178
|
+
"loose-envify": "^1.4.0",
|
|
179
|
+
"lru-cache": "^5.1.1",
|
|
180
|
+
"makeerror": "^1.0.12",
|
|
181
|
+
"marky": "^1.3.0",
|
|
182
|
+
"memoize-one": "^5.2.1",
|
|
183
|
+
"merge-stream": "^2.0.0",
|
|
184
|
+
"metro": "^0.84.4",
|
|
185
|
+
"metro-babel-transformer": "^0.84.4",
|
|
186
|
+
"metro-cache": "^0.84.4",
|
|
187
|
+
"metro-cache-key": "^0.84.4",
|
|
188
|
+
"metro-config": "^0.84.4",
|
|
189
|
+
"metro-core": "^0.84.4",
|
|
190
|
+
"metro-file-map": "^0.84.4",
|
|
191
|
+
"metro-minify-terser": "^0.84.4",
|
|
192
|
+
"metro-resolver": "^0.84.4",
|
|
193
|
+
"metro-runtime": "^0.84.4",
|
|
194
|
+
"metro-source-map": "^0.84.4",
|
|
195
|
+
"metro-symbolicate": "^0.84.4",
|
|
196
|
+
"metro-transform-plugins": "^0.84.4",
|
|
197
|
+
"metro-transform-worker": "^0.84.4",
|
|
198
|
+
"micromatch": "^4.0.8",
|
|
199
|
+
"mime": "^1.6.0",
|
|
200
|
+
"mime-db": "^1.54.0",
|
|
201
|
+
"mime-types": "^3.0.2",
|
|
202
|
+
"mimic-fn": "^1.2.0",
|
|
203
|
+
"minimatch": "^10.2.5",
|
|
204
|
+
"minipass": "^7.1.3",
|
|
205
|
+
"mkdirp": "^1.0.4",
|
|
206
|
+
"ms": "^2.1.3",
|
|
207
|
+
"multitars": "^1.0.0",
|
|
208
|
+
"nanoid": "^3.3.12",
|
|
209
|
+
"negotiator": "^1.0.0",
|
|
210
|
+
"node-forge": "^1.4.0",
|
|
211
|
+
"node-int64": "^0.4.0",
|
|
212
|
+
"node-releases": "^2.0.47",
|
|
213
|
+
"npm-package-arg": "^11.0.3",
|
|
214
|
+
"nullthrows": "^1.1.1",
|
|
215
|
+
"ob1": "^0.84.4",
|
|
216
|
+
"on-finished": "^2.3.0",
|
|
217
|
+
"on-headers": "^1.1.0",
|
|
218
|
+
"onetime": "^2.0.1",
|
|
219
|
+
"open": "^7.4.2",
|
|
220
|
+
"ora": "^3.4.0",
|
|
221
|
+
"parse-png": "^2.1.0",
|
|
222
|
+
"parseurl": "^1.3.3",
|
|
223
|
+
"path-key": "^3.1.1",
|
|
224
|
+
"path-parse": "^1.0.7",
|
|
225
|
+
"path-scurry": "^2.0.2",
|
|
226
|
+
"picocolors": "^1.1.1",
|
|
227
|
+
"picomatch": "^2.3.2",
|
|
228
|
+
"plist": "^3.1.1",
|
|
229
|
+
"pngjs": "^3.4.0",
|
|
230
|
+
"postcss": "^8.5.15",
|
|
231
|
+
"pretty-format": "^29.7.0",
|
|
232
|
+
"proc-log": "^4.2.0",
|
|
233
|
+
"progress": "^2.0.3",
|
|
234
|
+
"promise": "^8.3.0",
|
|
235
|
+
"prompts": "^2.4.2",
|
|
236
|
+
"queue": "^6.0.2",
|
|
237
|
+
"range-parser": "^1.2.1",
|
|
238
|
+
"react-devtools-core": "^6.1.5",
|
|
239
|
+
"react-is": "^18.3.1",
|
|
240
|
+
"react-refresh": "^0.14.2",
|
|
241
|
+
"regenerate": "^1.4.2",
|
|
242
|
+
"regenerate-unicode-properties": "^10.2.2",
|
|
243
|
+
"regenerator-runtime": "^0.13.11",
|
|
244
|
+
"regexpu-core": "^6.4.0",
|
|
245
|
+
"regjsgen": "^0.8.0",
|
|
246
|
+
"regjsparser": "^0.13.1",
|
|
247
|
+
"require-directory": "^2.1.1",
|
|
248
|
+
"resolve": "^1.22.12",
|
|
249
|
+
"resolve-from": "^5.0.0",
|
|
250
|
+
"resolve-workspace-root": "^2.0.1",
|
|
251
|
+
"restore-cursor": "^2.0.0",
|
|
252
|
+
"safe-buffer": "^5.2.1",
|
|
253
|
+
"sax": "^1.6.0",
|
|
254
|
+
"scheduler": "^0.27.0",
|
|
255
|
+
"semver": "^7.8.4",
|
|
256
|
+
"send": "^0.19.2",
|
|
257
|
+
"serialize-error": "^2.1.0",
|
|
258
|
+
"serve-static": "^1.16.3",
|
|
259
|
+
"setprototypeof": "^1.2.0",
|
|
260
|
+
"shebang-command": "^2.0.0",
|
|
261
|
+
"shebang-regex": "^3.0.0",
|
|
262
|
+
"shell-quote": "^1.8.4",
|
|
263
|
+
"signal-exit": "^3.0.7",
|
|
264
|
+
"simple-plist": "^1.3.1",
|
|
265
|
+
"sisteransi": "^1.0.5",
|
|
266
|
+
"slugify": "^1.6.9",
|
|
267
|
+
"source-map": "^0.5.7",
|
|
268
|
+
"source-map-js": "^1.2.1",
|
|
269
|
+
"source-map-support": "^0.5.21",
|
|
270
|
+
"stackframe": "^1.3.4",
|
|
271
|
+
"stacktrace-parser": "^0.1.11",
|
|
272
|
+
"statuses": "^1.5.0",
|
|
273
|
+
"stream-buffers": "^2.2.0",
|
|
274
|
+
"string-width": "^4.2.3",
|
|
275
|
+
"strip-ansi": "^6.0.1",
|
|
276
|
+
"structured-headers": "^0.4.1",
|
|
277
|
+
"supports-color": "^7.2.0",
|
|
278
|
+
"supports-hyperlinks": "^2.3.0",
|
|
279
|
+
"supports-preserve-symlinks-flag": "^1.0.0",
|
|
280
|
+
"terminal-link": "^2.1.1",
|
|
281
|
+
"terser": "^5.48.0",
|
|
282
|
+
"throat": "^5.0.0",
|
|
283
|
+
"tinyglobby": "^0.2.17",
|
|
284
|
+
"tmpl": "^1.0.5",
|
|
285
|
+
"to-regex-range": "^5.0.1",
|
|
286
|
+
"toidentifier": "^1.0.1",
|
|
287
|
+
"toqr": "^0.1.1",
|
|
288
|
+
"type-fest": "^0.7.1",
|
|
289
|
+
"ua-parser-js": "^0.7.41",
|
|
290
|
+
"undici-types": "^7.24.6",
|
|
291
|
+
"unicode-canonical-property-names-ecmascript": "^2.0.1",
|
|
292
|
+
"unicode-match-property-ecmascript": "^2.0.0",
|
|
293
|
+
"unicode-match-property-value-ecmascript": "^2.2.1",
|
|
294
|
+
"unicode-property-aliases-ecmascript": "^2.2.0",
|
|
295
|
+
"unimodules-app-loader": "^56.0.1",
|
|
296
|
+
"unpipe": "^1.0.0",
|
|
297
|
+
"update-browserslist-db": "^1.2.3",
|
|
298
|
+
"utils-merge": "^1.0.1",
|
|
299
|
+
"uuid": "^7.0.3",
|
|
300
|
+
"validate-npm-package-name": "^5.0.1",
|
|
301
|
+
"vary": "^1.1.2",
|
|
302
|
+
"vlq": "^1.0.1",
|
|
303
|
+
"walker": "^1.0.8",
|
|
304
|
+
"wcwidth": "^1.0.1",
|
|
305
|
+
"whatwg-fetch": "^3.6.20",
|
|
306
|
+
"whatwg-url-minimum": "^0.1.2",
|
|
307
|
+
"which": "^2.0.2",
|
|
308
|
+
"wrap-ansi": "^7.0.0",
|
|
309
|
+
"ws": "^7.5.11",
|
|
310
|
+
"xcode": "^3.0.1",
|
|
311
|
+
"xml2js": "^0.6.0",
|
|
312
|
+
"xmlbuilder": "^15.1.1",
|
|
313
|
+
"y18n": "^5.0.8",
|
|
314
|
+
"yallist": "^3.1.1",
|
|
315
|
+
"yaml": "^2.9.0",
|
|
316
|
+
"yargs": "^17.7.2",
|
|
317
|
+
"yargs-parser": "^21.1.1",
|
|
318
|
+
"zod": "^3.25.76"
|
|
319
|
+
},
|
|
320
|
+
"devDependencies": {
|
|
321
|
+
"@babel/core": "^7.29.7",
|
|
322
|
+
"@types/react": "~19.2.2",
|
|
323
|
+
"babel-preset-expo": "^56.0.15",
|
|
324
|
+
"expo": "~56.0.11",
|
|
325
|
+
"expo-battery": "~56.0.4",
|
|
326
|
+
"expo-constants": "~56.0.18",
|
|
327
|
+
"expo-device": "~56.0.4",
|
|
328
|
+
"expo-location": "~56.0.17",
|
|
329
|
+
"expo-network": "~56.0.5",
|
|
330
|
+
"expo-sensors": "~56.0.6",
|
|
331
|
+
"expo-sqlite": "~56.0.5",
|
|
332
|
+
"expo-task-manager": "~56.0.18",
|
|
333
|
+
"react": "19.2.3",
|
|
334
|
+
"react-native": "0.85.3",
|
|
335
|
+
"typescript": "~5.9.2"
|
|
336
|
+
},
|
|
337
|
+
"peerDependencies": {
|
|
338
|
+
"expo": ">=50.0.0",
|
|
339
|
+
"expo-battery": "*",
|
|
340
|
+
"expo-constants": "*",
|
|
341
|
+
"expo-device": "*",
|
|
342
|
+
"expo-location": "*",
|
|
343
|
+
"expo-network": "*",
|
|
344
|
+
"expo-sensors": "*",
|
|
345
|
+
"expo-sqlite": "*",
|
|
346
|
+
"expo-task-manager": "*",
|
|
347
|
+
"react": "*",
|
|
348
|
+
"react-native": "*"
|
|
349
|
+
},
|
|
350
|
+
"react-native": "src/index.ts"
|
|
351
|
+
}
|