From 9d54b00dbca4e2171f8496be579ee140f752b420 Mon Sep 17 00:00:00 2001 From: wengki81 Date: Sat, 14 Jun 2025 16:35:21 +0800 Subject: [PATCH] Include built dist folder for external usage --- dist/docs.json | 298 ++++++++++++++++++++++++++++++++++++ dist/esm/definitions.d.ts | 55 +++++++ dist/esm/definitions.js | 2 + dist/esm/definitions.js.map | 1 + dist/esm/index.d.ts | 4 + dist/esm/index.js | 7 + dist/esm/index.js.map | 1 + dist/esm/web.d.ts | 7 + dist/esm/web.js | 37 +++++ dist/esm/web.js.map | 1 + dist/plugin.cjs.js | 51 ++++++ dist/plugin.cjs.js.map | 1 + dist/plugin.js | 54 +++++++ dist/plugin.js.map | 1 + 14 files changed, 520 insertions(+) create mode 100644 dist/docs.json create mode 100644 dist/esm/definitions.d.ts create mode 100644 dist/esm/definitions.js create mode 100644 dist/esm/definitions.js.map create mode 100644 dist/esm/index.d.ts create mode 100644 dist/esm/index.js create mode 100644 dist/esm/index.js.map create mode 100644 dist/esm/web.d.ts create mode 100644 dist/esm/web.js create mode 100644 dist/esm/web.js.map create mode 100644 dist/plugin.cjs.js create mode 100644 dist/plugin.cjs.js.map create mode 100644 dist/plugin.js create mode 100644 dist/plugin.js.map diff --git a/dist/docs.json b/dist/docs.json new file mode 100644 index 0000000..d17276b --- /dev/null +++ b/dist/docs.json @@ -0,0 +1,298 @@ +{ + "api": { + "name": "DumonGeolocationPlugin", + "slug": "dumongeolocationplugin", + "docs": "", + "tags": [], + "methods": [ + { + "name": "startPositioning", + "signature": "() => Promise", + "parameters": [], + "returns": "Promise", + "tags": [], + "docs": "", + "complexTypes": [], + "slug": "startpositioning" + }, + { + "name": "stopPositioning", + "signature": "() => Promise", + "parameters": [], + "returns": "Promise", + "tags": [], + "docs": "", + "complexTypes": [], + "slug": "stoppositioning" + }, + { + "name": "getLatestPosition", + "signature": "() => Promise", + "parameters": [], + "returns": "Promise", + "tags": [], + "docs": "", + "complexTypes": [ + "PositioningData" + ], + "slug": "getlatestposition" + }, + { + "name": "addListener", + "signature": "(eventName: 'onPositionUpdate', listenerFunc: (data: PositioningData) => void) => PluginListenerHandle", + "parameters": [ + { + "name": "eventName", + "docs": "", + "type": "'onPositionUpdate'" + }, + { + "name": "listenerFunc", + "docs": "", + "type": "(data: PositioningData) => void" + } + ], + "returns": "PluginListenerHandle", + "tags": [], + "docs": "", + "complexTypes": [ + "PluginListenerHandle", + "PositioningData" + ], + "slug": "addlisteneronpositionupdate-" + } + ], + "properties": [] + }, + "interfaces": [ + { + "name": "PositioningData", + "slug": "positioningdata", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "source", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "'GNSS' | 'WIFI' | 'FUSED' | 'MOCK'" + }, + { + "name": "timestamp", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "latitude", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "longitude", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "accuracy", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "gnssData", + "tags": [], + "docs": "", + "complexTypes": [ + "SatelliteStatus" + ], + "type": "SatelliteStatus" + }, + { + "name": "wifiData", + "tags": [], + "docs": "", + "complexTypes": [ + "WifiAp" + ], + "type": "WifiAp[] | undefined" + }, + { + "name": "imuData", + "tags": [], + "docs": "", + "complexTypes": [ + "ImuData" + ], + "type": "ImuData" + } + ] + }, + { + "name": "SatelliteStatus", + "slug": "satellitestatus", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "satellitesInView", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "usedInFix", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "constellationCounts", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "{ [key: string]: number; }" + } + ] + }, + { + "name": "WifiAp", + "slug": "wifiap", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "ssid", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "string" + }, + { + "name": "bssid", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "string" + }, + { + "name": "rssi", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "distance", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number | undefined" + } + ] + }, + { + "name": "ImuData", + "slug": "imudata", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "accelX", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "accelY", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "accelZ", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "gyroX", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "gyroY", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "gyroZ", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number" + }, + { + "name": "speed", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number | undefined" + }, + { + "name": "acceleration", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number | undefined" + }, + { + "name": "directionRad", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "number | undefined" + } + ] + }, + { + "name": "PluginListenerHandle", + "slug": "pluginlistenerhandle", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "remove", + "tags": [], + "docs": "", + "complexTypes": [], + "type": "() => Promise" + } + ] + } + ], + "enums": [], + "typeAliases": [], + "pluginConfigs": [] +} \ No newline at end of file diff --git a/dist/esm/definitions.d.ts b/dist/esm/definitions.d.ts new file mode 100644 index 0000000..c28cfbb --- /dev/null +++ b/dist/esm/definitions.d.ts @@ -0,0 +1,55 @@ +import type { PluginListenerHandle } from '@capacitor/core'; +export interface SatelliteStatus { + satellitesInView: number; + usedInFix: number; + constellationCounts: { + [key: string]: number; + }; +} +export interface WifiAp { + ssid: string; + bssid: string; + rssi: number; + distance?: number; +} +export interface WifiScanResult { + apCount: number; + aps: WifiAp[]; +} +export interface ImuData { + accelX: number; + accelY: number; + accelZ: number; + gyroX: number; + gyroY: number; + gyroZ: number; + speed?: number; + acceleration?: number; + directionRad?: number; +} +export interface GpsData { + latitude: number; + longitude: number; + accuracy: number; + satellitesInView?: number; + usedInFix?: number; + constellationCounts?: { + [key: string]: number; + }; +} +export interface PositioningData { + source: 'GNSS' | 'WIFI' | 'FUSED' | 'MOCK'; + timestamp: number; + latitude: number; + longitude: number; + accuracy: number; + gnssData?: SatelliteStatus; + wifiData?: WifiAp[]; + imuData?: ImuData; +} +export interface DumonGeolocationPlugin { + startPositioning(): Promise; + stopPositioning(): Promise; + getLatestPosition(): Promise; + addListener(eventName: 'onPositionUpdate', listenerFunc: (data: PositioningData) => void): PluginListenerHandle; +} diff --git a/dist/esm/definitions.js b/dist/esm/definitions.js new file mode 100644 index 0000000..497acb5 --- /dev/null +++ b/dist/esm/definitions.js @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=definitions.js.map \ No newline at end of file diff --git a/dist/esm/definitions.js.map b/dist/esm/definitions.js.map new file mode 100644 index 0000000..c506f59 --- /dev/null +++ b/dist/esm/definitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface SatelliteStatus {\n satellitesInView: number;\n usedInFix: number;\n constellationCounts: { [key: string]: number };\n}\n\nexport interface WifiAp {\n ssid: string;\n bssid: string;\n rssi: number;\n distance?: number;\n}\n\nexport interface WifiScanResult {\n apCount: number;\n aps: WifiAp[];\n}\n\nexport interface ImuData {\n accelX: number;\n accelY: number;\n accelZ: number;\n gyroX: number;\n gyroY: number;\n gyroZ: number;\n speed?: number;\n acceleration?: number;\n directionRad?: number;\n}\n\nexport interface GpsData {\n latitude: number;\n longitude: number;\n accuracy: number;\n satellitesInView?: number;\n usedInFix?: number;\n constellationCounts?: { [key: string]: number };\n}\n\nexport interface PositioningData {\n source: 'GNSS' | 'WIFI' | 'FUSED' | 'MOCK';\n timestamp: number;\n latitude: number;\n longitude: number;\n accuracy: number;\n\n gnssData?: SatelliteStatus;\n wifiData?: WifiAp[];\n imuData?: ImuData;\n}\n\nexport interface DumonGeolocationPlugin {\n startPositioning(): Promise;\n stopPositioning(): Promise;\n getLatestPosition(): Promise;\n\n addListener(\n eventName: 'onPositionUpdate',\n listenerFunc: (data: PositioningData) => void\n ): PluginListenerHandle;\n}"]} \ No newline at end of file diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..69ebfd0 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,4 @@ +import type { DumonGeolocationPlugin } from './definitions'; +declare const DumonGeolocation: DumonGeolocationPlugin; +export * from './definitions'; +export { DumonGeolocation }; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..671051d --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,7 @@ +import { registerPlugin } from '@capacitor/core'; +const DumonGeolocation = registerPlugin('DumonGeolocation', { + web: () => import('./web').then((m) => new m.DumonGeolocationWeb()), +}); +export * from './definitions'; +export { DumonGeolocation }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/index.js.map b/dist/esm/index.js.map new file mode 100644 index 0000000..2e33c7b --- /dev/null +++ b/dist/esm/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,gBAAgB,GAAG,cAAc,CAAyB,kBAAkB,EAAE;IAClF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;CACpE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DumonGeolocationPlugin } from './definitions';\n\nconst DumonGeolocation = registerPlugin('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\n\nexport * from './definitions';\nexport { DumonGeolocation };"]} \ No newline at end of file diff --git a/dist/esm/web.d.ts b/dist/esm/web.d.ts new file mode 100644 index 0000000..82bd8c9 --- /dev/null +++ b/dist/esm/web.d.ts @@ -0,0 +1,7 @@ +import { WebPlugin } from '@capacitor/core'; +import type { PositioningData } from './definitions'; +export declare class DumonGeolocationWeb extends WebPlugin { + startPositioning(): Promise; + stopPositioning(): Promise; + getLatestPosition(): Promise; +} diff --git a/dist/esm/web.js b/dist/esm/web.js new file mode 100644 index 0000000..99eb9fa --- /dev/null +++ b/dist/esm/web.js @@ -0,0 +1,37 @@ +import { WebPlugin } from '@capacitor/core'; +export class DumonGeolocationWeb extends WebPlugin { + async startPositioning() { + console.log('DumonGeolocationWeb: startPositioning() called (no-op)'); + } + async stopPositioning() { + console.log('DumonGeolocationWeb: stopPositioning() called (no-op)'); + } + async getLatestPosition() { + console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)'); + return { + source: 'GNSS', + timestamp: Date.now(), + latitude: 0, + longitude: 0, + accuracy: 999, + gnssData: { + satellitesInView: 0, + usedInFix: 0, + constellationCounts: {} + }, + wifiData: [], + imuData: { + accelX: 0, + accelY: 0, + accelZ: 0, + gyroX: 0, + gyroY: 0, + gyroZ: 0, + speed: 0, + acceleration: 0, + directionRad: 0 + } + }; + } +} +//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/esm/web.js.map b/dist/esm/web.js.map new file mode 100644 index 0000000..a6b2764 --- /dev/null +++ b/dist/esm/web.js.map @@ -0,0 +1 @@ +{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,KAAK,CAAC,gBAAgB;QACpB,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC,CAAC;QACtF,OAAO;YACL,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,GAAG;YACb,QAAQ,EAAE;gBACR,gBAAgB,EAAE,CAAC;gBACnB,SAAS,EAAE,CAAC;gBACZ,mBAAmB,EAAE,EAAE;aACxB;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE;gBACP,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,YAAY,EAAE,CAAC;gBACf,YAAY,EAAE,CAAC;aAChB;SACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport type { PositioningData } from './definitions';\n\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning(): Promise {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n\n async stopPositioning(): Promise {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n\n async getLatestPosition(): Promise {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}"]} \ No newline at end of file diff --git a/dist/plugin.cjs.js b/dist/plugin.cjs.js new file mode 100644 index 0000000..d64ec2e --- /dev/null +++ b/dist/plugin.cjs.js @@ -0,0 +1,51 @@ +'use strict'; + +var core = require('@capacitor/core'); + +const DumonGeolocation = core.registerPlugin('DumonGeolocation', { + web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.DumonGeolocationWeb()), +}); + +class DumonGeolocationWeb extends core.WebPlugin { + async startPositioning() { + console.log('DumonGeolocationWeb: startPositioning() called (no-op)'); + } + async stopPositioning() { + console.log('DumonGeolocationWeb: stopPositioning() called (no-op)'); + } + async getLatestPosition() { + console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)'); + return { + source: 'GNSS', + timestamp: Date.now(), + latitude: 0, + longitude: 0, + accuracy: 999, + gnssData: { + satellitesInView: 0, + usedInFix: 0, + constellationCounts: {} + }, + wifiData: [], + imuData: { + accelX: 0, + accelY: 0, + accelZ: 0, + gyroX: 0, + gyroY: 0, + gyroZ: 0, + speed: 0, + acceleration: 0, + directionRad: 0 + } + }; + } +} + +var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + DumonGeolocationWeb: DumonGeolocationWeb +}); + +exports.DumonGeolocation = DumonGeolocation; +//# sourceMappingURL=plugin.cjs.js.map diff --git a/dist/plugin.cjs.js.map b/dist/plugin.cjs.js.map new file mode 100644 index 0000000..4f162c0 --- /dev/null +++ b/dist/plugin.cjs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst DumonGeolocation = registerPlugin('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\nexport * from './definitions';\nexport { DumonGeolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning() {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n async stopPositioning() {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n async getLatestPosition() {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,gBAAgB,GAAGA,mBAAc,CAAC,kBAAkB,EAAE;AAC5D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACvE,CAAC;;ACFM,MAAM,mBAAmB,SAASC,cAAS,CAAC;AACnD,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC;AAC7E;AACA,IAAI,MAAM,eAAe,GAAG;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC;AAC5E;AACA,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC;AAC7F,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,MAAM;AAC1B,YAAY,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;AACjC,YAAY,QAAQ,EAAE,CAAC;AACvB,YAAY,SAAS,EAAE,CAAC;AACxB,YAAY,QAAQ,EAAE,GAAG;AACzB,YAAY,QAAQ,EAAE;AACtB,gBAAgB,gBAAgB,EAAE,CAAC;AACnC,gBAAgB,SAAS,EAAE,CAAC;AAC5B,gBAAgB,mBAAmB,EAAE;AACrC,aAAa;AACb,YAAY,QAAQ,EAAE,EAAE;AACxB,YAAY,OAAO,EAAE;AACrB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,YAAY,EAAE,CAAC;AAC/B,gBAAgB,YAAY,EAAE;AAC9B;AACA,SAAS;AACT;AACA;;;;;;;;;"} \ No newline at end of file diff --git a/dist/plugin.js b/dist/plugin.js new file mode 100644 index 0000000..4f9049c --- /dev/null +++ b/dist/plugin.js @@ -0,0 +1,54 @@ +var capacitorDumonGeolocation = (function (exports, core) { + 'use strict'; + + const DumonGeolocation = core.registerPlugin('DumonGeolocation', { + web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.DumonGeolocationWeb()), + }); + + class DumonGeolocationWeb extends core.WebPlugin { + async startPositioning() { + console.log('DumonGeolocationWeb: startPositioning() called (no-op)'); + } + async stopPositioning() { + console.log('DumonGeolocationWeb: stopPositioning() called (no-op)'); + } + async getLatestPosition() { + console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)'); + return { + source: 'GNSS', + timestamp: Date.now(), + latitude: 0, + longitude: 0, + accuracy: 999, + gnssData: { + satellitesInView: 0, + usedInFix: 0, + constellationCounts: {} + }, + wifiData: [], + imuData: { + accelX: 0, + accelY: 0, + accelZ: 0, + gyroX: 0, + gyroY: 0, + gyroZ: 0, + speed: 0, + acceleration: 0, + directionRad: 0 + } + }; + } + } + + var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + DumonGeolocationWeb: DumonGeolocationWeb + }); + + exports.DumonGeolocation = DumonGeolocation; + + return exports; + +})({}, capacitorExports); +//# sourceMappingURL=plugin.js.map diff --git a/dist/plugin.js.map b/dist/plugin.js.map new file mode 100644 index 0000000..f1ff59d --- /dev/null +++ b/dist/plugin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst DumonGeolocation = registerPlugin('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\nexport * from './definitions';\nexport { DumonGeolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning() {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n async stopPositioning() {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n async getLatestPosition() {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,gBAAgB,GAAGA,mBAAc,CAAC,kBAAkB,EAAE;IAC5D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;IACvE,CAAC;;ICFM,MAAM,mBAAmB,SAASC,cAAS,CAAC;IACnD,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC;IAC7E;IACA,IAAI,MAAM,eAAe,GAAG;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC;IAC5E;IACA,IAAI,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC;IAC7F,QAAQ,OAAO;IACf,YAAY,MAAM,EAAE,MAAM;IAC1B,YAAY,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;IACjC,YAAY,QAAQ,EAAE,CAAC;IACvB,YAAY,SAAS,EAAE,CAAC;IACxB,YAAY,QAAQ,EAAE,GAAG;IACzB,YAAY,QAAQ,EAAE;IACtB,gBAAgB,gBAAgB,EAAE,CAAC;IACnC,gBAAgB,SAAS,EAAE,CAAC;IAC5B,gBAAgB,mBAAmB,EAAE;IACrC,aAAa;IACb,YAAY,QAAQ,EAAE,EAAE;IACxB,YAAY,OAAO,EAAE;IACrB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,YAAY,EAAE,CAAC;IAC/B,gBAAgB,YAAY,EAAE;IAC9B;IACA,SAAS;IACT;IACA;;;;;;;;;;;;;;;"} \ No newline at end of file