drawdown-arcore-depth 0.1.4

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.
@@ -0,0 +1,21 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class DrawDownArCoreDepthWeb extends WebPlugin {
3
+ async checkSupport() {
4
+ return {
5
+ isSupported: false,
6
+ hasDepthApi: false,
7
+ pluginVersion: '0.1.0',
8
+ message: 'DrawDown ARCore Depth is available only in the native Android app.',
9
+ };
10
+ }
11
+ async startDbhSession(_options) {
12
+ throw this.unimplemented('DrawDown ARCore Depth is Android-only.');
13
+ }
14
+ async captureDbhSweep(_options) {
15
+ throw this.unimplemented('DrawDown ARCore Depth is Android-only.');
16
+ }
17
+ async stopDbhSession() {
18
+ return;
19
+ }
20
+ }
21
+ //# 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;AAU5C,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACnD,KAAK,CAAC,YAAY;QAChB,OAAO;YACL,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,KAAK;YAClB,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,oEAAoE;SAC9E,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,QAAgC;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,wCAAwC,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,QAAgC;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,wCAAwC,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,OAAO;IACT,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+ const core = require('@capacitor/core');
3
+ const DrawDownArCoreDepth = core.registerPlugin('DrawDownArCoreDepth', {
4
+ web: () => Promise.resolve().then(() => require('./web.cjs.js')).then((m) => new m.DrawDownArCoreDepthWeb()),
5
+ });
6
+ exports.DrawDownArCoreDepth = DrawDownArCoreDepth;
package/dist/plugin.js ADDED
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const DrawDownArCoreDepth = registerPlugin('DrawDownArCoreDepth', {
3
+ web: () => import('./web').then((m) => new m.DrawDownArCoreDepthWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { DrawDownArCoreDepth };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+ const core = require('@capacitor/core');
3
+ class DrawDownArCoreDepthWeb extends core.WebPlugin {
4
+ async checkSupport() {
5
+ return { isSupported: false, hasDepthApi: false, pluginVersion: '0.1.0', message: 'DrawDown ARCore Depth is available only in the native Android app.' };
6
+ }
7
+ async startDbhSession() { throw this.unimplemented('DrawDown ARCore Depth is Android-only.'); }
8
+ async captureDbhSweep() { throw this.unimplemented('DrawDown ARCore Depth is Android-only.'); }
9
+ async stopDbhSession() { return; }
10
+ }
11
+ exports.DrawDownArCoreDepthWeb = DrawDownArCoreDepthWeb;
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "drawdown-arcore-depth",
3
+ "version": "0.1.4",
4
+ "description": "Small Android-only Capacitor 8 bridge for ARCore Depth DBH observations.",
5
+ "main": "dist/plugin.cjs.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "files": [
9
+ "android/",
10
+ "dist/",
11
+ "README.md",
12
+ "LICENSE",
13
+ "NOTICE.md"
14
+ ],
15
+ "scripts": {
16
+ "clean": "rimraf dist",
17
+ "build": "npm run clean && tsc -p tsconfig.json && rollup -c rollup.config.mjs",
18
+ "pack:local": "npm run build && npm pack"
19
+ },
20
+ "keywords": [
21
+ "capacitor",
22
+ "android",
23
+ "arcore",
24
+ "depth",
25
+ "forestry",
26
+ "dbh"
27
+ ],
28
+ "license": "MIT",
29
+ "author": "DrawDown",
30
+ "peerDependencies": {
31
+ "@capacitor/core": ">=8.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@capacitor/core": "^8.0.0",
35
+ "rollup": "^4.0.0",
36
+ "@rollup/plugin-node-resolve": "^16.0.0",
37
+ "typescript": "^5.8.0",
38
+ "@capacitor/android": "^8.0.0",
39
+ "rimraf": "^6.0.0"
40
+ },
41
+ "unpkg": "dist/plugin.js",
42
+ "capacitor": {
43
+ "android": {
44
+ "src": "android"
45
+ }
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ }
50
+ }