capacitor-plugin-healthapp 0.0.1
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/CapacitorPluginHealthapp.podspec +17 -0
- package/README.md +119 -0
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/managemyhealth/healthapp/Example.java +11 -0
- package/android/src/main/java/com/managemyhealth/healthapp/ExamplePlugin.java +22 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +354 -0
- package/dist/esm/definitions.d.ts +13 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +15 -0
- package/dist/esm/web.js +16 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +32 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +35 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/HealthApp.swift +911 -0
- package/ios/Plugin/HealthAppPlugin.h +10 -0
- package/ios/Plugin/HealthAppPlugin.m +11 -0
- package/ios/Plugin/HealthAppPlugin.swift +156 -0
- package/ios/Plugin/Info.plist +24 -0
- package/package.json +78 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var core = require('@capacitor/core');
|
6
|
+
|
7
|
+
const HealthApp = core.registerPlugin('HealthApp', {
|
8
|
+
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ExampleWeb()),
|
9
|
+
});
|
10
|
+
|
11
|
+
class ExampleWeb extends core.WebPlugin {
|
12
|
+
getHealthKitData(options) {
|
13
|
+
console.log('getHealthKitData', options);
|
14
|
+
throw new Error('Method not implemented.');
|
15
|
+
}
|
16
|
+
getIndividualHealthKitData(options) {
|
17
|
+
console.log('getHealthKitData', options);
|
18
|
+
throw new Error('Method not implemented.');
|
19
|
+
}
|
20
|
+
async echo(options) {
|
21
|
+
console.log('ECHO', options);
|
22
|
+
return options;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
var web = /*#__PURE__*/Object.freeze({
|
27
|
+
__proto__: null,
|
28
|
+
ExampleWeb: ExampleWeb
|
29
|
+
});
|
30
|
+
|
31
|
+
exports.HealthApp = HealthApp;
|
32
|
+
//# 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';\nconst HealthApp = registerPlugin('HealthApp', {\n web: () => import('./web').then(m => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { HealthApp };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\n getHealthKitData(options) {\n console.log('getHealthKitData', options);\n throw new Error('Method not implemented.');\n }\n getIndividualHealthKitData(options) {\n console.log('getHealthKitData', options);\n throw new Error('Method not implemented.');\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,SAAS,GAAGA,mBAAc,CAAC,WAAW,EAAE;AAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC5D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,gBAAgB,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AACjD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,0BAA0B,CAAC,OAAO,EAAE;AACxC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AACjD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL;;;;;;;;;"}
|
package/dist/plugin.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
var capacitorExample = (function (exports, core) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
const HealthApp = core.registerPlugin('HealthApp', {
|
5
|
+
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ExampleWeb()),
|
6
|
+
});
|
7
|
+
|
8
|
+
class ExampleWeb extends core.WebPlugin {
|
9
|
+
getHealthKitData(options) {
|
10
|
+
console.log('getHealthKitData', options);
|
11
|
+
throw new Error('Method not implemented.');
|
12
|
+
}
|
13
|
+
getIndividualHealthKitData(options) {
|
14
|
+
console.log('getHealthKitData', options);
|
15
|
+
throw new Error('Method not implemented.');
|
16
|
+
}
|
17
|
+
async echo(options) {
|
18
|
+
console.log('ECHO', options);
|
19
|
+
return options;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
var web = /*#__PURE__*/Object.freeze({
|
24
|
+
__proto__: null,
|
25
|
+
ExampleWeb: ExampleWeb
|
26
|
+
});
|
27
|
+
|
28
|
+
exports.HealthApp = HealthApp;
|
29
|
+
|
30
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
31
|
+
|
32
|
+
return exports;
|
33
|
+
|
34
|
+
})({}, capacitorExports);
|
35
|
+
//# 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';\nconst HealthApp = registerPlugin('HealthApp', {\n web: () => import('./web').then(m => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { HealthApp };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\n getHealthKitData(options) {\n console.log('getHealthKitData', options);\n throw new Error('Method not implemented.');\n }\n getIndividualHealthKitData(options) {\n console.log('getHealthKitData', options);\n throw new Error('Method not implemented.');\n }\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,SAAS,GAAGA,mBAAc,CAAC,WAAW,EAAE;IAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,IAAI,gBAAgB,CAAC,OAAO,EAAE;IAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,0BAA0B,CAAC,OAAO,EAAE;IACxC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,OAAO,OAAO,CAAC;IACvB,KAAK;IACL;;;;;;;;;;;;;;;;;"}
|