@nitra/geolocation 7.1.1 → 7.1.2

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/dist/docs.json ADDED
@@ -0,0 +1,376 @@
1
+ {
2
+ "api": {
3
+ "name": "GeolocationPlugin",
4
+ "slug": "geolocationplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "getCurrentPosition",
10
+ "signature": "(options?: PositionOptions | undefined) => Promise<Position>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "PositionOptions | undefined"
16
+ }
17
+ ],
18
+ "returns": "Promise<Position>",
19
+ "tags": [
20
+ {
21
+ "name": "since",
22
+ "text": "1.0.0"
23
+ }
24
+ ],
25
+ "docs": "Get the current GPS location of the device",
26
+ "complexTypes": [
27
+ "Position",
28
+ "PositionOptions"
29
+ ],
30
+ "slug": "getcurrentposition"
31
+ },
32
+ {
33
+ "name": "watchPosition",
34
+ "signature": "(options: PositionOptions, callback: WatchPositionCallback) => Promise<CallbackID>",
35
+ "parameters": [
36
+ {
37
+ "name": "options",
38
+ "docs": "",
39
+ "type": "PositionOptions"
40
+ },
41
+ {
42
+ "name": "callback",
43
+ "docs": "",
44
+ "type": "WatchPositionCallback"
45
+ }
46
+ ],
47
+ "returns": "Promise<string>",
48
+ "tags": [
49
+ {
50
+ "name": "since",
51
+ "text": "1.0.0"
52
+ }
53
+ ],
54
+ "docs": "Set up a watch for location changes. Note that watching for location changes\ncan consume a large amount of energy. Be smart about listening only when you need to.",
55
+ "complexTypes": [
56
+ "PositionOptions",
57
+ "WatchPositionCallback",
58
+ "CallbackID"
59
+ ],
60
+ "slug": "watchposition"
61
+ },
62
+ {
63
+ "name": "clearWatch",
64
+ "signature": "(options: ClearWatchOptions) => Promise<void>",
65
+ "parameters": [
66
+ {
67
+ "name": "options",
68
+ "docs": "",
69
+ "type": "ClearWatchOptions"
70
+ }
71
+ ],
72
+ "returns": "Promise<void>",
73
+ "tags": [
74
+ {
75
+ "name": "since",
76
+ "text": "1.0.0"
77
+ }
78
+ ],
79
+ "docs": "Clear a given watch",
80
+ "complexTypes": [
81
+ "ClearWatchOptions"
82
+ ],
83
+ "slug": "clearwatch"
84
+ },
85
+ {
86
+ "name": "checkPermissions",
87
+ "signature": "() => Promise<PermissionStatus>",
88
+ "parameters": [],
89
+ "returns": "Promise<PermissionStatus>",
90
+ "tags": [
91
+ {
92
+ "name": "since",
93
+ "text": "1.0.0"
94
+ }
95
+ ],
96
+ "docs": "Check location permissions. Will throw if system location services are disabled.",
97
+ "complexTypes": [
98
+ "PermissionStatus"
99
+ ],
100
+ "slug": "checkpermissions"
101
+ },
102
+ {
103
+ "name": "requestPermissions",
104
+ "signature": "(permissions?: GeolocationPluginPermissions | undefined) => Promise<PermissionStatus>",
105
+ "parameters": [
106
+ {
107
+ "name": "permissions",
108
+ "docs": "",
109
+ "type": "GeolocationPluginPermissions | undefined"
110
+ }
111
+ ],
112
+ "returns": "Promise<PermissionStatus>",
113
+ "tags": [
114
+ {
115
+ "name": "since",
116
+ "text": "1.0.0"
117
+ }
118
+ ],
119
+ "docs": "Request location permissions. Will throw if system location services are disabled.\n\nNot available on web.",
120
+ "complexTypes": [
121
+ "PermissionStatus",
122
+ "GeolocationPluginPermissions"
123
+ ],
124
+ "slug": "requestpermissions"
125
+ }
126
+ ],
127
+ "properties": []
128
+ },
129
+ "interfaces": [
130
+ {
131
+ "name": "Position",
132
+ "slug": "position",
133
+ "docs": "",
134
+ "tags": [],
135
+ "methods": [],
136
+ "properties": [
137
+ {
138
+ "name": "timestamp",
139
+ "tags": [
140
+ {
141
+ "text": "1.0.0",
142
+ "name": "since"
143
+ }
144
+ ],
145
+ "docs": "Creation timestamp for coords",
146
+ "complexTypes": [],
147
+ "type": "number"
148
+ },
149
+ {
150
+ "name": "coords",
151
+ "tags": [
152
+ {
153
+ "text": "1.0.0",
154
+ "name": "since"
155
+ }
156
+ ],
157
+ "docs": "The GPS coordinates along with the accuracy of the data",
158
+ "complexTypes": [],
159
+ "type": "{ latitude: number; longitude: number; accuracy: number; altitudeAccuracy: number | null | undefined; altitude: number | null; speed: number | null; heading: number | null; }"
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "name": "PositionOptions",
165
+ "slug": "positionoptions",
166
+ "docs": "",
167
+ "tags": [],
168
+ "methods": [],
169
+ "properties": [
170
+ {
171
+ "name": "enableHighAccuracy",
172
+ "tags": [
173
+ {
174
+ "text": "false",
175
+ "name": "default"
176
+ },
177
+ {
178
+ "text": "1.0.0",
179
+ "name": "since"
180
+ }
181
+ ],
182
+ "docs": "High accuracy mode (such as GPS, if available)\n\nOn Android 12+ devices it will be ignored if users didn't grant\nACCESS_FINE_LOCATION permissions (can be checked with location alias).",
183
+ "complexTypes": [],
184
+ "type": "boolean | undefined"
185
+ },
186
+ {
187
+ "name": "timeout",
188
+ "tags": [
189
+ {
190
+ "text": "10000",
191
+ "name": "default"
192
+ },
193
+ {
194
+ "text": "1.0.0",
195
+ "name": "since"
196
+ }
197
+ ],
198
+ "docs": "The maximum wait time in milliseconds for location updates.\n\nIn Android, since version 7.1.0 of the plugin, it is also used to determine the\ninterval of location updates for `watchPosition`.",
199
+ "complexTypes": [],
200
+ "type": "number | undefined"
201
+ },
202
+ {
203
+ "name": "maximumAge",
204
+ "tags": [
205
+ {
206
+ "text": "0",
207
+ "name": "default"
208
+ },
209
+ {
210
+ "text": "1.0.0",
211
+ "name": "since"
212
+ }
213
+ ],
214
+ "docs": "The maximum age in milliseconds of a possible cached position that is acceptable to return",
215
+ "complexTypes": [],
216
+ "type": "number | undefined"
217
+ },
218
+ {
219
+ "name": "minimumUpdateInterval",
220
+ "tags": [
221
+ {
222
+ "text": "5000",
223
+ "name": "default"
224
+ },
225
+ {
226
+ "text": "6.1.0",
227
+ "name": "since"
228
+ }
229
+ ],
230
+ "docs": "The minumum update interval for location updates.\n\nIf location updates are available faster than this interval then an update\nwill only occur if the minimum update interval has expired since the last location update.\n\nThis parameter is only available for Android. It has no effect on iOS or Web platforms.",
231
+ "complexTypes": [],
232
+ "type": "number | undefined"
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "name": "ClearWatchOptions",
238
+ "slug": "clearwatchoptions",
239
+ "docs": "",
240
+ "tags": [],
241
+ "methods": [],
242
+ "properties": [
243
+ {
244
+ "name": "id",
245
+ "tags": [],
246
+ "docs": "",
247
+ "complexTypes": [
248
+ "CallbackID"
249
+ ],
250
+ "type": "CallbackID"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "name": "PermissionStatus",
256
+ "slug": "permissionstatus",
257
+ "docs": "",
258
+ "tags": [],
259
+ "methods": [],
260
+ "properties": [
261
+ {
262
+ "name": "location",
263
+ "tags": [
264
+ {
265
+ "text": "1.0.0",
266
+ "name": "since"
267
+ }
268
+ ],
269
+ "docs": "Permission state for location alias.\n\nOn Android it requests/checks both ACCESS_COARSE_LOCATION and\nACCESS_FINE_LOCATION permissions.\n\nOn iOS and web it requests/checks location permission.",
270
+ "complexTypes": [
271
+ "PermissionState"
272
+ ],
273
+ "type": "PermissionState"
274
+ },
275
+ {
276
+ "name": "coarseLocation",
277
+ "tags": [
278
+ {
279
+ "text": "1.2.0",
280
+ "name": "since"
281
+ }
282
+ ],
283
+ "docs": "Permission state for coarseLocation alias.\n\nOn Android it requests/checks ACCESS_COARSE_LOCATION.\n\nOn Android 12+, users can choose between Approximate location (ACCESS_COARSE_LOCATION) or\nPrecise location (ACCESS_FINE_LOCATION), so this alias can be used if the app doesn't\nneed high accuracy.\n\nOn iOS and web it will have the same value as location alias.",
284
+ "complexTypes": [
285
+ "PermissionState"
286
+ ],
287
+ "type": "PermissionState"
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "name": "GeolocationPluginPermissions",
293
+ "slug": "geolocationpluginpermissions",
294
+ "docs": "",
295
+ "tags": [],
296
+ "methods": [],
297
+ "properties": [
298
+ {
299
+ "name": "permissions",
300
+ "tags": [],
301
+ "docs": "",
302
+ "complexTypes": [
303
+ "GeolocationPermissionType"
304
+ ],
305
+ "type": "GeolocationPermissionType[]"
306
+ }
307
+ ]
308
+ }
309
+ ],
310
+ "enums": [],
311
+ "typeAliases": [
312
+ {
313
+ "name": "WatchPositionCallback",
314
+ "slug": "watchpositioncallback",
315
+ "docs": "",
316
+ "types": [
317
+ {
318
+ "text": "(position: Position | null, err?: any): void",
319
+ "complexTypes": [
320
+ "Position"
321
+ ]
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "name": "CallbackID",
327
+ "slug": "callbackid",
328
+ "docs": "",
329
+ "types": [
330
+ {
331
+ "text": "string",
332
+ "complexTypes": []
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "name": "PermissionState",
338
+ "slug": "permissionstate",
339
+ "docs": "",
340
+ "types": [
341
+ {
342
+ "text": "'prompt'",
343
+ "complexTypes": []
344
+ },
345
+ {
346
+ "text": "'prompt-with-rationale'",
347
+ "complexTypes": []
348
+ },
349
+ {
350
+ "text": "'granted'",
351
+ "complexTypes": []
352
+ },
353
+ {
354
+ "text": "'denied'",
355
+ "complexTypes": []
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "name": "GeolocationPermissionType",
361
+ "slug": "geolocationpermissiontype",
362
+ "docs": "",
363
+ "types": [
364
+ {
365
+ "text": "'location'",
366
+ "complexTypes": []
367
+ },
368
+ {
369
+ "text": "'coarseLocation'",
370
+ "complexTypes": []
371
+ }
372
+ ]
373
+ }
374
+ ],
375
+ "pluginConfigs": []
376
+ }
@@ -0,0 +1,187 @@
1
+ import type { PermissionState } from '@capacitor/core';
2
+ export type CallbackID = string;
3
+ export interface PermissionStatus {
4
+ /**
5
+ * Permission state for location alias.
6
+ *
7
+ * On Android it requests/checks both ACCESS_COARSE_LOCATION and
8
+ * ACCESS_FINE_LOCATION permissions.
9
+ *
10
+ * On iOS and web it requests/checks location permission.
11
+ *
12
+ * @since 1.0.0
13
+ */
14
+ location: PermissionState;
15
+ /**
16
+ * Permission state for coarseLocation alias.
17
+ *
18
+ * On Android it requests/checks ACCESS_COARSE_LOCATION.
19
+ *
20
+ * On Android 12+, users can choose between Approximate location (ACCESS_COARSE_LOCATION) or
21
+ * Precise location (ACCESS_FINE_LOCATION), so this alias can be used if the app doesn't
22
+ * need high accuracy.
23
+ *
24
+ * On iOS and web it will have the same value as location alias.
25
+ *
26
+ * @since 1.2.0
27
+ */
28
+ coarseLocation: PermissionState;
29
+ }
30
+ export type GeolocationPermissionType = 'location' | 'coarseLocation';
31
+ export interface GeolocationPluginPermissions {
32
+ permissions: GeolocationPermissionType[];
33
+ }
34
+ export interface GeolocationPlugin {
35
+ /**
36
+ * Get the current GPS location of the device
37
+ *
38
+ * @since 1.0.0
39
+ */
40
+ getCurrentPosition(options?: PositionOptions): Promise<Position>;
41
+ /**
42
+ * Set up a watch for location changes. Note that watching for location changes
43
+ * can consume a large amount of energy. Be smart about listening only when you need to.
44
+ *
45
+ * @since 1.0.0
46
+ */
47
+ watchPosition(options: PositionOptions, callback: WatchPositionCallback): Promise<CallbackID>;
48
+ /**
49
+ * Clear a given watch
50
+ *
51
+ * @since 1.0.0
52
+ */
53
+ clearWatch(options: ClearWatchOptions): Promise<void>;
54
+ /**
55
+ * Check location permissions. Will throw if system location services are disabled.
56
+ *
57
+ * @since 1.0.0
58
+ */
59
+ checkPermissions(): Promise<PermissionStatus>;
60
+ /**
61
+ * Request location permissions. Will throw if system location services are disabled.
62
+ *
63
+ * Not available on web.
64
+ *
65
+ * @since 1.0.0
66
+ */
67
+ requestPermissions(permissions?: GeolocationPluginPermissions): Promise<PermissionStatus>;
68
+ }
69
+ export interface ClearWatchOptions {
70
+ id: CallbackID;
71
+ }
72
+ export interface Position {
73
+ /**
74
+ * Creation timestamp for coords
75
+ *
76
+ * @since 1.0.0
77
+ */
78
+ timestamp: number;
79
+ /**
80
+ * The GPS coordinates along with the accuracy of the data
81
+ *
82
+ * @since 1.0.0
83
+ */
84
+ coords: {
85
+ /**
86
+ * Latitude in decimal degrees
87
+ *
88
+ * @since 1.0.0
89
+ */
90
+ latitude: number;
91
+ /**
92
+ * longitude in decimal degrees
93
+ *
94
+ * @since 1.0.0
95
+ */
96
+ longitude: number;
97
+ /**
98
+ * Accuracy level of the latitude and longitude coordinates in meters
99
+ *
100
+ * @since 1.0.0
101
+ */
102
+ accuracy: number;
103
+ /**
104
+ * Accuracy level of the altitude coordinate in meters, if available.
105
+ *
106
+ * Available on all iOS versions and on Android 8.0+.
107
+ *
108
+ * @since 1.0.0
109
+ */
110
+ altitudeAccuracy: number | null | undefined;
111
+ /**
112
+ * The altitude the user is at (if available)
113
+ *
114
+ * @since 1.0.0
115
+ */
116
+ altitude: number | null;
117
+ /**
118
+ * The speed the user is traveling (if available)
119
+ *
120
+ * @since 1.0.0
121
+ */
122
+ speed: number | null;
123
+ /**
124
+ * The heading the user is facing (if available)
125
+ *
126
+ * @since 1.0.0
127
+ */
128
+ heading: number | null;
129
+ };
130
+ }
131
+ export interface PositionOptions {
132
+ /**
133
+ * High accuracy mode (such as GPS, if available)
134
+ *
135
+ * On Android 12+ devices it will be ignored if users didn't grant
136
+ * ACCESS_FINE_LOCATION permissions (can be checked with location alias).
137
+ *
138
+ * @default false
139
+ * @since 1.0.0
140
+ */
141
+ enableHighAccuracy?: boolean;
142
+ /**
143
+ * The maximum wait time in milliseconds for location updates.
144
+ *
145
+ * In Android, since version 7.1.0 of the plugin, it is also used to determine the
146
+ * interval of location updates for `watchPosition`.
147
+ *
148
+ * @default 10000
149
+ * @since 1.0.0
150
+ */
151
+ timeout?: number;
152
+ /**
153
+ * The maximum age in milliseconds of a possible cached position that is acceptable to return
154
+ *
155
+ * @default 0
156
+ * @since 1.0.0
157
+ */
158
+ maximumAge?: number;
159
+ /**
160
+ * The minumum update interval for location updates.
161
+ *
162
+ * If location updates are available faster than this interval then an update
163
+ * will only occur if the minimum update interval has expired since the last location update.
164
+ *
165
+ * This parameter is only available for Android. It has no effect on iOS or Web platforms.
166
+ *
167
+ * @default 5000
168
+ * @since 6.1.0
169
+ */
170
+ minimumUpdateInterval?: number;
171
+ }
172
+ export type WatchPositionCallback = (position: Position | null, err?: any) => void;
173
+ /**
174
+ * @deprecated Use `PositionOptions`.
175
+ * @since 1.0.0
176
+ */
177
+ export type GeolocationOptions = PositionOptions;
178
+ /**
179
+ * @deprecated Use `WatchPositionCallback`.
180
+ * @since 1.0.0
181
+ */
182
+ export type GeolocationWatchCallback = WatchPositionCallback;
183
+ /**
184
+ * @deprecated Use `Position`.
185
+ * @since 1.0.0
186
+ */
187
+ export type GeolocationPosition = Position;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PermissionState } from '@capacitor/core';\n\nexport type CallbackID = string;\n\nexport interface PermissionStatus {\n /**\n * Permission state for location alias.\n *\n * On Android it requests/checks both ACCESS_COARSE_LOCATION and\n * ACCESS_FINE_LOCATION permissions.\n *\n * On iOS and web it requests/checks location permission.\n *\n * @since 1.0.0\n */\n location: PermissionState;\n\n /**\n * Permission state for coarseLocation alias.\n *\n * On Android it requests/checks ACCESS_COARSE_LOCATION.\n *\n * On Android 12+, users can choose between Approximate location (ACCESS_COARSE_LOCATION) or\n * Precise location (ACCESS_FINE_LOCATION), so this alias can be used if the app doesn't\n * need high accuracy.\n *\n * On iOS and web it will have the same value as location alias.\n *\n * @since 1.2.0\n */\n coarseLocation: PermissionState;\n}\n\nexport type GeolocationPermissionType = 'location' | 'coarseLocation';\n\nexport interface GeolocationPluginPermissions {\n permissions: GeolocationPermissionType[];\n}\n\nexport interface GeolocationPlugin {\n /**\n * Get the current GPS location of the device\n *\n * @since 1.0.0\n */\n getCurrentPosition(options?: PositionOptions): Promise<Position>;\n\n /**\n * Set up a watch for location changes. Note that watching for location changes\n * can consume a large amount of energy. Be smart about listening only when you need to.\n *\n * @since 1.0.0\n */\n watchPosition(options: PositionOptions, callback: WatchPositionCallback): Promise<CallbackID>;\n\n /**\n * Clear a given watch\n *\n * @since 1.0.0\n */\n clearWatch(options: ClearWatchOptions): Promise<void>;\n\n /**\n * Check location permissions. Will throw if system location services are disabled.\n *\n * @since 1.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request location permissions. Will throw if system location services are disabled.\n *\n * Not available on web.\n *\n * @since 1.0.0\n */\n requestPermissions(permissions?: GeolocationPluginPermissions): Promise<PermissionStatus>;\n}\n\nexport interface ClearWatchOptions {\n id: CallbackID;\n}\n\nexport interface Position {\n /**\n * Creation timestamp for coords\n *\n * @since 1.0.0\n */\n timestamp: number;\n\n /**\n * The GPS coordinates along with the accuracy of the data\n *\n * @since 1.0.0\n */\n coords: {\n /**\n * Latitude in decimal degrees\n *\n * @since 1.0.0\n */\n latitude: number;\n\n /**\n * longitude in decimal degrees\n *\n * @since 1.0.0\n */\n longitude: number;\n\n /**\n * Accuracy level of the latitude and longitude coordinates in meters\n *\n * @since 1.0.0\n */\n accuracy: number;\n\n /**\n * Accuracy level of the altitude coordinate in meters, if available.\n *\n * Available on all iOS versions and on Android 8.0+.\n *\n * @since 1.0.0\n */\n altitudeAccuracy: number | null | undefined;\n\n /**\n * The altitude the user is at (if available)\n *\n * @since 1.0.0\n */\n altitude: number | null;\n\n /**\n * The speed the user is traveling (if available)\n *\n * @since 1.0.0\n */\n speed: number | null;\n\n /**\n * The heading the user is facing (if available)\n *\n * @since 1.0.0\n */\n heading: number | null;\n };\n}\n\nexport interface PositionOptions {\n /**\n * High accuracy mode (such as GPS, if available)\n *\n * On Android 12+ devices it will be ignored if users didn't grant\n * ACCESS_FINE_LOCATION permissions (can be checked with location alias).\n *\n * @default false\n * @since 1.0.0\n */\n enableHighAccuracy?: boolean;\n\n /**\n * The maximum wait time in milliseconds for location updates.\n *\n * In Android, since version 7.1.0 of the plugin, it is also used to determine the\n * interval of location updates for `watchPosition`.\n *\n * @default 10000\n * @since 1.0.0\n */\n timeout?: number;\n\n /**\n * The maximum age in milliseconds of a possible cached position that is acceptable to return\n *\n * @default 0\n * @since 1.0.0\n */\n maximumAge?: number;\n\n /**\n * The minumum update interval for location updates.\n *\n * If location updates are available faster than this interval then an update\n * will only occur if the minimum update interval has expired since the last location update.\n *\n * This parameter is only available for Android. It has no effect on iOS or Web platforms.\n *\n * @default 5000\n * @since 6.1.0\n */\n minimumUpdateInterval?: number;\n}\n\nexport type WatchPositionCallback = (position: Position | null, err?: any) => void;\n\n/**\n * @deprecated Use `PositionOptions`.\n * @since 1.0.0\n */\nexport type GeolocationOptions = PositionOptions;\n\n/**\n * @deprecated Use `WatchPositionCallback`.\n * @since 1.0.0\n */\nexport type GeolocationWatchCallback = WatchPositionCallback;\n\n/**\n * @deprecated Use `Position`.\n * @since 1.0.0\n */\nexport type GeolocationPosition = Position;\n"]}
@@ -0,0 +1,4 @@
1
+ import type { GeolocationPlugin } from './definitions';
2
+ declare const Geolocation: GeolocationPlugin;
3
+ export * from './definitions';
4
+ export { Geolocation };
@@ -0,0 +1,9 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ import { exposeSynapse } from '@capacitor/synapse';
3
+ const Geolocation = registerPlugin('Geolocation', {
4
+ web: () => import('./web').then((m) => new m.GeolocationWeb()),
5
+ });
6
+ exposeSynapse();
7
+ export * from './definitions';
8
+ export { Geolocation };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAInD,MAAM,WAAW,GAAG,cAAc,CAAoB,aAAa,EAAE;IACnE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;CAC/D,CAAC,CAAC;AAEH,aAAa,EAAE,CAAC;AAEhB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport { exposeSynapse } from '@capacitor/synapse';\n\nimport type { GeolocationPlugin } from './definitions';\n\nconst Geolocation = registerPlugin<GeolocationPlugin>('Geolocation', {\n web: () => import('./web').then((m) => new m.GeolocationWeb()),\n});\n\nexposeSynapse();\n\nexport * from './definitions';\nexport { Geolocation };\n"]}
@@ -0,0 +1,13 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { CallbackID, GeolocationPlugin, PermissionStatus, Position, PositionOptions, WatchPositionCallback } from './definitions';
3
+ export declare class GeolocationWeb extends WebPlugin implements GeolocationPlugin {
4
+ getCurrentPosition(options?: PositionOptions): Promise<Position>;
5
+ watchPosition(options: PositionOptions, callback: WatchPositionCallback): Promise<CallbackID>;
6
+ clearWatch(options: {
7
+ id: string;
8
+ }): Promise<void>;
9
+ checkPermissions(): Promise<PermissionStatus>;
10
+ requestPermissions(): Promise<PermissionStatus>;
11
+ }
12
+ declare const Geolocation: GeolocationWeb;
13
+ export { Geolocation };
@@ -0,0 +1,38 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class GeolocationWeb extends WebPlugin {
3
+ async getCurrentPosition(options) {
4
+ return new Promise((resolve, reject) => {
5
+ navigator.geolocation.getCurrentPosition((pos) => {
6
+ resolve(pos);
7
+ }, (err) => {
8
+ reject(err);
9
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));
10
+ });
11
+ }
12
+ async watchPosition(options, callback) {
13
+ const id = navigator.geolocation.watchPosition((pos) => {
14
+ callback(pos);
15
+ }, (err) => {
16
+ callback(null, err);
17
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));
18
+ return `${id}`;
19
+ }
20
+ async clearWatch(options) {
21
+ navigator.geolocation.clearWatch(parseInt(options.id, 10));
22
+ }
23
+ async checkPermissions() {
24
+ if (typeof navigator === 'undefined' || !navigator.permissions) {
25
+ throw this.unavailable('Permissions API not available in this browser');
26
+ }
27
+ const permission = await navigator.permissions.query({
28
+ name: 'geolocation',
29
+ });
30
+ return { location: permission.state, coarseLocation: permission.state };
31
+ }
32
+ async requestPermissions() {
33
+ throw this.unimplemented('Not implemented on web.');
34
+ }
35
+ }
36
+ const Geolocation = new GeolocationWeb();
37
+ export { Geolocation };
38
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,KAAK,CAAC,kBAAkB,CAAC,OAAyB;QAChD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,SAAS,CAAC,WAAW,CAAC,kBAAkB,CACtC,CAAC,GAAG,EAAE,EAAE;gBACN,OAAO,CAAC,GAAG,CAAC,CAAC;YACf,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;gBACN,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,kBAEC,kBAAkB,EAAE,KAAK,EACzB,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,CAAC,IACV,OAAO,EAEb,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAwB,EAAE,QAA+B;QAC3E,MAAM,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAC5C,CAAC,GAAG,EAAE,EAAE;YACN,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;YACN,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACtB,CAAC,kBAEC,kBAAkB,EAAE,KAAK,EACzB,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,CAAC,EACb,qBAAqB,EAAE,IAAI,IACxB,OAAO,EAEb,CAAC;QAEF,OAAO,GAAG,EAAE,EAAE,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAAuB;QACtC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;YAC/D,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;QAC1E,CAAC;QAED,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC;YACnD,IAAI,EAAE,aAAa;SACpB,CAAC,CAAC;QACH,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,cAAc,EAAE,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n CallbackID,\n GeolocationPlugin,\n PermissionStatus,\n Position,\n PositionOptions,\n WatchPositionCallback,\n} from './definitions';\n\nexport class GeolocationWeb extends WebPlugin implements GeolocationPlugin {\n async getCurrentPosition(options?: PositionOptions): Promise<Position> {\n return new Promise((resolve, reject) => {\n navigator.geolocation.getCurrentPosition(\n (pos) => {\n resolve(pos);\n },\n (err) => {\n reject(err);\n },\n {\n enableHighAccuracy: false,\n timeout: 10000,\n maximumAge: 0,\n ...options,\n },\n );\n });\n }\n\n async watchPosition(options: PositionOptions, callback: WatchPositionCallback): Promise<CallbackID> {\n const id = navigator.geolocation.watchPosition(\n (pos) => {\n callback(pos);\n },\n (err) => {\n callback(null, err);\n },\n {\n enableHighAccuracy: false,\n timeout: 10000,\n maximumAge: 0,\n minimumUpdateInterval: 5000,\n ...options,\n },\n );\n\n return `${id}`;\n }\n\n async clearWatch(options: { id: string }): Promise<void> {\n navigator.geolocation.clearWatch(parseInt(options.id, 10));\n }\n\n async checkPermissions(): Promise<PermissionStatus> {\n if (typeof navigator === 'undefined' || !navigator.permissions) {\n throw this.unavailable('Permissions API not available in this browser');\n }\n\n const permission = await navigator.permissions.query({\n name: 'geolocation',\n });\n return { location: permission.state, coarseLocation: permission.state };\n }\n\n async requestPermissions(): Promise<PermissionStatus> {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n\nconst Geolocation = new GeolocationWeb();\n\nexport { Geolocation };\n"]}
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@capacitor/core');
6
+ var synapse = require('@capacitor/synapse');
7
+
8
+ const Geolocation$1 = core.registerPlugin('Geolocation', {
9
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.GeolocationWeb()),
10
+ });
11
+ synapse.exposeSynapse();
12
+
13
+ class GeolocationWeb extends core.WebPlugin {
14
+ async getCurrentPosition(options) {
15
+ return new Promise((resolve, reject) => {
16
+ navigator.geolocation.getCurrentPosition((pos) => {
17
+ resolve(pos);
18
+ }, (err) => {
19
+ reject(err);
20
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));
21
+ });
22
+ }
23
+ async watchPosition(options, callback) {
24
+ const id = navigator.geolocation.watchPosition((pos) => {
25
+ callback(pos);
26
+ }, (err) => {
27
+ callback(null, err);
28
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));
29
+ return `${id}`;
30
+ }
31
+ async clearWatch(options) {
32
+ navigator.geolocation.clearWatch(parseInt(options.id, 10));
33
+ }
34
+ async checkPermissions() {
35
+ if (typeof navigator === 'undefined' || !navigator.permissions) {
36
+ throw this.unavailable('Permissions API not available in this browser');
37
+ }
38
+ const permission = await navigator.permissions.query({
39
+ name: 'geolocation',
40
+ });
41
+ return { location: permission.state, coarseLocation: permission.state };
42
+ }
43
+ async requestPermissions() {
44
+ throw this.unimplemented('Not implemented on web.');
45
+ }
46
+ }
47
+ const Geolocation = new GeolocationWeb();
48
+
49
+ var web = /*#__PURE__*/Object.freeze({
50
+ __proto__: null,
51
+ GeolocationWeb: GeolocationWeb,
52
+ Geolocation: Geolocation
53
+ });
54
+
55
+ exports.Geolocation = Geolocation$1;
56
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport { exposeSynapse } from '@capacitor/synapse';\nconst Geolocation = registerPlugin('Geolocation', {\n web: () => import('./web').then((m) => new m.GeolocationWeb()),\n});\nexposeSynapse();\nexport * from './definitions';\nexport { Geolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class GeolocationWeb extends WebPlugin {\n async getCurrentPosition(options) {\n return new Promise((resolve, reject) => {\n navigator.geolocation.getCurrentPosition((pos) => {\n resolve(pos);\n }, (err) => {\n reject(err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n });\n }\n async watchPosition(options, callback) {\n const id = navigator.geolocation.watchPosition((pos) => {\n callback(pos);\n }, (err) => {\n callback(null, err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));\n return `${id}`;\n }\n async clearWatch(options) {\n navigator.geolocation.clearWatch(parseInt(options.id, 10));\n }\n async checkPermissions() {\n if (typeof navigator === 'undefined' || !navigator.permissions) {\n throw this.unavailable('Permissions API not available in this browser');\n }\n const permission = await navigator.permissions.query({\n name: 'geolocation',\n });\n return { location: permission.state, coarseLocation: permission.state };\n }\n async requestPermissions() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst Geolocation = new GeolocationWeb();\nexport { Geolocation };\n//# sourceMappingURL=web.js.map"],"names":["Geolocation","registerPlugin","exposeSynapse","WebPlugin"],"mappings":";;;;;;;AAEK,MAACA,aAAW,GAAGC,mBAAc,CAAC,aAAa,EAAE;AAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;AAClE,CAAC,EAAE;AACHC,qBAAa,EAAE;;ACJR,MAAM,cAAc,SAASC,cAAS,CAAC;AAC9C,IAAI,MAAM,kBAAkB,CAAC,OAAO,EAAE;AACtC,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAChD,YAAY,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,GAAG,KAAK;AAC9D,gBAAgB,OAAO,CAAC,GAAG,CAAC,CAAC;AAC7B,aAAa,EAAE,CAAC,GAAG,KAAK;AACxB,gBAAgB,MAAM,CAAC,GAAG,CAAC,CAAC;AAC5B,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AACrG,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,MAAM,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE;AAC3C,QAAQ,MAAM,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK;AAChE,YAAY,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC1B,SAAS,EAAE,CAAC,GAAG,KAAK;AACpB,YAAY,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAChC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9H,QAAQ,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AACnE,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;AACxE,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;AACpF,SAAS;AACT,QAAQ,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7D,YAAY,IAAI,EAAE,aAAa;AAC/B,SAAS,CAAC,CAAC;AACX,QAAQ,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC;AAChF,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,CAAC;AACD,MAAM,WAAW,GAAG,IAAI,cAAc,EAAE;;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,58 @@
1
+ var capacitorGeolocationPluginCapacitor = (function (exports, core, synapse) {
2
+ 'use strict';
3
+
4
+ const Geolocation$1 = core.registerPlugin('Geolocation', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.GeolocationWeb()),
6
+ });
7
+ synapse.exposeSynapse();
8
+
9
+ class GeolocationWeb extends core.WebPlugin {
10
+ async getCurrentPosition(options) {
11
+ return new Promise((resolve, reject) => {
12
+ navigator.geolocation.getCurrentPosition((pos) => {
13
+ resolve(pos);
14
+ }, (err) => {
15
+ reject(err);
16
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));
17
+ });
18
+ }
19
+ async watchPosition(options, callback) {
20
+ const id = navigator.geolocation.watchPosition((pos) => {
21
+ callback(pos);
22
+ }, (err) => {
23
+ callback(null, err);
24
+ }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));
25
+ return `${id}`;
26
+ }
27
+ async clearWatch(options) {
28
+ navigator.geolocation.clearWatch(parseInt(options.id, 10));
29
+ }
30
+ async checkPermissions() {
31
+ if (typeof navigator === 'undefined' || !navigator.permissions) {
32
+ throw this.unavailable('Permissions API not available in this browser');
33
+ }
34
+ const permission = await navigator.permissions.query({
35
+ name: 'geolocation',
36
+ });
37
+ return { location: permission.state, coarseLocation: permission.state };
38
+ }
39
+ async requestPermissions() {
40
+ throw this.unimplemented('Not implemented on web.');
41
+ }
42
+ }
43
+ const Geolocation = new GeolocationWeb();
44
+
45
+ var web = /*#__PURE__*/Object.freeze({
46
+ __proto__: null,
47
+ GeolocationWeb: GeolocationWeb,
48
+ Geolocation: Geolocation
49
+ });
50
+
51
+ exports.Geolocation = Geolocation$1;
52
+
53
+ Object.defineProperty(exports, '__esModule', { value: true });
54
+
55
+ return exports;
56
+
57
+ })({}, capacitorExports, synapse);
58
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport { exposeSynapse } from '@capacitor/synapse';\nconst Geolocation = registerPlugin('Geolocation', {\n web: () => import('./web').then((m) => new m.GeolocationWeb()),\n});\nexposeSynapse();\nexport * from './definitions';\nexport { Geolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class GeolocationWeb extends WebPlugin {\n async getCurrentPosition(options) {\n return new Promise((resolve, reject) => {\n navigator.geolocation.getCurrentPosition((pos) => {\n resolve(pos);\n }, (err) => {\n reject(err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n });\n }\n async watchPosition(options, callback) {\n const id = navigator.geolocation.watchPosition((pos) => {\n callback(pos);\n }, (err) => {\n callback(null, err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));\n return `${id}`;\n }\n async clearWatch(options) {\n navigator.geolocation.clearWatch(parseInt(options.id, 10));\n }\n async checkPermissions() {\n if (typeof navigator === 'undefined' || !navigator.permissions) {\n throw this.unavailable('Permissions API not available in this browser');\n }\n const permission = await navigator.permissions.query({\n name: 'geolocation',\n });\n return { location: permission.state, coarseLocation: permission.state };\n }\n async requestPermissions() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst Geolocation = new GeolocationWeb();\nexport { Geolocation };\n//# sourceMappingURL=web.js.map"],"names":["Geolocation","registerPlugin","exposeSynapse","WebPlugin"],"mappings":";;;AAEK,UAACA,aAAW,GAAGC,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;IAClE,CAAC,EAAE;AACHC,yBAAa,EAAE;;ICJR,MAAM,cAAc,SAASC,cAAS,CAAC;IAC9C,IAAI,MAAM,kBAAkB,CAAC,OAAO,EAAE;IACtC,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;IAChD,YAAY,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,GAAG,KAAK;IAC9D,gBAAgB,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7B,aAAa,EAAE,CAAC,GAAG,KAAK;IACxB,gBAAgB,MAAM,CAAC,GAAG,CAAC,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IACrG,SAAS,CAAC,CAAC;IACX,KAAK;IACL,IAAI,MAAM,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE;IAC3C,QAAQ,MAAM,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK;IAChE,YAAY,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC1B,SAAS,EAAE,CAAC,GAAG,KAAK;IACpB,YAAY,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9H,QAAQ,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACvB,KAAK;IACL,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;IAC9B,QAAQ,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACnE,KAAK;IACL,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;IACxE,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;IACpF,SAAS;IACT,QAAQ,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC;IAC7D,YAAY,IAAI,EAAE,aAAa;IAC/B,SAAS,CAAC,CAAC;IACX,QAAQ,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC;IAChF,KAAK;IACL,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,CAAC;IACD,MAAM,WAAW,GAAG,IAAI,cAAc,EAAE;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/geolocation",
3
- "version": "7.1.1",
3
+ "version": "7.1.2",
4
4
  "description": "The Geolocation API provides simple methods for getting and tracking the current position of the device using GPS, along with altitude, heading, and speed information if available.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -19,10 +19,10 @@
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/ionic-team/capacitor-geolocation.git"
22
+ "url": "https://github.com/nitra/capacitor-geolocation.git"
23
23
  },
24
24
  "bugs": {
25
- "url": "https://github.com/ionic-team/capacitor-geolocation/issues"
25
+ "url": "https://github.com/nitra/capacitor-geolocation/issues"
26
26
  },
27
27
  "keywords": [
28
28
  "capacitor",