capacitorandroidpermissions 0.0.1 → 0.0.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/README.md CHANGED
@@ -14,6 +14,8 @@ npx cap sync
14
14
  <docgen-index>
15
15
 
16
16
  * [`echo(...)`](#echo)
17
+ * [`checkPermissions(...)`](#checkpermissions)
18
+ * [`requestPermissions(...)`](#requestpermissions)
17
19
 
18
20
  </docgen-index>
19
21
 
@@ -34,4 +36,34 @@ echo(options: { value: string; }) => Promise<{ value: string; }>
34
36
 
35
37
  --------------------
36
38
 
39
+
40
+ ### checkPermissions(...)
41
+
42
+ ```typescript
43
+ checkPermissions(options: { value: string; }) => Promise<{ value: string; }>
44
+ ```
45
+
46
+ | Param | Type |
47
+ | ------------- | ------------------------------- |
48
+ | **`options`** | <code>{ value: string; }</code> |
49
+
50
+ **Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
51
+
52
+ --------------------
53
+
54
+
55
+ ### requestPermissions(...)
56
+
57
+ ```typescript
58
+ requestPermissions(options: { value: string; }) => Promise<{ value: string; }>
59
+ ```
60
+
61
+ | Param | Type |
62
+ | ------------- | ------------------------------- |
63
+ | **`options`** | <code>{ value: string; }</code> |
64
+
65
+ **Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
66
+
67
+ --------------------
68
+
37
69
  </docgen-api>
package/dist/docs.json CHANGED
@@ -20,6 +20,38 @@
20
20
  "docs": "",
21
21
  "complexTypes": [],
22
22
  "slug": "echo"
23
+ },
24
+ {
25
+ "name": "checkPermissions",
26
+ "signature": "(options: { value: string; }) => Promise<{ value: string; }>",
27
+ "parameters": [
28
+ {
29
+ "name": "options",
30
+ "docs": "",
31
+ "type": "{ value: string; }"
32
+ }
33
+ ],
34
+ "returns": "Promise<{ value: string; }>",
35
+ "tags": [],
36
+ "docs": "",
37
+ "complexTypes": [],
38
+ "slug": "checkpermissions"
39
+ },
40
+ {
41
+ "name": "requestPermissions",
42
+ "signature": "(options: { value: string; }) => Promise<{ value: string; }>",
43
+ "parameters": [
44
+ {
45
+ "name": "options",
46
+ "docs": "",
47
+ "type": "{ value: string; }"
48
+ }
49
+ ],
50
+ "returns": "Promise<{ value: string; }>",
51
+ "tags": [],
52
+ "docs": "",
53
+ "complexTypes": [],
54
+ "slug": "requestpermissions"
23
55
  }
24
56
  ],
25
57
  "properties": []
@@ -4,4 +4,14 @@ export interface ExamplePlugin {
4
4
  }): Promise<{
5
5
  value: string;
6
6
  }>;
7
+ checkPermissions(options: {
8
+ value: string;
9
+ }): Promise<{
10
+ value: string;
11
+ }>;
12
+ requestPermissions(options: {
13
+ value: string;
14
+ }): Promise<{
15
+ value: string;
16
+ }>;
7
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ExamplePlugin {\n echo(options: { value: string }): Promise<{ value: string }>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ExamplePlugin {\n echo(options: { value: string }): Promise<{ value: string }>;\n checkPermissions(options: { value: string }): Promise<{ value: string }>;\n requestPermissions(options: { value: string }): Promise<{ value: string }>;\n}\n"]}
package/dist/esm/web.d.ts CHANGED
@@ -6,4 +6,14 @@ export declare class ExampleWeb extends WebPlugin implements ExamplePlugin {
6
6
  }): Promise<{
7
7
  value: string;
8
8
  }>;
9
+ checkPermissions(options: {
10
+ value: string;
11
+ }): Promise<{
12
+ value: string;
13
+ }>;
14
+ requestPermissions(options: {
15
+ value: string;
16
+ }): Promise<{
17
+ value: string;
18
+ }>;
9
19
  }
package/dist/esm/web.js CHANGED
@@ -4,5 +4,13 @@ export class ExampleWeb extends WebPlugin {
4
4
  console.log('ECHO', options);
5
5
  return options;
6
6
  }
7
+ async checkPermissions(options) {
8
+ console.log('ECHO', options);
9
+ return options;
10
+ }
11
+ async requestPermissions(options) {
12
+ console.log('ECHO', options);
13
+ return options;
14
+ }
7
15
  }
8
16
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC,KAAK,CAAC,IAAI,CAAC,OAA0B;QACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { ExamplePlugin } from './definitions';\n\nexport class ExampleWeb extends WebPlugin implements ExamplePlugin {\n async echo(options: { value: string }): Promise<{ value: string }> {\n console.log('ECHO', options);\n return options;\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC,KAAK,CAAC,IAAI,CAAC,OAA0B;QACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,OAA0B;QAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,OAA0B;QACjD,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { ExamplePlugin } from './definitions';\n\nexport class ExampleWeb extends WebPlugin implements ExamplePlugin {\n async echo(options: { value: string }): Promise<{ value: string }> {\n console.log('ECHO', options);\n return options;\n }\n async checkPermissions(options: { value: string }): Promise<{ value: string }> {\n console.log('ECHO', options);\n return options;\n }\n async requestPermissions(options: { value: string }): Promise<{ value: string }> {\n console.log('ECHO', options);\n return options;\n }\n}\n"]}
@@ -13,6 +13,14 @@ class ExampleWeb extends core.WebPlugin {
13
13
  console.log('ECHO', options);
14
14
  return options;
15
15
  }
16
+ async checkPermissions(options) {
17
+ console.log('ECHO', options);
18
+ return options;
19
+ }
20
+ async requestPermissions(options) {
21
+ console.log('ECHO', options);
22
+ return options;
23
+ }
16
24
  }
17
25
 
18
26
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Example = registerPlugin('Example', {\n web: () => import('./web').then((m) => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { Example };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\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,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC9D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,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;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Example = registerPlugin('Example', {\n web: () => import('./web').then((m) => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { Example };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async checkPermissions(options) {\n console.log('ECHO', options);\n return options;\n }\n async requestPermissions(options) {\n console.log('ECHO', options);\n return options;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC9D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,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,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,kBAAkB,CAAC,OAAO,EAAE;AACtC,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -10,6 +10,14 @@ var capacitorExample = (function (exports, core) {
10
10
  console.log('ECHO', options);
11
11
  return options;
12
12
  }
13
+ async checkPermissions(options) {
14
+ console.log('ECHO', options);
15
+ return options;
16
+ }
17
+ async requestPermissions(options) {
18
+ console.log('ECHO', options);
19
+ return options;
20
+ }
13
21
  }
14
22
 
15
23
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Example = registerPlugin('Example', {\n web: () => import('./web').then((m) => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { Example };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\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,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,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;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Example = registerPlugin('Example', {\n web: () => import('./web').then((m) => new m.ExampleWeb()),\n});\nexport * from './definitions';\nexport { Example };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ExampleWeb extends WebPlugin {\n async echo(options) {\n console.log('ECHO', options);\n return options;\n }\n async checkPermissions(options) {\n console.log('ECHO', options);\n return options;\n }\n async requestPermissions(options) {\n console.log('ECHO', options);\n return options;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,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,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,OAAO,OAAO,CAAC;IACvB,KAAK;IACL,IAAI,MAAM,kBAAkB,CAAC,OAAO,EAAE;IACtC,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,OAAO,OAAO,CAAC;IACvB,KAAK;IACL;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitorandroidpermissions",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "notification permission handler",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",