mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-02-04 00:06:19 +08:00
Compare commits
427 Commits
feature/iv
...
release-pl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28e44581c9 | ||
|
|
c86cfd1446 | ||
|
|
8876c53e3b | ||
|
|
9e997d7685 | ||
|
|
94c5527aa4 | ||
|
|
723488f16f | ||
|
|
4cd9e93bd0 | ||
|
|
eee44de235 | ||
|
|
6a9afedc64 | ||
|
|
510a407f37 | ||
|
|
bf82a7b40c | ||
|
|
4739a9a01a | ||
|
|
e34c705c7a | ||
|
|
722d19e437 | ||
|
|
adeda4e579 | ||
|
|
bce956c633 | ||
|
|
196222f482 | ||
|
|
27ec7622ce | ||
|
|
56a649be50 | ||
|
|
c8f827691e | ||
|
|
76ff28b08f | ||
|
|
4411b182b0 | ||
|
|
562489a97e | ||
|
|
0c05b33a1d | ||
|
|
7a4306acfc | ||
|
|
b53dc7b373 | ||
|
|
caa3b505e1 | ||
|
|
5a96b49b3f | ||
|
|
2ff77142db | ||
|
|
024e5bcb6b | ||
|
|
71be156e52 | ||
|
|
8e55c4e817 | ||
|
|
e4edc9c241 | ||
|
|
61b1a65580 | ||
|
|
1f3448e3ef | ||
|
|
d29e77065c | ||
|
|
2a3b1b31ad | ||
|
|
54d5eea864 | ||
|
|
4352da9cae | ||
|
|
7df695cdb5 | ||
|
|
ef30aefe71 | ||
|
|
499b107c21 | ||
|
|
21e3e37a0d | ||
|
|
eca218a36f | ||
|
|
d38db02f92 | ||
|
|
b6bc20cefe | ||
|
|
0e12d1dc65 | ||
|
|
b5dc553659 | ||
|
|
1337ff5c7e | ||
|
|
14b04b5243 | ||
|
|
740268a75b | ||
|
|
e85f761999 | ||
|
|
acb6ba74fc | ||
|
|
a5ac795ef4 | ||
|
|
e95aa9ea74 | ||
|
|
74c9cd2a66 | ||
|
|
b20c67bf14 | ||
|
|
d83b124cec | ||
|
|
381f012402 | ||
|
|
658a55bc97 | ||
|
|
ac767ab219 | ||
|
|
4b526e4d4d | ||
|
|
da7b13fbcf | ||
|
|
890b8b855c | ||
|
|
9744564c8a | ||
|
|
a99ef76251 | ||
|
|
a97314afd5 | ||
|
|
652431206c | ||
|
|
68abedd15a | ||
|
|
910af256af | ||
|
|
3434bd5dce | ||
|
|
be6000f13c | ||
|
|
e830259beb | ||
|
|
4e817a96a8 | ||
|
|
61d0854f73 | ||
|
|
3a64cd4bcd | ||
|
|
c40a73407d | ||
|
|
bb5b344100 | ||
|
|
f87a73f29d | ||
|
|
bff5cce125 | ||
|
|
8fc3465ed5 | ||
|
|
50287d1f5a | ||
|
|
45fdf7fb3d | ||
|
|
7b24fa8478 | ||
|
|
12d6baed90 | ||
|
|
4c2af62bfa | ||
|
|
f53aea0a47 | ||
|
|
621c5842b9 | ||
|
|
04550843e5 | ||
|
|
6c480237cf | ||
|
|
f86836ab13 | ||
|
|
1c21dd1a77 | ||
|
|
657b31f67b | ||
|
|
3168688ce4 | ||
|
|
5f15119971 | ||
|
|
4471806f73 | ||
|
|
63f2fcbe99 | ||
|
|
5aa432d0a2 | ||
|
|
9569628c67 | ||
|
|
d03b4cc113 | ||
|
|
82be769a16 | ||
|
|
96678cb14c | ||
|
|
bd7c6abb05 | ||
|
|
0c39ec959a | ||
|
|
9b950ebc46 | ||
|
|
12b8046541 | ||
|
|
09bc540b80 | ||
|
|
90efdc9481 | ||
|
|
4e933e8e93 | ||
|
|
07bf7a96fc | ||
|
|
583a5eda8d | ||
|
|
1b38354650 | ||
|
|
52adaf9269 | ||
|
|
5289f07690 | ||
|
|
a5cf118a13 | ||
|
|
075efcbde1 | ||
|
|
467d8cb072 | ||
|
|
e704bcb441 | ||
|
|
4169b6628f | ||
|
|
50ab537fdd | ||
|
|
5c7218e8f6 | ||
|
|
1077071fa4 | ||
|
|
9d673e1898 | ||
|
|
cb765d818f | ||
|
|
f95a098870 | ||
|
|
d9489639b8 | ||
|
|
bc30032238 | ||
|
|
fed35441b0 | ||
|
|
aca4133c4d | ||
|
|
6e4373aed3 | ||
|
|
fc61c40317 | ||
|
|
dab9fd84bc | ||
|
|
ef62700395 | ||
|
|
8c970ef7f6 | ||
|
|
0625a9280e | ||
|
|
551170b8d7 | ||
|
|
23e6147b25 | ||
|
|
51d82f581d | ||
|
|
74b93d7499 | ||
|
|
6e7d0069c1 | ||
|
|
e7963f6f03 | ||
|
|
7e8657ea32 | ||
|
|
80a01197b5 | ||
|
|
a3ba0015ed | ||
|
|
6d3008d6fc | ||
|
|
d65e7ee647 | ||
|
|
adb330aa63 | ||
|
|
d607550573 | ||
|
|
d5e8fb253d | ||
|
|
974466ae39 | ||
|
|
60cf9acee5 | ||
|
|
9740eadfd5 | ||
|
|
95e848f4e5 | ||
|
|
3b9dabc18c | ||
|
|
7e2894f769 | ||
|
|
709049f2e7 | ||
|
|
02219c07c6 | ||
|
|
1f1c35a39f | ||
|
|
0cf84a68ed | ||
|
|
73bcc4053d | ||
|
|
e4af3a0390 | ||
|
|
68105e14fc | ||
|
|
094cfd4c8f | ||
|
|
4e747b8e2c | ||
|
|
d9eb83431d | ||
|
|
2dde2de42d | ||
|
|
e579eb58e2 | ||
|
|
bddafc779a | ||
|
|
a7d5e28671 | ||
|
|
d8e1cbd06e | ||
|
|
f533c5990c | ||
|
|
3ba983aa7f | ||
|
|
805a2737da | ||
|
|
b7dc7ffea7 | ||
|
|
0c2dca633a | ||
|
|
3c893d7119 | ||
|
|
61289bbbba | ||
|
|
dd2dc1b05f | ||
|
|
cef6c8f896 | ||
|
|
e3d3ee2b01 | ||
|
|
ecff55ceba | ||
|
|
1c4cbffe1d | ||
|
|
5355e922ac | ||
|
|
5750f305bf | ||
|
|
f09471207d | ||
|
|
c021fc79e6 | ||
|
|
d616ed5133 | ||
|
|
7865e279c5 | ||
|
|
ff6a69af97 | ||
|
|
9c2b70771d | ||
|
|
ae0d5dbac0 | ||
|
|
9b7148a8a9 | ||
|
|
d30052d8cf | ||
|
|
56126dd6a9 | ||
|
|
8fa353c1b8 | ||
|
|
55826b691f | ||
|
|
d7f4347f39 | ||
|
|
06247530a8 | ||
|
|
4d45e82e0e | ||
|
|
df36932de7 | ||
|
|
ce3a3c8b76 | ||
|
|
0f6d1c8354 | ||
|
|
72da25ff29 | ||
|
|
96cc995333 | ||
|
|
b600651f02 | ||
|
|
81987ebce4 | ||
|
|
555bb83916 | ||
|
|
b18a2c874e | ||
|
|
d92c4cf70a | ||
|
|
0d5991c604 | ||
|
|
1fbd4c763c | ||
|
|
f82f350613 | ||
|
|
5f30a88304 | ||
|
|
4372ff160a | ||
|
|
02be833b85 | ||
|
|
6d1d9f480d | ||
|
|
a151860df9 | ||
|
|
c9acedae52 | ||
|
|
ece66eeb7f | ||
|
|
2b6c297da8 | ||
|
|
126d44faf3 | ||
|
|
8047c9ad52 | ||
|
|
178f56625e | ||
|
|
fbd523f36a | ||
|
|
0527afe935 | ||
|
|
e3af183e0c | ||
|
|
f9110cb429 | ||
|
|
bb1164f4fc | ||
|
|
4cd48b4d0e | ||
|
|
baa207b724 | ||
|
|
213a26730e | ||
|
|
611374066e | ||
|
|
f609b9332b | ||
|
|
a236719a71 | ||
|
|
d726bac60e | ||
|
|
7e533f48b9 | ||
|
|
d6827531ee | ||
|
|
e96885c6b0 | ||
|
|
6b827ffe95 | ||
|
|
90e5028547 | ||
|
|
b2b3e3a6e3 | ||
|
|
06018b2cc7 | ||
|
|
f5c3307969 | ||
|
|
4435e7a3e0 | ||
|
|
7a0a73db3b | ||
|
|
7fe38aa378 | ||
|
|
bd0f4b07b4 | ||
|
|
402f4b7987 | ||
|
|
6c9bd07361 | ||
|
|
7f0077979c | ||
|
|
da2ec29c05 | ||
|
|
26bd115891 | ||
|
|
f92c99bfbf | ||
|
|
9031371721 | ||
|
|
2d836d3cd0 | ||
|
|
ae8221001e | ||
|
|
277d696a02 | ||
|
|
5b768854da | ||
|
|
a589dac215 | ||
|
|
950a1bb4ff | ||
|
|
1b15bf4557 | ||
|
|
bfd111e9d6 | ||
|
|
9715ef8755 | ||
|
|
e21bd1a50e | ||
|
|
99ec80e2e7 | ||
|
|
91da2e5020 | ||
|
|
e1ff6de9ef | ||
|
|
d9b3638f3d | ||
|
|
82f7fd9e0a | ||
|
|
0579e67e96 | ||
|
|
2d55ad694c | ||
|
|
5ae27d8ad4 | ||
|
|
0ec396b25c | ||
|
|
a095422889 | ||
|
|
a924fb519f | ||
|
|
63cfd4488d | ||
|
|
9b4502f929 | ||
|
|
ba37646fc4 | ||
|
|
3b1d0593da | ||
|
|
ff78ca7fb4 | ||
|
|
b283dc2e76 | ||
|
|
cc2a78c858 | ||
|
|
65d3053a53 | ||
|
|
f02bc78ec2 | ||
|
|
7fe3ad1daa | ||
|
|
e51a1a79ef | ||
|
|
74a80c0953 | ||
|
|
e32ac8c6c9 | ||
|
|
cf23a52ea2 | ||
|
|
e7aab1d814 | ||
|
|
34afbd1c53 | ||
|
|
56054d036e | ||
|
|
c654ea5925 | ||
|
|
70d7acc113 | ||
|
|
60aa74baed | ||
|
|
af55cb25fa | ||
|
|
2b8992faf3 | ||
|
|
e90a6a306c | ||
|
|
97f566170e | ||
|
|
d2e92f5589 | ||
|
|
c544b43a51 | ||
|
|
755b28e325 | ||
|
|
6a97dc5e07 | ||
|
|
2d347e46ed | ||
|
|
ef499ed290 | ||
|
|
1e258adeb5 | ||
|
|
5c0b31faa7 | ||
|
|
d00d54f507 | ||
|
|
2e5e43fa7b | ||
|
|
8eddcb0d45 | ||
|
|
4716a9db68 | ||
|
|
7eb57cdde8 | ||
|
|
6f38115ce2 | ||
|
|
d76dfae916 | ||
|
|
b8e3ac4403 | ||
|
|
cd81cfabf4 | ||
|
|
81a8b42a29 | ||
|
|
6f14ba6031 | ||
|
|
62f664e61a | ||
|
|
664e3385ce | ||
|
|
8201dc1d14 | ||
|
|
375246970c | ||
|
|
d7c771b250 | ||
|
|
89b21b7694 | ||
|
|
5e23ebebdc | ||
|
|
5bc6693571 | ||
|
|
facadcabaa | ||
|
|
d1210b76a7 | ||
|
|
e7d1641fe9 | ||
|
|
e22cf2bb69 | ||
|
|
deb8a61a81 | ||
|
|
3cca6104df | ||
|
|
de884a55d0 | ||
|
|
5a22241db5 | ||
|
|
d476af44cd | ||
|
|
8b6d6c726b | ||
|
|
7f1bf9520b | ||
|
|
f9257f4d65 | ||
|
|
85441e59ca | ||
|
|
a86c55ba5f | ||
|
|
f8c6430a26 | ||
|
|
98dc7c4be0 | ||
|
|
178489ffaa | ||
|
|
bf860c30c2 | ||
|
|
a7a10913fc | ||
|
|
406ad4ec45 | ||
|
|
c3a01431ce | ||
|
|
dc1ee8c530 | ||
|
|
b6a44e3a8a | ||
|
|
7761ed4a39 | ||
|
|
e799600b6e | ||
|
|
b0780a8bec | ||
|
|
b6cc2d93f0 | ||
|
|
7817643282 | ||
|
|
b572a10a6e | ||
|
|
acb39e5849 | ||
|
|
74302846dc | ||
|
|
a76463877c | ||
|
|
698692ed59 | ||
|
|
dfd3d55dbc | ||
|
|
f2d809f8b3 | ||
|
|
22d6cd957b | ||
|
|
2b061556dd | ||
|
|
7baa002fb9 | ||
|
|
2698011d4b | ||
|
|
b8374ab3b1 | ||
|
|
e85f6cf2b2 | ||
|
|
f86764abe7 | ||
|
|
dcb9b225ce | ||
|
|
97739e86f1 | ||
|
|
b3fade36c6 | ||
|
|
a6fcc16d12 | ||
|
|
e420bd1d2a | ||
|
|
8b826e3c1b | ||
|
|
1b45462542 | ||
|
|
82377f0633 | ||
|
|
aef160e418 | ||
|
|
a801c7d305 | ||
|
|
898e0b8588 | ||
|
|
99161e2b73 | ||
|
|
678fb71a7f | ||
|
|
6e953e58ca | ||
|
|
29163b93d6 | ||
|
|
ba83a81c75 | ||
|
|
ac1d0aa0a1 | ||
|
|
5d7cf3940f | ||
|
|
725e88080b | ||
|
|
38d59e3455 | ||
|
|
b5b8968ac4 | ||
|
|
ebdd6e9796 | ||
|
|
620385befc | ||
|
|
ba9c1c154e | ||
|
|
dd081cc696 | ||
|
|
135c6cc8b4 | ||
|
|
c7d39dde42 | ||
|
|
eb27d87d92 | ||
|
|
878a6e94c2 | ||
|
|
95fa8eb098 | ||
|
|
b1f4639640 | ||
|
|
d6697b8a95 | ||
|
|
41e96d950f | ||
|
|
56fc1d4663 | ||
|
|
9e5953bc27 | ||
|
|
346ea82652 | ||
|
|
8671e18391 | ||
|
|
0a31a374b1 | ||
|
|
64d2c55880 | ||
|
|
f96b7588de | ||
|
|
7a528b42d9 | ||
|
|
19fc222ea9 | ||
|
|
41a85e6587 | ||
|
|
04422600ca | ||
|
|
4e183b1881 | ||
|
|
63c83653c0 | ||
|
|
032f3a160a | ||
|
|
44967cc02c | ||
|
|
123517eac6 | ||
|
|
d1c13567d7 | ||
|
|
49df2996c8 | ||
|
|
d14d8c413e | ||
|
|
511300ea7b | ||
|
|
a3d3d546af | ||
|
|
cca5929a7d | ||
|
|
6e83ebdfb3 | ||
|
|
38528e1017 | ||
|
|
c801668d3f | ||
|
|
bc1ff3da7d |
6
.github/ISSUE_TEMPLATE.md
vendored
6
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,7 +1,7 @@
|
||||
**I'm submitting a ...** (check one with "x")
|
||||
[ ] bug report
|
||||
[ ] feature request
|
||||
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
|
||||
- [ ] bug report
|
||||
- [ ] feature request
|
||||
- [ ] support request => Please do not submit support requests here, use the discussions section https://github.com/danielsogl/awesome-cordova-plugins/discussions
|
||||
|
||||
**Current behavior:**
|
||||
<!-- Describe how the bug manifests. -->
|
||||
|
||||
6
.github/workflows/nodejs.yml
vendored
6
.github/workflows/nodejs.yml
vendored
@@ -8,12 +8,12 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3.2.0
|
||||
uses: actions/setup-node@v4.4.0
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
|
||||
35
.github/workflows/npmpublish.yml
vendored
35
.github/workflows/npmpublish.yml
vendored
@@ -1,35 +0,0 @@
|
||||
name: Release Packages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Readmes
|
||||
run: npm run readmes
|
||||
|
||||
publish-npm:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm run shipit
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
75
.github/workflows/release-please.yml
vendored
Normal file
75
.github/workflows/release-please.yml
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
name: Release Please
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# Manual trigger as backup
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
release_created: ${{ steps.release.outputs.release_created }}
|
||||
tag_name: ${{ steps.release.outputs.tag_name }}
|
||||
version: ${{ steps.release.outputs.version }}
|
||||
pr: ${{ steps.release.outputs.pr }}
|
||||
steps:
|
||||
- name: Run Release Please
|
||||
id: release
|
||||
uses: googleapis/release-please-action@v4
|
||||
with:
|
||||
# GitHub token for creating PRs and releases
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Use manifest-based configuration (advanced setup)
|
||||
config-file: release-please-config.json
|
||||
manifest-file: .release-please-manifest.json
|
||||
|
||||
- name: Show Release Info
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: |
|
||||
echo "Release created: ${{ steps.release.outputs.release_created }}"
|
||||
echo "Tag: ${{ steps.release.outputs.tag_name }}"
|
||||
echo "Version: ${{ steps.release.outputs.version }}"
|
||||
echo "PR: ${{ steps.release.outputs.pr }}"
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: release-please
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linting
|
||||
run: npm run lint
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
||||
- name: Build packages
|
||||
run: npm run build
|
||||
|
||||
- name: Generate README files
|
||||
run: npm run readmes
|
||||
|
||||
- name: Publish all packages to NPM
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npm run npmpub
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v5
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'There has been no recent activity and this issue has been marked inactive.'
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx --no-install lint-staged
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm test
|
||||
|
||||
260
.release-please-manifest.json
Normal file
260
.release-please-manifest.json
Normal file
@@ -0,0 +1,260 @@
|
||||
{
|
||||
".": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/core": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/abbyy-rtr": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/action-sheet": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/adjust": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/admob": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/admob-plus": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/admob-pro": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/advanced-image-picker": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/aes-256": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/airship": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/all-in-one-sdk": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/analytics-firebase": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/android-exoplayer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/android-full-screen": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/android-notch": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/android-permissions": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/anyline": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-availability": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-analytics": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-crashes": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-low-memory": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-push": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-shared": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-preferences": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-rate": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-review": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/app-version": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/apple-wallet": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/applovin": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/approov-advanced-http": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/appsflyer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/audio-management": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/background-fetch": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/background-geolocation": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/background-mode": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/background-upload": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/badge": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/barcode-scanner": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/barkoder": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/battery-status": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/biocatch": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/biometric-wrapper": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ble": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/blinkid": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-classic-serial-port": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-le": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-serial": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/branch-io": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/brightness": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/broadcaster": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/browser-tab": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/build-info": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/calendar": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/call-directory": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/call-number": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/camera": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/camera-preview": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/cashfree-pg": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/checkout": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/chooser": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/chooser-simple-file": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/clevertap": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/clipboard": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/cloud-settings": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/code-push": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/contacts": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/crop-plugin-privacy": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/custom-uisdk": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/deeplinks": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/device": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/device-accounts": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/device-motion": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/device-orientation": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/dfu-update": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/diagnostic": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/dialogs": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/dns": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/document-picker": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/document-scanner": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/document-viewer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/downloader": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/dynamsoft-barcode-scanner": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/email-composer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/fabric": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/facebook": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/fbsdk": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/fcm": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ffmpeg": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file-chooser": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file-md5": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file-opener": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file-path": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/file-transfer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/fingerprint-aio": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-analytics": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-authentication": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-config": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-crash": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-crashlytics": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-dynamic-links": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-messaging": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-model": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-vision": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-x": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/flashlight": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/foreground-service": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ftp": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/gao-de-location": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/gcdwebserver": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ge-tui-sdk-plugin": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/genius-scan": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/geolocation": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/globalization": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/google-analytics": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/google-nearby": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/google-plus": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/header-color": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/health": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/health-kit": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/http": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/hyper-track": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/i-root": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/iamport-cordova": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ibeacon": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/image-picker": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/image-resizer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/imap": "6.17.0",
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-browser": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-purchase-2": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-purchase-3": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-review": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-update": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/insomnia": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/instagram": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/intercom": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ionic-webview": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ios-aswebauthenticationsession-api": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/is-debug": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/keyboard": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/keychain": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/kommunicate": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/launch-navigator": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/launch-review": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/lets-cooee": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/line-login": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/local-backup": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/local-notifications": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/location-accuracy": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/lottie-splash-screen": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/magnetometer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/market": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/media": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/media-capture": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/metrix": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/mixpanel": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/mlkit-translate": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/mobile-accessibility": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/mobile-messaging": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/multiple-document-picker": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/music-controls": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-audio": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-geocoder": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-keyboard": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-page-transitions": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-storage": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/native-view": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/network": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/network-interface": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/network-permission": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/newrelic": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/nfc": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ocr": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/onesignal": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/open-native-settings": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/openalpr": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/openinstall": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/paytabs": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/pdf-generator": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/photo-library": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/photo-viewer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/play-install-referrer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/pollfish": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/power-management": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/power-optimization": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/preview-any-file": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/printer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/pspdfkit-cordova": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/purchases": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/push": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/pushape-push": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/safari-view-controller": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/save-dialog": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/screen-orientation": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/screenshot": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/secure-storage": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/secure-storage-echo": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/service-discovery": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/shake": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/shortcuts-android": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sign-in-with-apple": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/smartlook": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sms": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sms-retriever": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sms-retriever-api": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/smtp-client": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/social-sharing": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sockets-tcp": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sockets-udp": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/speech-recognition": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/spinner-dialog": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/splash-screen": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/spotify-auth": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite-db-copy": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite-porter": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/ssl-certificate-checker": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/star-prnt": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/status-bar": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/streaming-media": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/stripe": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/sum-up": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/system-alert-window-permission": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/taptic-engine": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/tealium": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/tealium-adidentifier": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/tealium-installreferrer": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/text-to-speech-advanced": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/theme-detection": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/three-dee-touch": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/toast": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/touch-id": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/unique-device-id": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/uptime": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/urbanairship": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/usabilla-cordova-sdk": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/vibes": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/vibration": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/video-editor": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/video-player": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/we-cap-inbox": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/web-intent": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/web-server": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/web-socket-server": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/webengage": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/webim": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/wechat": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/wheel-selector": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/wifi-wizard-2": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/wonderpush": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/youtube-video-player": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/zbar": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/zeroconf": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/zip": "6.16.0",
|
||||
"src/@awesome-cordova-plugins/plugins/zoom": "6.16.0"
|
||||
}
|
||||
333
CHANGELOG.md
333
CHANGELOG.md
@@ -1,3 +1,336 @@
|
||||
# [6.16.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.15.0...v6.16.0) (2025-03-26)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **imap:** implement email attachments support in IMAP plugin wrapper ([#4927](https://github.com/danielsogl/awesome-cordova-plugins/issues/4927)) ([4739a9a](https://github.com/danielsogl/awesome-cordova-plugins/commit/4739a9a01a5c731005ef152f1e1b672e9cd46b22))
|
||||
|
||||
|
||||
|
||||
# [6.15.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.14.0...v6.15.0) (2025-03-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **audio-management:** fix plugin name - closes [#4898](https://github.com/danielsogl/awesome-cordova-plugins/issues/4898) ([#4899](https://github.com/danielsogl/awesome-cordova-plugins/issues/4899)) ([7a4306a](https://github.com/danielsogl/awesome-cordova-plugins/commit/7a4306acfc8b161898d2ce6516404793609463dd))
|
||||
* **facebook/fbsdk:** add nonce parameter to loginWithLimitedTracking ([#4906](https://github.com/danielsogl/awesome-cordova-plugins/issues/4906)) ([562489a](https://github.com/danielsogl/awesome-cordova-plugins/commit/562489a97ed1f9453978f305845c3f511b342789))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **clevertap:** support clevertap-cordova 3.4.0 ([#4917](https://github.com/danielsogl/awesome-cordova-plugins/issues/4917)) ([56a649b](https://github.com/danielsogl/awesome-cordova-plugins/commit/56a649be5092081d6ab5019141b40a3a5d0a3ca1)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
* **intercom:** Add new methods ([#4914](https://github.com/danielsogl/awesome-cordova-plugins/issues/4914)) ([76ff28b](https://github.com/danielsogl/awesome-cordova-plugins/commit/76ff28b08f385728e4874a8c9e458b77e694678c))
|
||||
|
||||
|
||||
|
||||
# [6.14.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.13.0...v6.14.0) (2025-01-06)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **audio-management:** add plugin ([#4894](https://github.com/danielsogl/awesome-cordova-plugins/issues/4894)) ([2a3b1b3](https://github.com/danielsogl/awesome-cordova-plugins/commit/2a3b1b31ad75609cbf79bd33cec7f351cbd1ae2a))
|
||||
* **downloader:** add plugin ([#4893](https://github.com/danielsogl/awesome-cordova-plugins/issues/4893)) ([54d5eea](https://github.com/danielsogl/awesome-cordova-plugins/commit/54d5eea864be9afcb09daa75e07e5a782498a70f))
|
||||
|
||||
|
||||
|
||||
# [6.13.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.12.0...v6.13.0) (2024-12-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **clevertap:** support clevertap-cordova 3.3.0 ([#4883](https://github.com/danielsogl/awesome-cordova-plugins/issues/4883)) ([21e3e37](https://github.com/danielsogl/awesome-cordova-plugins/commit/21e3e37a0df0b099e857ff5eb0330a1ee5b6fe12)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
|
||||
|
||||
|
||||
# [6.12.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.11.0...v6.12.0) (2024-11-21)
|
||||
|
||||
|
||||
|
||||
# [6.11.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.10.0...v6.11.0) (2024-11-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cordova-plugin-firebase-model:** updated to @awesome-cordova-plugins/core ([#4858](https://github.com/danielsogl/awesome-cordova-plugins/issues/4858)) ([ac767ab](https://github.com/danielsogl/awesome-cordova-plugins/commit/ac767ab2198ab55d3cfcc20fafab838301e6f051))
|
||||
* **deps:** update dependency tslib to v2.8.1 ([#4856](https://github.com/danielsogl/awesome-cordova-plugins/issues/4856)) [skip ci] ([4b526e4](https://github.com/danielsogl/awesome-cordova-plugins/commit/4b526e4d4d96651baf126724909b034c7b25eac2))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cordova-plugin-iroot:** add plugin ([#4857](https://github.com/danielsogl/awesome-cordova-plugins/issues/4857)) ([658a55b](https://github.com/danielsogl/awesome-cordova-plugins/commit/658a55bc97dd4247ed8e8672ae08c23df2fdb185))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "feat(in-app-purchase-3) new InAppPurchase3 plugin (#4849)" (#4871) ([6524312](https://github.com/danielsogl/awesome-cordova-plugins/commit/652431206c51f5f66e88786d4bffa4ccca6331b3)), closes [#4849](https://github.com/danielsogl/awesome-cordova-plugins/issues/4849) [#4871](https://github.com/danielsogl/awesome-cordova-plugins/issues/4871)
|
||||
|
||||
|
||||
|
||||
# [6.10.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.9.0...v6.10.0) (2024-10-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **in-app-browser:** remove duplicated method ([#4838](https://github.com/danielsogl/awesome-cordova-plugins/issues/4838)) ([3a64cd4](https://github.com/danielsogl/awesome-cordova-plugins/commit/3a64cd4bcdf18b9a776ab90b45faf59c9a3ca10c))
|
||||
* **screenshot:** Update plugin NPM package name ([#4844](https://github.com/danielsogl/awesome-cordova-plugins/issues/4844)) ([4e817a9](https://github.com/danielsogl/awesome-cordova-plugins/commit/4e817a96a876d9adb6ffdbe6163f7e19ec1670d2))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **adjust:** update adjust sdk index.ts api to v5.0.0 ([#4826](https://github.com/danielsogl/awesome-cordova-plugins/issues/4826)) ([50287d1](https://github.com/danielsogl/awesome-cordova-plugins/commit/50287d1f5a94b8e311f541040f3034568646b3b3))
|
||||
* **bluetooth-classic-serial-port:** add method initialize ([#4847](https://github.com/danielsogl/awesome-cordova-plugins/issues/4847)) ([e830259](https://github.com/danielsogl/awesome-cordova-plugins/commit/e830259bebdb20a5dfef9d8bde4dde7cb84cfae2))
|
||||
* **intercom:** add support cordova-intercom v14+ ([#4839](https://github.com/danielsogl/awesome-cordova-plugins/issues/4839)) ([61d0854](https://github.com/danielsogl/awesome-cordova-plugins/commit/61d0854f73ec0c59cd528951b168cc7f3e88c8d0))
|
||||
* **network-permission:** add plugin ([#4830](https://github.com/danielsogl/awesome-cordova-plugins/issues/4830)) ([bff5cce](https://github.com/danielsogl/awesome-cordova-plugins/commit/bff5cce12555292d678539ed4690ec6ac79b8481))
|
||||
* **shortcuts-android:** add plugin ([#4831](https://github.com/danielsogl/awesome-cordova-plugins/issues/4831)) ([f87a73f](https://github.com/danielsogl/awesome-cordova-plugins/commit/f87a73f29d28dd0a0b3236540945bc97e4db5ddd))
|
||||
* **sockets-tcp:** add plugin ([#4833](https://github.com/danielsogl/awesome-cordova-plugins/issues/4833)) ([bb5b344](https://github.com/danielsogl/awesome-cordova-plugins/commit/bb5b3441005f9b564390de75cec8313eea9db50a))
|
||||
* **sockets-udp:** add plugin ([#4832](https://github.com/danielsogl/awesome-cordova-plugins/issues/4832)) ([c40a734](https://github.com/danielsogl/awesome-cordova-plugins/commit/c40a73407d7dde06e1e450c5c658220e275b643b))
|
||||
|
||||
|
||||
|
||||
# [6.9.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.8.0...v6.9.0) (2024-09-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency tslib to v2.7.0 ([#4823](https://github.com/danielsogl/awesome-cordova-plugins/issues/4823)) [skip ci] ([1c21dd1](https://github.com/danielsogl/awesome-cordova-plugins/commit/1c21dd1a7734e5cf82d9d64806d5b159d66f9d37))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **approov-advanced-http:** support approov3 methods ([#4817](https://github.com/danielsogl/awesome-cordova-plugins/issues/4817)) ([5f15119](https://github.com/danielsogl/awesome-cordova-plugins/commit/5f1511997101c750e80adb85e2c6b0dfacaf5a31))
|
||||
* **clevertap:** support clevertap-cordova 3.2.0 ([#4814](https://github.com/danielsogl/awesome-cordova-plugins/issues/4814)) ([4471806](https://github.com/danielsogl/awesome-cordova-plugins/commit/4471806f73ab286bbcab22d28ea2120cb4cc6a2b)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
* **mobile-messaging:** Added fullFeaturedInApps method to config, fetching of the Inbox methods and registerForRemoteAndroidNotifications method ([#4810](https://github.com/danielsogl/awesome-cordova-plugins/issues/4810)) ([63f2fcb](https://github.com/danielsogl/awesome-cordova-plugins/commit/63f2fcbe99b6be14a76a4a6c72ef19594d82905b))
|
||||
* **webengage:** New Plugin for Notification Inbox ([#4819](https://github.com/danielsogl/awesome-cordova-plugins/issues/4819)) ([3168688](https://github.com/danielsogl/awesome-cordova-plugins/commit/3168688ce44b1353ed6f12e41e06c90647046f71))
|
||||
|
||||
|
||||
|
||||
# [6.8.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.7.0...v6.8.0) (2024-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency tslib to v2.6.3 ([#4786](https://github.com/danielsogl/awesome-cordova-plugins/issues/4786)) [skip ci] ([50ab537](https://github.com/danielsogl/awesome-cordova-plugins/commit/50ab537fdd9f875f51ce1e4c7ffcf1a27c6d50e8))
|
||||
* **ssl-certificate-checker:** adjust method interfaces to follow plugin api ([#4799](https://github.com/danielsogl/awesome-cordova-plugins/issues/4799)) ([0c39ec9](https://github.com/danielsogl/awesome-cordova-plugins/commit/0c39ec959ab04e02065a98685f5293346f5939ac))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **airship:** add isForeground to push received events ([#4763](https://github.com/danielsogl/awesome-cordova-plugins/issues/4763)) ([4e933e8](https://github.com/danielsogl/awesome-cordova-plugins/commit/4e933e8e932c8db403b00d6b63713b63aa758071))
|
||||
* **barkoder:** add plugin ([#4782](https://github.com/danielsogl/awesome-cordova-plugins/issues/4782)) ([12b8046](https://github.com/danielsogl/awesome-cordova-plugins/commit/12b8046541dcf791027695a2aa8115124671ffe0))
|
||||
* **firebase-x:** add consent mode ([#4779](https://github.com/danielsogl/awesome-cordova-plugins/issues/4779)) ([09bc540](https://github.com/danielsogl/awesome-cordova-plugins/commit/09bc540b80c299aae70430b83f04d0a7dc6c7fec))
|
||||
* **genius-scan:** add plugin ([#4775](https://github.com/danielsogl/awesome-cordova-plugins/issues/4775)) [skip ci] ([90efdc9](https://github.com/danielsogl/awesome-cordova-plugins/commit/90efdc9481fa8b45d10f47de1b3081c177630e99))
|
||||
* **webengage:** add new methods ([#4784](https://github.com/danielsogl/awesome-cordova-plugins/issues/4784)) ([9b950eb](https://github.com/danielsogl/awesome-cordova-plugins/commit/9b950ebc46be9d07277450cdba55446e652fd30d))
|
||||
|
||||
|
||||
|
||||
# [6.7.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.6.0...v6.7.0) (2024-04-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 🐛 wrong top package main field ([#4736](https://github.com/danielsogl/awesome-cordova-plugins/issues/4736)) ([74b93d7](https://github.com/danielsogl/awesome-cordova-plugins/commit/74b93d749968c06d2ce4a653cbc5edeb9cfdd368))
|
||||
* **firebase-x:** filters for fetchFirestoreCollection ([#4733](https://github.com/danielsogl/awesome-cordova-plugins/issues/4733)) ([23e6147](https://github.com/danielsogl/awesome-cordova-plugins/commit/23e6147b25dc188604f83906d3078629c39bb7a2))
|
||||
* **firebase-x:** setConfigSettings function input parameters aligned with firebase-x plugin ([#4757](https://github.com/danielsogl/awesome-cordova-plugins/issues/4757)) ([adb330a](https://github.com/danielsogl/awesome-cordova-plugins/commit/adb330aa63d89d91243c5a9ebf8bc34aa5206d6e))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **adjust:** Add Remote Config missing functions ([#4756](https://github.com/danielsogl/awesome-cordova-plugins/issues/4756)) ([d65e7ee](https://github.com/danielsogl/awesome-cordova-plugins/commit/d65e7ee64707985966b27b7bfc206a1f29630f58))
|
||||
* **adjust:** update wrapper for Adjust Cordova SDK v4.37.1 ([#4724](https://github.com/danielsogl/awesome-cordova-plugins/issues/4724)) ([551170b](https://github.com/danielsogl/awesome-cordova-plugins/commit/551170b8d7d47819b8742344d9f214318ae97562))
|
||||
* **airship:** add plugin ([#4755](https://github.com/danielsogl/awesome-cordova-plugins/issues/4755)) ([6d3008d](https://github.com/danielsogl/awesome-cordova-plugins/commit/6d3008d6fc124c24a13ddf9f60be4c1779f41ee0))
|
||||
* **cashfree-pg:** support cordova-plugin-cashfree-pg 1.0.6 ([#4737](https://github.com/danielsogl/awesome-cordova-plugins/issues/4737)) ([6e7d006](https://github.com/danielsogl/awesome-cordova-plugins/commit/6e7d0069c138da760530926ba63bd7522a529565))
|
||||
* **clevertap:** support clevertap-cordova 3.0.0 ([#4760](https://github.com/danielsogl/awesome-cordova-plugins/issues/4760)) ([974466a](https://github.com/danielsogl/awesome-cordova-plugins/commit/974466ae39146de7826b752c0932eca0cc6a4c7e)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
* **contacts:** add plugin ([#4750](https://github.com/danielsogl/awesome-cordova-plugins/issues/4750)) ([80a0119](https://github.com/danielsogl/awesome-cordova-plugins/commit/80a01197b51d97821c7fa0037c98a9cbc19b9e43))
|
||||
* **screenshot:** add plugin ([#4751](https://github.com/danielsogl/awesome-cordova-plugins/issues/4751)) ([a3ba001](https://github.com/danielsogl/awesome-cordova-plugins/commit/a3ba0015eda437fe60e8f05852447c92cff8f31c))
|
||||
* **ssl-certificate-checker:** add SSL Certificate Checker support ([#4734](https://github.com/danielsogl/awesome-cordova-plugins/issues/4734)) ([51d82f5](https://github.com/danielsogl/awesome-cordova-plugins/commit/51d82f581d059a62d2179dc9da89afd64e1e41d2))
|
||||
|
||||
|
||||
|
||||
# [6.6.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.5.0...v6.6.0) (2023-12-19)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **adjust:** update wrapper for Adjust Cordova SDK v4.35.1 ([#4696](https://github.com/danielsogl/awesome-cordova-plugins/issues/4696)) ([709049f](https://github.com/danielsogl/awesome-cordova-plugins/commit/709049f2e77455723c62f248e327e37e2ca8ddb2)), closes [#4600](https://github.com/danielsogl/awesome-cordova-plugins/issues/4600) [#4608](https://github.com/danielsogl/awesome-cordova-plugins/issues/4608) [#4617](https://github.com/danielsogl/awesome-cordova-plugins/issues/4617) [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
|
||||
|
||||
|
||||
# [6.5.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.4.0...v6.5.0) (2023-12-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency tslib to v2.6.1 ([#4610](https://github.com/danielsogl/awesome-cordova-plugins/issues/4610)) [skip ci] ([d30052d](https://github.com/danielsogl/awesome-cordova-plugins/commit/d30052d8cfadcbae95a5437dc8692c87b39c5294))
|
||||
* **deps:** update dependency tslib to v2.6.2 ([#4669](https://github.com/danielsogl/awesome-cordova-plugins/issues/4669)) [skip ci] ([5355e92](https://github.com/danielsogl/awesome-cordova-plugins/commit/5355e922acd5ea6c09a94bd82064eeae52926c06))
|
||||
* **diagnostic:** add LIMITED permissionStatus ([#4645](https://github.com/danielsogl/awesome-cordova-plugins/issues/4645)) ([3ba983a](https://github.com/danielsogl/awesome-cordova-plugins/commit/3ba983aa7f8a3ce382c164929cda37921056cfcc)), closes [#4600](https://github.com/danielsogl/awesome-cordova-plugins/issues/4600) [#4608](https://github.com/danielsogl/awesome-cordova-plugins/issues/4608) [#4617](https://github.com/danielsogl/awesome-cordova-plugins/issues/4617) [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **clevertap:** support clevertap-cordova 2.7.2 ([#4683](https://github.com/danielsogl/awesome-cordova-plugins/issues/4683)) [skip ci] ([bddafc7](https://github.com/danielsogl/awesome-cordova-plugins/commit/bddafc779a65379c5d09fa74418830b81e2525a7)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
|
||||
|
||||
|
||||
# [6.4.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.3.0...v6.4.0) (2023-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency tslib to v2.5.0 ([#4552](https://github.com/danielsogl/awesome-cordova-plugins/issues/4552)) [skip ci] ([7e533f4](https://github.com/danielsogl/awesome-cordova-plugins/commit/7e533f48b9112fd4f8c6807d86362526985b395b))
|
||||
* **deps:** update dependency tslib to v2.6.0 ([#4595](https://github.com/danielsogl/awesome-cordova-plugins/issues/4595)) ([b600651](https://github.com/danielsogl/awesome-cordova-plugins/commit/b600651f02e56e446e49b2ae40418d46e0dca09b))
|
||||
* **mobile-messaging:** correct return type of submitEvent ([#4564](https://github.com/danielsogl/awesome-cordova-plugins/issues/4564)) ([0527afe](https://github.com/danielsogl/awesome-cordova-plugins/commit/0527afe93578810b4084e0da330574f956b0a7b5))
|
||||
* **mobile-messaging:** fix event (un)register and saveUser ([#4569](https://github.com/danielsogl/awesome-cordova-plugins/issues/4569)) ([fbd523f](https://github.com/danielsogl/awesome-cordova-plugins/commit/fbd523f36a7214b1e933cca8765fece744ea8192))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cashfree-pg:** support cordova-plugin-cashfree-pg 1.0.2 ([#4572](https://github.com/danielsogl/awesome-cordova-plugins/issues/4572)) ([8047c9a](https://github.com/danielsogl/awesome-cordova-plugins/commit/8047c9ad5203f9d6b53a663907c5f07c24fe565b))
|
||||
* **http:** onProgress param to sendRequest method ([#4512](https://github.com/danielsogl/awesome-cordova-plugins/issues/4512)) ([4cd48b4](https://github.com/danielsogl/awesome-cordova-plugins/commit/4cd48b4d0e72770962857c96c001c5597b504772))
|
||||
* **newrelic:** add shutdown method ([#4571](https://github.com/danielsogl/awesome-cordova-plugins/issues/4571)) ([178f566](https://github.com/danielsogl/awesome-cordova-plugins/commit/178f56625e63aa679b592995750d109e05f421c1))
|
||||
* **smartlook:** rewrite smartlook ionic plugin ([#4510](https://github.com/danielsogl/awesome-cordova-plugins/issues/4510)) ([baa207b](https://github.com/danielsogl/awesome-cordova-plugins/commit/baa207b724b78ed1d40abec6bada933dab829f96))
|
||||
* **sms-retriever-api:** add plugin ([#4528](https://github.com/danielsogl/awesome-cordova-plugins/issues/4528)) ([e3af183](https://github.com/danielsogl/awesome-cordova-plugins/commit/e3af183e0c3d51292e14f4285dd8c71e4c564b39))
|
||||
* **smtp-client:** add plugin ([#4585](https://github.com/danielsogl/awesome-cordova-plugins/issues/4585)) ([2b6c297](https://github.com/danielsogl/awesome-cordova-plugins/commit/2b6c297da81958f9f1b3fa58c1a6ddfb3520d220))
|
||||
* **urbanairship:** Add locale override methods ([#4579](https://github.com/danielsogl/awesome-cordova-plugins/issues/4579)) ([126d44f](https://github.com/danielsogl/awesome-cordova-plugins/commit/126d44faf37b341ad05a4ecf4146c5c4e5d1ccdf))
|
||||
* **zip:** add callback param so the progress function can be calleds ([#4519](https://github.com/danielsogl/awesome-cordova-plugins/issues/4519)) ([f9110cb](https://github.com/danielsogl/awesome-cordova-plugins/commit/f9110cb4295b964ce89aef8fe3c56e71a09bb320))
|
||||
|
||||
|
||||
|
||||
# [6.3.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.2.0...v6.3.0) (2022-12-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **chooser:** Update for support android 11+ ([#4436](https://github.com/danielsogl/awesome-cordova-plugins/issues/4436)) ([ba37646](https://github.com/danielsogl/awesome-cordova-plugins/commit/ba37646fc4b7cc86b497affa0ef932ad374b9080))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **advanced-image-picker:** add plugin ([#4434](https://github.com/danielsogl/awesome-cordova-plugins/issues/4434)) ([63cfd44](https://github.com/danielsogl/awesome-cordova-plugins/commit/63cfd4488d17b5cdac8a8302b310acc6c308c5a2))
|
||||
* **brightness:** add brightness plugin ([#4454](https://github.com/danielsogl/awesome-cordova-plugins/issues/4454)) ([f02bc78](https://github.com/danielsogl/awesome-cordova-plugins/commit/f02bc78ec253f6388750e662571300c82e990b51))
|
||||
* **clevertap:** support clevertap-cordova 2.6.0 ([#4458](https://github.com/danielsogl/awesome-cordova-plugins/issues/4458)) ([74a80c0](https://github.com/danielsogl/awesome-cordova-plugins/commit/74a80c0953577478bd15fe16ab9edf28dcb27280)), closes [#3491](https://github.com/danielsogl/awesome-cordova-plugins/issues/3491)
|
||||
* **diagnostics:** add getBluetoothAuthorizationStatuses function ([#4442](https://github.com/danielsogl/awesome-cordova-plugins/issues/4442)) ([ff78ca7](https://github.com/danielsogl/awesome-cordova-plugins/commit/ff78ca7fb4335698076282ec9da99433939f276a))
|
||||
* **fbsdk:** add plugin ([#4431](https://github.com/danielsogl/awesome-cordova-plugins/issues/4431)) ([a095422](https://github.com/danielsogl/awesome-cordova-plugins/commit/a0954228896b53dc42db3cbf6d6e89764d83646d))
|
||||
* **ffmpeg:** add plugin ([#4435](https://github.com/danielsogl/awesome-cordova-plugins/issues/4435)) ([9b4502f](https://github.com/danielsogl/awesome-cordova-plugins/commit/9b4502f9297d1a0a579db3fd0165c98e0897625e))
|
||||
* **fingerprint-aio:** update plugin ([#4423](https://github.com/danielsogl/awesome-cordova-plugins/issues/4423)) ([0579e67](https://github.com/danielsogl/awesome-cordova-plugins/commit/0579e67e966eb0469bccd22ee88d0c4c9c375838))
|
||||
* **mobile-accessibility:** add mobile-accessibility plugin ([#4456](https://github.com/danielsogl/awesome-cordova-plugins/issues/4456)) ([e51a1a7](https://github.com/danielsogl/awesome-cordova-plugins/commit/e51a1a79efcfd99e05783d567472251277f1bf93))
|
||||
* **power-management:** add power management support ([#4443](https://github.com/danielsogl/awesome-cordova-plugins/issues/4443)) ([b283dc2](https://github.com/danielsogl/awesome-cordova-plugins/commit/b283dc2e761dd897556a8ed955a312b663ca9c5e))
|
||||
* **unique-device-id:** add unique-device-id plugin ([#4455](https://github.com/danielsogl/awesome-cordova-plugins/issues/4455)) ([7fe3ad1](https://github.com/danielsogl/awesome-cordova-plugins/commit/7fe3ad1daabeac6c8365ddfce4d2b44df94ed00b))
|
||||
* **wonderpush:** expose getters and setters ([#4441](https://github.com/danielsogl/awesome-cordova-plugins/issues/4441)) ([3b1d059](https://github.com/danielsogl/awesome-cordova-plugins/commit/3b1d0593daf5732ea9f6268af84a612a575a3941))
|
||||
|
||||
|
||||
|
||||
# [6.2.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.1.0...v6.2.0) (2022-11-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **bluetooth-le:** use correct return types ([#4411](https://github.com/danielsogl/awesome-cordova-plugins/issues/4411)) ([2d347e4](https://github.com/danielsogl/awesome-cordova-plugins/commit/2d347e46edb47a13e662e55ae8c126021a54ea85))
|
||||
* **deps:** update dependency tslib to v2.4.1 ([#4413](https://github.com/danielsogl/awesome-cordova-plugins/issues/4413)) ([e90a6a3](https://github.com/danielsogl/awesome-cordova-plugins/commit/e90a6a306c24bf5b58ff2419fe1e8fea73c62472))
|
||||
* **diagnostic:** add getBluetoothAuthorizationStatus function ([#4398](https://github.com/danielsogl/awesome-cordova-plugins/issues/4398)) ([c544b43](https://github.com/danielsogl/awesome-cordova-plugins/commit/c544b43a5198566b2e56a0c3e0bbeb74e5527f0e))
|
||||
* **diagnostic:** add new Android runtime permissions for Bluetooth ([#4402](https://github.com/danielsogl/awesome-cordova-plugins/issues/4402)) ([6a97dc5](https://github.com/danielsogl/awesome-cordova-plugins/commit/6a97dc5e07ace559b766482ca1ee1a187ffb5d0c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **ble:** add wrapper for starting location notifications ([#4399](https://github.com/danielsogl/awesome-cordova-plugins/issues/4399)) ([755b28e](https://github.com/danielsogl/awesome-cordova-plugins/commit/755b28e32534d75a6f8079b9be5a8e1b81aef636))
|
||||
* **crop-privacy:** add plugin ([#4408](https://github.com/danielsogl/awesome-cordova-plugins/issues/4408)) ([1e258ad](https://github.com/danielsogl/awesome-cordova-plugins/commit/1e258adeb5506d3bfa3eff755a710fa6373f6dcc))
|
||||
* **device:** detect if app is running on a macOS desktop with Apple Silicon ([#4299](https://github.com/danielsogl/awesome-cordova-plugins/issues/4299)) ([af55cb2](https://github.com/danielsogl/awesome-cordova-plugins/commit/af55cb25fa39146c0ed79d94e3805a401b881cc2))
|
||||
* **file-chooser:** add plugin ([#4396](https://github.com/danielsogl/awesome-cordova-plugins/issues/4396)) ([97f5661](https://github.com/danielsogl/awesome-cordova-plugins/commit/97f566170efdc90f48a4f7b4aef292dccfb0165c))
|
||||
* **image-resizer:** add plugin ([#4397](https://github.com/danielsogl/awesome-cordova-plugins/issues/4397)) ([d2e92f5](https://github.com/danielsogl/awesome-cordova-plugins/commit/d2e92f558972d62e6061494bee3562c70dfe7de1))
|
||||
* **newrelic:** add plugin ([#4409](https://github.com/danielsogl/awesome-cordova-plugins/issues/4409)) ([ef499ed](https://github.com/danielsogl/awesome-cordova-plugins/commit/ef499ed290d399a76ff3428b2dca63bd7ae0977f))
|
||||
|
||||
|
||||
|
||||
# [6.1.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.0.1...v6.1.0) (2022-10-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **launch-navigator:** use currect handlers ([#4385](https://github.com/danielsogl/awesome-cordova-plugins/issues/4385)) ([62f664e](https://github.com/danielsogl/awesome-cordova-plugins/commit/62f664e61a31f7b8be395cd6ce575604c5b5e88c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **diagnostic:** addisCameraRollAuthorized and getCameraRollAuthorizationStatus functions (WIP) ([#4362](https://github.com/danielsogl/awesome-cordova-plugins/issues/4362)) ([cd81cfa](https://github.com/danielsogl/awesome-cordova-plugins/commit/cd81cfabf4a3027d65597a3b7079da5998988891))
|
||||
* **webim:** update plugin wrapper ([#4370](https://github.com/danielsogl/awesome-cordova-plugins/issues/4370)) ([81a8b42](https://github.com/danielsogl/awesome-cordova-plugins/commit/81a8b42a29f8b83fdcae8f6bcdf5179d009ad72d))
|
||||
|
||||
|
||||
|
||||
## [6.0.1](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.0.0...v6.0.1) (2022-10-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use correct core version ([e7d1641](https://github.com/danielsogl/awesome-cordova-plugins/commit/e7d1641fe9b3cc18bbfab0fb7f23d8b3a4136e9b))
|
||||
|
||||
|
||||
|
||||
# [6.0.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.46.0...v6.0.0) (2022-10-15)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **core:** use angular ivy ([#4369](https://github.com/danielsogl/awesome-cordova-plugins/issues/4369)) ([85441e5](https://github.com/danielsogl/awesome-cordova-plugins/commit/85441e59cac2ac9f40b9da55647ec89c9bafb2ea))
|
||||
|
||||
|
||||
|
||||
# [5.46.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.45.0...v5.46.0) (2022-10-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sms-retriever:** update startWatching result type ([#4309](https://github.com/danielsogl/awesome-cordova-plugins/issues/4309)) ([178489f](https://github.com/danielsogl/awesome-cordova-plugins/commit/178489ffaae6ad256ca1536bc79e63354c72516f))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **adjust:** update wrapper for Adjust Cordova SDK v4.32.0 ([#4327](https://github.com/danielsogl/awesome-cordova-plugins/issues/4327)) ([a7a1091](https://github.com/danielsogl/awesome-cordova-plugins/commit/a7a10913fcfc218dddd1b55b24aa797b47e3bf73))
|
||||
* **app-review:** add plugin ([#4348](https://github.com/danielsogl/awesome-cordova-plugins/issues/4348)) ([b0780a8](https://github.com/danielsogl/awesome-cordova-plugins/commit/b0780a8bec1f061489966ab29ebd44736eb3536e))
|
||||
* **applovin:** add plugin ([#4307](https://github.com/danielsogl/awesome-cordova-plugins/issues/4307)) ([bf860c3](https://github.com/danielsogl/awesome-cordova-plugins/commit/bf860c30c216e05bc516c179979210c1645570a9))
|
||||
* **bluetooth-le:** upgrade to v6.7.0 ([#4320](https://github.com/danielsogl/awesome-cordova-plugins/issues/4320)) ([98dc7c4](https://github.com/danielsogl/awesome-cordova-plugins/commit/98dc7c4be0c3a63775a63926e5958bcde79e7d5c))
|
||||
* **device:** add sdkVersion ([#4354](https://github.com/danielsogl/awesome-cordova-plugins/issues/4354)) ([acb39e5](https://github.com/danielsogl/awesome-cordova-plugins/commit/acb39e5849f368e2d2ac75baa5d341b189206e27))
|
||||
* **diagnostic:** extend parameter for requestLocationAuthorization ([#4350](https://github.com/danielsogl/awesome-cordova-plugins/issues/4350)) ([b572a10](https://github.com/danielsogl/awesome-cordova-plugins/commit/b572a10a6e1e4063fdd19a04acc09d049b973d67))
|
||||
* **firebase-x:** add MessagePayloadAps prop ([#4344](https://github.com/danielsogl/awesome-cordova-plugins/issues/4344)) ([dc1ee8c](https://github.com/danielsogl/awesome-cordova-plugins/commit/dc1ee8c5306196562a0013924014a0d7adfa5059))
|
||||
* **GCDWebServer:** add plugin ([#4302](https://github.com/danielsogl/awesome-cordova-plugins/issues/4302)) ([f8c6430](https://github.com/danielsogl/awesome-cordova-plugins/commit/f8c6430a26f5b489255c4f36629f245ed23bb280))
|
||||
* **webim:** add plugin ([#4355](https://github.com/danielsogl/awesome-cordova-plugins/issues/4355)) ([7430284](https://github.com/danielsogl/awesome-cordova-plugins/commit/74302846dc387423d51da79be82f7e0fee4a45bf))
|
||||
|
||||
|
||||
|
||||
# [5.45.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.44.0...v5.45.0) (2022-09-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **adjust:** update wrapper for Adjust Cordova SDK v4.30.0 ([#4277](https://github.com/danielsogl/awesome-cordova-plugins/issues/4277)) ([82377f0](https://github.com/danielsogl/awesome-cordova-plugins/commit/82377f06330e8618e50a57004c9a79cafa66d972))
|
||||
* **android-permissions:** add android 13 permissions ([#4295](https://github.com/danielsogl/awesome-cordova-plugins/issues/4295)) ([ba9c1c1](https://github.com/danielsogl/awesome-cordova-plugins/commit/ba9c1c154e76900f9570a7f3acc7728fd32a89a2))
|
||||
* **dynamsoft-barcode:** add setFocus and setZoom ([#4281](https://github.com/danielsogl/awesome-cordova-plugins/issues/4281)) ([a801c7d](https://github.com/danielsogl/awesome-cordova-plugins/commit/a801c7d3054d285c962b4657f4b224c9a9ad67cf))
|
||||
* **firebase-x:** add message typing ([#4282](https://github.com/danielsogl/awesome-cordova-plugins/issues/4282)) ([898e0b8](https://github.com/danielsogl/awesome-cordova-plugins/commit/898e0b8588f479aea228746c2b3e177c6066f757))
|
||||
* **in-app-purchase-2:** update validator for custom headers ([#4262](https://github.com/danielsogl/awesome-cordova-plugins/issues/4262)) ([8b826e3](https://github.com/danielsogl/awesome-cordova-plugins/commit/8b826e3c1b2b53e0d188e90d22f34948b2362cd4))
|
||||
* **intercom:** add displaySurvey ([#4292](https://github.com/danielsogl/awesome-cordova-plugins/issues/4292)) ([ebdd6e9](https://github.com/danielsogl/awesome-cordova-plugins/commit/ebdd6e97964d6c1e862f0160180d6e056f91de88))
|
||||
* **lets-cooee:** add event observer and installation documentation ([#4278](https://github.com/danielsogl/awesome-cordova-plugins/issues/4278)) ([aef160e](https://github.com/danielsogl/awesome-cordova-plugins/commit/aef160e4180d28598a8ef25c75cd8057dd59f81f))
|
||||
* **unvired-cordova-sdk:** Add new function to regenrate the JWT Token ([#4291](https://github.com/danielsogl/awesome-cordova-plugins/issues/4291)) ([678fb71](https://github.com/danielsogl/awesome-cordova-plugins/commit/678fb71a7f4cf1ad34c2746fdaa3690a13df4fe4))
|
||||
|
||||
|
||||
|
||||
# [5.44.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.43.0...v5.44.0) (2022-06-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **diagnostic:** adjust options declaration ([#4227](https://github.com/danielsogl/awesome-cordova-plugins/issues/4227)) ([19fc222](https://github.com/danielsogl/awesome-cordova-plugins/commit/19fc222ea93c79c53156aa0a05b3dc0bffa77a7e))
|
||||
* **urbanairship:** fix cordova and method wrapper options ([#4221](https://github.com/danielsogl/awesome-cordova-plugins/issues/4221)) ([0442260](https://github.com/danielsogl/awesome-cordova-plugins/commit/04422600ca9675ff1f5ff763e3aba03b7abb8455))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cooee:** add plugin ([#4228](https://github.com/danielsogl/awesome-cordova-plugins/issues/4228)) ([7a528b4](https://github.com/danielsogl/awesome-cordova-plugins/commit/7a528b42d9427222d01b8e0da675045996be042d))
|
||||
* **dynamsoft-barcode:** update startScanning options ([#4205](https://github.com/danielsogl/awesome-cordova-plugins/issues/4205)) ([4e183b1](https://github.com/danielsogl/awesome-cordova-plugins/commit/4e183b18818864b23501fa4bccd2813ca4149e5a))
|
||||
* **file-md5:** add plugin ([#4201](https://github.com/danielsogl/awesome-cordova-plugins/issues/4201)) ([63c8365](https://github.com/danielsogl/awesome-cordova-plugins/commit/63c83653c0d0942d9cac2185bd8b9f38a5b4980c))
|
||||
* **mobile-messaging:** add chat methods ([#4231](https://github.com/danielsogl/awesome-cordova-plugins/issues/4231)) ([f96b758](https://github.com/danielsogl/awesome-cordova-plugins/commit/f96b7588dece0ed1119d7166168486315f9fc714))
|
||||
* **zip:** add plugin ([#4238](https://github.com/danielsogl/awesome-cordova-plugins/issues/4238)) ([0a31a37](https://github.com/danielsogl/awesome-cordova-plugins/commit/0a31a374b1a73403785a1e6c9104381ee9761940))
|
||||
|
||||
|
||||
|
||||
# [5.43.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.42.0...v5.43.0) (2022-05-25)
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ To learn more about the reasons why Ionic Native was renamed to Awesome Cordova
|
||||
|
||||
## Capacitor Support
|
||||
|
||||
In addition to Cordova, Awesome Cordova Plugins also works with [Capacitor](https://capacitor.ionicframework.com), Ionic's official native runtime. Basic usage below. For complete details, [see the Capacitor documentation](https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins).
|
||||
In addition to Cordova, Awesome Cordova Plugins also works with [Capacitor](https://capacitorjs.com), Ionic's official native runtime. Basic usage below. For complete details, [see the Capacitor documentation](https://capacitorjs.com/docs/v2/cordova/using-cordova-plugins).
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -216,6 +216,10 @@
|
||||
* [Printer](plugins/printer.md)
|
||||
* [Browser Tab](plugins/browser-tab.md)
|
||||
* [Dynamsoft Barcode Scanner](plugins/dynamsoft-barcode-scanner.md)
|
||||
* [GCDWebServer](plugins/gcdwebserver.md)
|
||||
* [Smtp Client](plugins/smtp-client.md)
|
||||
* [Cashfree PG](plugins/cashfree-pg/README.md)
|
||||
* [Save Dialog](plugins/save-dialog/README.md)
|
||||
* [Installation](installation.md)
|
||||
* [FAQ](faq.md)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# Adjust
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add com.adjust.sdk
|
||||
# AdjustThirdPartySharing
|
||||
ova plugin add com.adjust.sdk
|
||||
$ npm install @awesome-cordova-plugins/adjust
|
||||
```
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# AdMob
|
||||
# RewardVideo
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-admob-plus
|
||||
@@ -7,18 +7,13 @@ $ npm install @awesome-cordova-plugins/admob-plus
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/admob-plus/)
|
||||
|
||||
Plugin Repo: [https://github.com/admob-plus/admob-plus](https://github.com/admob-plus/admob-plus)
|
||||
Plugin Repo: []()
|
||||
|
||||
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
n-admob-free, which provides a cleaner API and build with modern tools.
|
||||
|
||||
github.com/admob-plus/admob-plus](https://github.com/admob-plus/admob-plus)
|
||||
|
||||
AdMob Plus is the successor of cordova-plugin-admob-free, which provides a cleaner API and build with modern tools.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
|
||||
20
docs/plugins/advanced-image-picker/README.md
Normal file
20
docs/plugins/advanced-image-picker/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# AdvancedImagePicker
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-advanced-imagepicker
|
||||
$ npm install @awesome-cordova-plugins/advanced-image-picker
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/advanced-image-picker/)
|
||||
|
||||
Plugin Repo: [https://github.com/EinfachHans/cordova-plugin-advanced-imagepicker](https://github.com/EinfachHans/cordova-plugin-advanced-imagepicker)
|
||||
|
||||
This Cordova Plugin is for a better (multiple) ImagePicker with more options.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
20
docs/plugins/app-review/README.md
Normal file
20
docs/plugins/app-review/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# App Review
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-app-review
|
||||
$ npm install @awesome-cordova-plugins/app-review
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/app-review/)
|
||||
|
||||
Plugin Repo: [https://github.com/chemerisuk/cordova-plugin-app-review](https://github.com/chemerisuk/cordova-plugin-app-review)
|
||||
|
||||
Cordova plugin to review app
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
20
docs/plugins/applovin/README.md
Normal file
20
docs/plugins/applovin/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Applovin
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-applovin-max
|
||||
$ npm install @awesome-cordova-plugins/applovin
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/applovin/)
|
||||
|
||||
Plugin Repo: [https://github.com/AppLovin/AppLovin-MAX-Cordova](https://github.com/AppLovin/AppLovin-MAX-Cordova)
|
||||
|
||||
This plugin allows you to easily configure, integrate and interact with Applovin ads.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# BackgroundUpload
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-background-upload
|
||||
$ ionic cordova plugin add @spoonconsulting/cordova-plugin-background-upload
|
||||
$ npm install @awesome-cordova-plugins/background-upload
|
||||
```
|
||||
|
||||
|
||||
22
docs/plugins/brightness/README.md
Normal file
22
docs/plugins/brightness/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Brightness
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-brightness
|
||||
$ npm install @awesome-cordova-plugins/brightness
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/brightness/)
|
||||
|
||||
Plugin Repo: [https://github.com/mgcrea/cordova-plugin-brightness](https://github.com/mgcrea/cordova-plugin-brightness)
|
||||
|
||||
The Brightness plugin let you control the display brightness of your device.
|
||||
|
||||
Requires Cordova plugin: `cordova-plugin-brightness`. For more info, please see the [Brightness plugin docs](https://github.com/mgcrea/cordova-plugin-brightness).
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -14,4 +14,7 @@ This plugin provides an interface to in-app browser tabs that exist on some mobi
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ Requires the Cordova plugin: `cordova-plugin-camera`. For more info, please see
|
||||
[Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add
|
||||
```xml
|
||||
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
|
||||
<string>You can take photos</string>
|
||||
<string>You can take photos</string>
|
||||
</config-file>
|
||||
```
|
||||
inside of the <platform name='ios> section
|
||||
inside of the `<platform name='ios>` section
|
||||
|
||||
## Supported platforms
|
||||
|
||||
|
||||
18
docs/plugins/cashfree-pg/README.md
Normal file
18
docs/plugins/cashfree-pg/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# CFPaymentComponentBuilder
|
||||
nic cordova plugin add cordova-plugin-cashfree-pg
|
||||
$ npm install @awesome-cordova-plugins/cashfree-pg
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/cashfree-pg/)
|
||||
|
||||
Plugin Repo: [https://github.com/cashfree/cordova-plugin-cashfree](https://github.com/cashfree/cordova-plugin-cashfree)
|
||||
|
||||
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Chooser
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-chooser
|
||||
$ ionic cordova plugin add http://github.com/MaximBelov/cordova-plugin-chooser.git
|
||||
$ npm install @awesome-cordova-plugins/chooser
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/chooser/)
|
||||
|
||||
Plugin Repo: [https://github.com/cyph/cordova-plugin-chooser](https://github.com/cyph/cordova-plugin-chooser)
|
||||
Plugin Repo: [https://github.com/MaximBelov/cordova-plugin-chooser](https://github.com/MaximBelov/cordova-plugin-chooser)
|
||||
|
||||
File chooser plugin for Cordova.
|
||||
|
||||
|
||||
19
docs/plugins/crop-plugin-privacy/README.md
Normal file
19
docs/plugins/crop-plugin-privacy/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Crop Plugin Privacy
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-crop-privacy
|
||||
$ npm install @awesome-cordova-plugins/crop-plugin-privacy
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/crop-plugin-privacy/)
|
||||
|
||||
Plugin Repo: [https://github.com/BaraAksayeth25/cordova-plugin-crop-privacy](https://github.com/BaraAksayeth25/cordova-plugin-crop-privacy)
|
||||
|
||||
This plugin does something
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Answers
|
||||
# Crashlytics
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx
|
||||
@@ -9,7 +9,7 @@ $ npm install @awesome-cordova-plugins/fabric
|
||||
|
||||
Plugin Repo: [https://www.npmjs.com/package/cordova-fabric-plugin](https://www.npmjs.com/package/cordova-fabric-plugin)
|
||||
|
||||
API for interacting with the Answers kit.
|
||||
API for interacting with the Crashlytics kit.
|
||||
|
||||
https://docs.fabric.io/crashlytics/index.html
|
||||
|
||||
@@ -20,7 +20,3 @@ https://docs.fabric.io/crashlytics/index.html
|
||||
|
||||
|
||||
|
||||
OS
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ Click `'Add Platform'`.
|
||||
At this point you'll need to open your project's [`config.xml`](https://cordova.apache.org/docs/en/latest/config_ref/index.html) file, found in the root directory of your project.
|
||||
|
||||
Take note of the `id` for the next step:
|
||||
```
|
||||
```xml
|
||||
<widget id="com.mycompany.testapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
```
|
||||
|
||||
|
||||
89
docs/plugins/fbsdk/README.md
Normal file
89
docs/plugins/fbsdk/README.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# FbSdk
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-fbsdk --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable CLIENT_TOKEN="abcd1234"
|
||||
$ npm install @awesome-cordova-plugins/fbsdk
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/fbsdk/)
|
||||
|
||||
Plugin Repo: [https://github.com/MaximBelov/cordova-plugin-fbsdk](https://github.com/MaximBelov/cordova-plugin-fbsdk)
|
||||
|
||||
Use the Facebook SDK plugin to obtain access to the native FB application on iOS and Android.
|
||||
|
||||
Requires Cordova plugin: `cordova-plugin-fbsdk`. For more info, please see the [Facebook SDK](https://github.com/MaximBelov/cordova-plugin-fbsdk).
|
||||
|
||||
#### Installation
|
||||
|
||||
To use the FB plugin, you first have to create a new Facebook App inside of the Facebook developer portal at [https://developers.facebook.com/apps](https://developers.facebook.com/apps).
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
Retrieve the `App ID` and `App Name`.
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
Then type in the following command in your Terminal, where APP_ID and APP_NAME are the values from the Facebook Developer portal.
|
||||
|
||||
```bash
|
||||
ionic cordova plugin add cordova-plugin-fbsdk --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable CLIENT_TOKEN="abcd1234"
|
||||
```
|
||||
|
||||
After, you'll need to add the native platforms you'll be using to your app in the Facebook Developer portal under your app's Settings:
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
Click `'Add Platform'`.
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
At this point you'll need to open your project's [`config.xml`](https://cordova.apache.org/docs/en/latest/config_ref/index.html) file, found in the root directory of your project.
|
||||
|
||||
Take note of the `id` for the next step:
|
||||
```
|
||||
<widget id="com.mycompany.testapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
```
|
||||
|
||||
You can also edit the `id` to whatever you'd like it to be.
|
||||
|
||||
#### Client Access Tokens
|
||||
|
||||
[](https://developers.facebook.com/docs/facebook-login/guides/access-tokens#clienttokens)
|
||||
|
||||
|
||||
#### iOS Install
|
||||
Under 'Bundle ID', add the `id` from your `config.xml` file:
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
|
||||
#### Android Install
|
||||
Under 'Google Play Package Name', add the `id` from your `config.xml` file:
|
||||
|
||||
[](https://developers.facebook.com/apps/)
|
||||
|
||||
|
||||
And that's it! You can now make calls to Facebook using the plugin.
|
||||
|
||||
## Events
|
||||
|
||||
App events allow you to understand the makeup of users engaging with your app, measure the performance of your Facebook mobile app ads, and reach specific sets of your users with Facebook mobile app ads.
|
||||
|
||||
- [iOS] [https://developers.facebook.com/docs/ios/app-events](https://developers.facebook.com/docs/ios/app-events)
|
||||
- [Android] [https://developers.facebook.com/docs/android/app-events](https://developers.facebook.com/docs/android/app-events)
|
||||
- [JS] Does not have an Events API, so the plugin functions are empty and will return an automatic success
|
||||
|
||||
Activation events are automatically tracked for you in the plugin.
|
||||
|
||||
Events are listed on the [insights page](https://www.facebook.com/insights/).
|
||||
|
||||
For tracking events, see `logEvent` and `logPurchase`.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- Browser
|
||||
|
||||
|
||||
|
||||
20
docs/plugins/ffmpeg/README.md
Normal file
20
docs/plugins/ffmpeg/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# FFMpeg
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-ffmpeg
|
||||
$ npm install @awesome-cordova-plugins/ffmpeg
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/ffmpeg/)
|
||||
|
||||
Plugin Repo: [https://github.com/MaximBelov/cordova-plugin-ffmpeg](https://github.com/MaximBelov/cordova-plugin-ffmpeg)
|
||||
|
||||
Simple plugin that binds mobile ffmpeg to execute ffmpeg commands
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
19
docs/plugins/file-chooser/README.md
Normal file
19
docs/plugins/file-chooser/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# FileChooser Plugin
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-filechooser
|
||||
$ npm install @awesome-cordova-plugins/file-chooser
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/file-chooser/)
|
||||
|
||||
Plugin Repo: [https://github.com/ihadeed/cordova-filechooser](https://github.com/ihadeed/cordova-filechooser)
|
||||
|
||||
Cordova FileChooser Plugin
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
|
||||
|
||||
|
||||
20
docs/plugins/file-md5/README.md
Normal file
20
docs/plugins/file-md5/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# File MD5
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-file-md5
|
||||
$ npm install @awesome-cordova-plugins/file-md5
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/file-md5/)
|
||||
|
||||
Plugin Repo: [https://github.com/mramonlopez/cordova-plugin-file-md5](https://github.com/mramonlopez/cordova-plugin-file-md5)
|
||||
|
||||
This plugin reads large files in chunks and build the md5sum incrementally.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
45
docs/plugins/firebase-model/README.md
Normal file
45
docs/plugins/firebase-model/README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# FirebaseModelInput
|
||||
Result
|
||||
t
|
||||
cordova plugin add cordova-plugin-firebase-model
|
||||
$ npm install @awesome-cordova-plugins/firebase-model
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/firebase-model/)
|
||||
|
||||
Plugin Repo: ['']('')
|
||||
|
||||
This plugin downloads the TensorFlow model from firebase and classify the images.
|
||||
|
||||
```typescript
|
||||
import { FirebaseModel } from '@ionic-native/ionic-native-firebase-model';
|
||||
|
||||
|
||||
constructor(private firebaseModel: FirebaseModel) { }
|
||||
|
||||
...
|
||||
|
||||
|
||||
this.firebaseModel.configure('Sample_Model')
|
||||
.subscribe((res: FirebaseModelConfigResult) => console.log(res.status + " - " + res.progress))
|
||||
.catch((error: any) => console.error(error));
|
||||
|
||||
|
||||
try {
|
||||
var result:FirebaseModelClassifyResult = await this.firebaseModel.classify("/Documents/input_image.png")
|
||||
console.log(result.label + " - " + result.score)
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
19
docs/plugins/gcdwebserver.md
Executable file
19
docs/plugins/gcdwebserver.md
Executable file
@@ -0,0 +1,19 @@
|
||||
# GCDWebServer
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-gcdwebserver
|
||||
$ npm install @awesome-cordova-plugins/gcdwebserver
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/gcdwebserver/)
|
||||
|
||||
Plugin Repo: [https://github.com/xulihang/cordova-plugin-gcdwebserver](https://github.com/xulihang/cordova-plugin-gcdwebserver)
|
||||
|
||||
The [GCDWebServer](https://github.com/swisspol/GCDWebServer/) Plugin can start an HTTP server to serve static files.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
iOS
|
||||
|
||||
|
||||
|
||||
19
docs/plugins/gcdwebserver/README.md
Executable file
19
docs/plugins/gcdwebserver/README.md
Executable file
@@ -0,0 +1,19 @@
|
||||
# gcdwebserver
|
||||
|
||||
```
|
||||
$ ''
|
||||
$ npm install @awesome-cordova-plugins/gcdwebserver
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/gcdwebserver/)
|
||||
|
||||
Plugin Repo: [https://github.com/xulihang/cordova-plugin-gcdwebserver](https://github.com/xulihang/cordova-plugin-gcdwebserver)
|
||||
|
||||
This plugin can start an HTTP server using GCDWebServer
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# HyperTrack
|
||||
|
||||
# Coordinates
|
||||
alidationError
|
||||
ic cordova plugin add cordova-plugin-hypertrack-v3
|
||||
$ npm install @awesome-cordova-plugins/hyper-track
|
||||
|
||||
36
docs/plugins/i-root/README.md
Normal file
36
docs/plugins/i-root/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# IRoot
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-iroot
|
||||
$ npm install @awesome-cordova-plugins/i-root
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/iroot/)
|
||||
|
||||
Plugin Repo: [https://github.com/WuglyakBolgoink/cordova-plugin-iroot](https://github.com/WuglyakBolgoink/cordova-plugin-iroot)
|
||||
|
||||
Use this plugin to add an extra layer of security for your app by detecting if the device was rooted (on android) or jailbreaked (on iOS).
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
## Original Plugin Notes
|
||||
|
||||
### iOS - Postinstall
|
||||
|
||||
To avoid errors like
|
||||
|
||||
> -canOpenURL: failed for URL: "cydia://package/com.example.package" - error: "This app is not allowed to query for scheme cydia"
|
||||
|
||||
don’t forget to add `"cydia"` in `LSApplicationQueriesSchemes` key of `info.plist`. Otherwise `canOpenURL` will always return `false`.
|
||||
|
||||
```xml
|
||||
<xxx>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>cydia</string>
|
||||
</array>
|
||||
</xxx>
|
||||
```
|
||||
20
docs/plugins/image-resizer/README.md
Normal file
20
docs/plugins/image-resizer/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# ImageResizer
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-image-resizer
|
||||
$ npm install @awesome-cordova-plugins/image-resizer
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/image-resizer/)
|
||||
|
||||
Plugin Repo: [https://github.com/JoschkaSchulz/cordova-plugin-image-resizer](https://github.com/JoschkaSchulz/cordova-plugin-image-resizer)
|
||||
|
||||
Cordova Plugin For Image Resize
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ Get and set data in the iOS Keychain
|
||||
|
||||
Requires Cordova plugin: `cordova-plugin-ios-keychain`. For more info, please see the [Keychain plugin docs](https://github.com/ionic-team/cordova-plugin-ios-keychain).
|
||||
|
||||
See also [Secure Storage](https://ionicframework.com/docs/native/secure-storage/) for more supported platforms.
|
||||
See also [Secure Storage](https://ionic.io/docs/secure-storage) for more supported platforms.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
|
||||
20
docs/plugins/lets-cooee/README.md
Normal file
20
docs/plugins/lets-cooee/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Lets Cooee
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add @letscooee/cordova-plugin --variable COOEE_APP_ID=appId
|
||||
$ npm install @awesome-cordova-plugins/lets-cooee
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/lets-cooee/)
|
||||
|
||||
Plugin Repo: [https://github.com/letscooee/cordova-plugin-cooee](https://github.com/letscooee/cordova-plugin-cooee)
|
||||
|
||||
AI driven Personalised Notifications for Better Customer Engagement
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
22
docs/plugins/mobile-accessibility/README.md
Normal file
22
docs/plugins/mobile-accessibility/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Mobile Accessibility
|
||||
|
||||
```
|
||||
$ ''
|
||||
$ npm install @awesome-cordova-plugins/mobile-accessibility
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/mobile-accessibility/)
|
||||
|
||||
Plugin Repo: [https://github.com/phonegap/phonegap-mobile-accessibility](https://github.com/phonegap/phonegap-mobile-accessibility)
|
||||
|
||||
This plugin exposes information on the status of various accessibility features of mobile operating systems, including, for example, whether a screen reader is running, invert colors is enabled, and the preferred scaling for text.
|
||||
It also allows an application to send a string to be spoken by the screen reader, or a command to stop the screen reader from speaking.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- Amazon Fire OS
|
||||
|
||||
|
||||
|
||||
20
docs/plugins/newrelic/README.md
Normal file
20
docs/plugins/newrelic/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# newrelic mobile
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add https://github.com/newrelic/newrelic-cordova-plugin.git --variable IOS_APP_TOKEN="{ios-app-token}" --variable ANDROID_APP_TOKEN="{android-app-token}"
|
||||
$ npm install @awesome-cordova-plugins/newrelic
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/newrelic/)
|
||||
|
||||
Plugin Repo: [https://github.com/newrelic/newrelic-cordova-plugin](https://github.com/newrelic/newrelic-cordova-plugin)
|
||||
|
||||
This NewRelic plugin collect crashes, network traffic, and other information for hybrid apps using native components.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# UriHelper
|
||||
# NFC
|
||||
|
||||
ionic cordova plugin add phonegap-nfc
|
||||
```
|
||||
$ ionic cordova plugin add phonegap-nfc
|
||||
$ npm install @awesome-cordova-plugins/nfc
|
||||
```
|
||||
|
||||
|
||||
19
docs/plugins/power-management.md
Normal file
19
docs/plugins/power-management.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Power Management
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-powermanagement
|
||||
$ npm install @awesome-cordova-plugins/power-management
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://github.com/Viras-/cordova-plugin-powermanagement/)
|
||||
|
||||
Plugin Repo: [https://github.com/Viras-/cordova-plugin-powermanagement](https://github.com/Viras-/cordova-plugin-powermanagement)
|
||||
|
||||
A Cordova plugin that offers access to the devices power-management functionality.
|
||||
It should be used for applications which keep running for a long time without any user interaction.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
21
docs/plugins/power-management/README.md
Normal file
21
docs/plugins/power-management/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Power Management
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-powermanagement-orig
|
||||
$ npm install @awesome-cordova-plugins/power-management
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/power-management/)
|
||||
|
||||
Plugin Repo: [https://github.com/Viras-/cordova-plugin-powermanagement](https://github.com/Viras-/cordova-plugin-powermanagement)
|
||||
|
||||
The PowerManagement plugin offers access to the devices power-management functionality.
|
||||
It should be used for applications which keep running for a long time without any user interaction.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
19
docs/plugins/power-management/power-management.md
Normal file
19
docs/plugins/power-management/power-management.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Power Management
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-powermanagement
|
||||
$ npm install @awesome-cordova-plugins/power-management
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://github.com/Viras-/cordova-plugin-powermanagement/)
|
||||
|
||||
Plugin Repo: [https://github.com/Viras-/cordova-plugin-powermanagement](https://github.com/Viras-/cordova-plugin-powermanagement)
|
||||
|
||||
A Cordova plugin that offers access to the devices power-management functionality.
|
||||
It should be used for applications which keep running for a long time without any user interaction.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Purchases
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-purchases@2.4.0
|
||||
$ ionic cordova plugin add cordova-plugin-purchases@5.0.0
|
||||
$ npm install @awesome-cordova-plugins/purchases
|
||||
```
|
||||
|
||||
@@ -9,7 +9,9 @@ $ npm install @awesome-cordova-plugins/purchases
|
||||
|
||||
Plugin Repo: [https://github.com/RevenueCat/cordova-plugin-purchases](https://github.com/RevenueCat/cordova-plugin-purchases)
|
||||
|
||||
Purchases is a cross platform solution for managing in-app subscriptions. A backend is also provided via [RevenueCat](https://www.revenuecat.com)
|
||||
*Purchases* is a client for the [RevenueCat](https://www.revenuecat.com/) subscription and purchase tracking system.
|
||||
It is an open source framework that provides a wrapper around `BillingClient`, `StoreKit` and the RevenueCat backend
|
||||
to make implementing in-app subscriptions easy - receipt validation and status tracking included!
|
||||
|
||||
## Features
|
||||
| | RevenueCat |
|
||||
@@ -24,9 +26,24 @@ Purchases is a cross platform solution for managing in-app subscriptions. A back
|
||||
| 📮 | Great support - [Help Center](https://revenuecat.zendesk.com) |
|
||||
| 🤩 | Awesome [new features](https://trello.com/b/RZRnWRbI/revenuecat-product-roadmap) |
|
||||
|
||||
## Capacitor
|
||||
|
||||
The Cordova plugin is not guaranteed to be up to date and we are moving our efforts to the Capacitor plugin.
|
||||
Please consider using our [Capacitor plugin](https://docs.revenuecat.com/docs/capacitor) instead of the Cordova plugin and this wrapper.
|
||||
|
||||
## Getting Started
|
||||
|
||||
For more detailed information, you can view our complete documentation at [docs.revenuecat.com](https://docs.revenuecat.com/docs).
|
||||
Please follow the [Quickstart Guide](https://docs.revenuecat.com/docs/) for more information on how to use the SDK
|
||||
|
||||
## Latest changes to this plugin
|
||||
|
||||
This latest release updates the plugin to use BillingClient 6 in Android. If you come from an older version of the
|
||||
RevenueCat SDK, see [Android Native - 5.x to 6.x Migration](https://www.revenuecat.com/docs/android-native-5x-to-6x-migration)
|
||||
for a more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take advantage of it.
|
||||
|
||||
If your app supports product changes using [DEFERRED replacement mode](https://www.revenuecat.com/docs/managing-subscriptions#google-play),
|
||||
then you can either stick with the previous major version until support for DEFERRED is re-introduced in this major version,
|
||||
or you can remove DEFERRED replacement options from your app.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
|
||||
18
docs/plugins/save-dialog.md
Normal file
18
docs/plugins/save-dialog.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Save Dialog
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-save-dialog
|
||||
$ npm install @awesome-cordova-plugins/save-dialog
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/save-dialog/)
|
||||
|
||||
Plugin Repo: [https://github.com/Amphiluke/cordova-plugin-save-dialog](https://github.com/Amphiluke/cordova-plugin-save-dialog)
|
||||
|
||||
This Cordova plugin displays the native Save dialog which allows users to store a file in the selected location.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
20
docs/plugins/save-dialog/README.md
Normal file
20
docs/plugins/save-dialog/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Save Dialog
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-save-dialog
|
||||
$ npm install @awesome-cordova-plugins/save-dialog
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/save-dialog/)
|
||||
|
||||
Plugin Repo: [https://github.com/Amphiluke/cordova-plugin-save-dialog](https://github.com/Amphiluke/cordova-plugin-save-dialog)
|
||||
|
||||
This Cordova plugin displays the native Save dialog which allows users to store a file in the selected location.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# Sign In With Apple
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-sign-in-with-apple
|
||||
# ASAuthorizationAppleIDRequest
|
||||
c cordova plugin add cordova-plugin-sign-in-with-apple
|
||||
$ npm install @awesome-cordova-plugins/sign-in-with-apple
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# SmartlookEventTrackingMode
|
||||
ova plugin add https://github.com/smartlook/cordova-smartlook.git
|
||||
# Smartlook
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add https://github.com/smartlook/cordova-smartlook.git
|
||||
$ npm install @awesome-cordova-plugins/smartlook
|
||||
```
|
||||
|
||||
@@ -8,7 +10,7 @@ $ npm install @awesome-cordova-plugins/smartlook
|
||||
Plugin Repo: [https://github.com/smartlook/cordova-smartlook.git](https://github.com/smartlook/cordova-smartlook.git)
|
||||
|
||||
Official Smartlook SDK plugin.
|
||||
Full documentation can be found here: https://smartlook.github.io/docs/sdk/ionic/
|
||||
Full documentation can be found here: https://mobile.developer.smartlook.com/reference/ionic-sdk-installation
|
||||
|
||||
## Supported platforms
|
||||
|
||||
|
||||
19
docs/plugins/sms-retriever-api/README.md
Normal file
19
docs/plugins/sms-retriever-api/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# SmsRetrieverApi
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-sms-retriever --variable PLAY_SERVICES_VERSION="18.0.1"
|
||||
$ npm install @awesome-cordova-plugins/sms-retriever-api
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/sms-retriever-api/)
|
||||
|
||||
Plugin Repo: [https://github.com/andreszs/cordova-plugin-sms-retriever](https://github.com/andreszs/cordova-plugin-sms-retriever)
|
||||
|
||||
This plugin retries the SMS which arrive without requiring READ permissions.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
|
||||
|
||||
|
||||
16
docs/plugins/smtp-client.md
Normal file
16
docs/plugins/smtp-client.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Smtp Client
|
||||
|
||||
```text
|
||||
$ ionic cordova plugin add cordova-plugin-smtp-client
|
||||
$ npm install @awesome-cordova-plugins/smtp-client
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/smtp-client/)
|
||||
|
||||
Plugin Repo: [https://github.com/CWBudde/cordova-plugin-smtp-client](https://github.com/CWBudde/cordova-plugin-smtp-client)
|
||||
|
||||
## Supported platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
17
docs/plugins/smtp-client/README.md
Normal file
17
docs/plugins/smtp-client/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Smtp Client
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-smtp-client
|
||||
$ npm install @awesome-cordova-plugins/smtp-client
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/smtp-client/)
|
||||
|
||||
Plugin Repo: [https://github.com/CWBudde/cordova-plugin-smtp-client](https://github.com/CWBudde/cordova-plugin-smtp-client)
|
||||
|
||||
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
17
docs/plugins/ssl-certificate-checker/README.md
Normal file
17
docs/plugins/ssl-certificate-checker/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# SSLCertificateChecker
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-sslcertificatechecker
|
||||
$ npm install @awesome-cordova-plugins/ssl-certificate-checker
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/ssl-certificate-checker/)
|
||||
|
||||
Plugin Repo: [https://github.com/EddyVerbruggen/SSLCertificateChecker-PhoneGap-Plugin](https://github.com/EddyVerbruggen/SSLCertificateChecker-PhoneGap-Plugin)
|
||||
|
||||
Cordova plugin to check SSL certificates on Android and iOS.
|
||||
|
||||
## Supported Platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
@@ -0,0 +1,17 @@
|
||||
# SSLCertificateChecker
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-sslcertificatechecker
|
||||
$ npm install @awesome-cordova-plugins/ssl-certificate-checker
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://github.com/EddyVerbruggen/SSLCertificateChecker-PhoneGap-Plugin/)
|
||||
|
||||
Plugin Repo: [https://github.com/EddyVerbruggen/SSLCertificateChecker-PhoneGap-Plugin](https://github.com/EddyVerbruggen/SSLCertificateChecker-PhoneGap-Plugin)
|
||||
|
||||
Cordova plugin to check SSL certificates on Android and iOS.
|
||||
|
||||
## Supported Platforms
|
||||
|
||||
* Android
|
||||
* iOS
|
||||
@@ -1,7 +1,5 @@
|
||||
# Tealium
|
||||
|
||||
```
|
||||
$ ''
|
||||
# ConsentExpiry
|
||||
''
|
||||
$ npm install @awesome-cordova-plugins/tealium
|
||||
```
|
||||
|
||||
|
||||
21
docs/plugins/unique-device-id/README.md
Normal file
21
docs/plugins/unique-device-id/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Unique Device ID
|
||||
|
||||
```
|
||||
$ ''
|
||||
$ npm install @awesome-cordova-plugins/unique-device-id
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/unique-device-id/)
|
||||
|
||||
Plugin Repo: [https://github.com/Paldom/UniqueDeviceID](https://github.com/Paldom/UniqueDeviceID)
|
||||
|
||||
This plugin produces a unique, cross-install, app-specific device id.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- Windows Phone 8
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# UnviredResult
|
||||
a SDK
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add @awesome-cordova-plugins/unvired-cordova-sdk
|
||||
# SyncResult
|
||||
ult
|
||||
ivateResult
|
||||
ionic cordova plugin add @awesome-cordova-plugins/unvired-cordova-sdk
|
||||
$ npm install @awesome-cordova-plugins/unvired-cordova-sdk
|
||||
```
|
||||
|
||||
|
||||
21
docs/plugins/webim/README.md
Normal file
21
docs/plugins/webim/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Webim
|
||||
|
||||
```
|
||||
$ cordova plugin add https://github.com/webim/webim-cordova-plugin.git
|
||||
$ npm install @awesome-cordova-plugins/webim
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/webim/)
|
||||
|
||||
Plugin Repo: [https://github.com/webim/webim-cordova-plugin.git](https://github.com/webim/webim-cordova-plugin.git)
|
||||
|
||||
A cordova plugin, a JS version of Webim SDK
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- Browser
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Push Notifications - WonderPush
|
||||
# UserPreferencesMethods
|
||||
nderPush
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add wonderpush-cordova-sdk --variable CLIENT_ID=YOUR_CLIENT_ID --variable CLIENT_SECRET=YOUR_CLIENT_SECRET
|
||||
|
||||
20
docs/plugins/zip/README.md
Normal file
20
docs/plugins/zip/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Zip
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-zip
|
||||
$ npm install @awesome-cordova-plugins/zip
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/zip/)
|
||||
|
||||
Plugin Repo: [https://github.com/MobileChromeApps/cordova-plugin-zip](https://github.com/MobileChromeApps/cordova-plugin-zip)
|
||||
|
||||
A Cordova plugin to unzip files in Android and iOS.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
12255
package-lock.json
generated
12255
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
72
package.json
72
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "awesome-cordova-plugins",
|
||||
"version": "5.43.0",
|
||||
"version": "6.16.0",
|
||||
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
|
||||
"homepage": "https://awesome-cordova-plugins.com",
|
||||
"author": "Daniel Sogl <me@danielsogl.com> (https://danielsogl.com)",
|
||||
@@ -19,57 +19,57 @@
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"readmes": "gulp readmes",
|
||||
"docs-json": "ts-node -P scripts/tsconfig.json scripts/docs-json",
|
||||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
|
||||
"shipit": "npm run build && npm run readmes && npm run npmpub",
|
||||
"generate-release-config": "ts-node -P scripts/tsconfig.json scripts/tasks/generate-release-config",
|
||||
"generate-release-manifest": "ts-node -P scripts/tsconfig.json scripts/tasks/generate-release-manifest",
|
||||
"prepare-release": "npm run generate-release-config && npm run generate-release-manifest",
|
||||
"prettier": "prettier --write --ignore-unknown \"**/*\""
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "2.4.0"
|
||||
"tslib": "2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/common": "11.2.14",
|
||||
"@angular/compiler": "11.2.14",
|
||||
"@angular/compiler-cli": "11.2.14",
|
||||
"@angular/core": "11.2.14",
|
||||
"@types/cordova": "0.0.34",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
"@angular/common": "12.2.17",
|
||||
"@angular/compiler": "12.2.17",
|
||||
"@angular/compiler-cli": "12.2.17",
|
||||
"@angular/core": "12.2.17",
|
||||
"@types/cordova": "11.0.3",
|
||||
"@types/fs-extra": "11.0.4",
|
||||
"@types/jest": "27.5.2",
|
||||
"@types/lodash": "4.14.182",
|
||||
"@types/node": "16.11.38",
|
||||
"@types/rimraf": "3.0.2",
|
||||
"@types/webpack": "5.28.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.26.0",
|
||||
"@typescript-eslint/parser": "5.26.0",
|
||||
"@types/lodash": "4.17.5",
|
||||
"@types/node": "20.14.10",
|
||||
"@types/rimraf": "4.0.5",
|
||||
"@types/webpack": "5.28.5",
|
||||
"@typescript-eslint/eslint-plugin": "5.62.0",
|
||||
"@typescript-eslint/parser": "5.62.0",
|
||||
"async-promise-queue": "1.0.5",
|
||||
"conventional-changelog-cli": "2.2.2",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"dgeni": "0.4.14",
|
||||
"dgeni-packages": "0.16.10",
|
||||
"eslint": "8.16.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-jsdoc": "39.3.1",
|
||||
"fs-extra": "10.1.0",
|
||||
"gulp": "4.0.2",
|
||||
"eslint": "8.57.1",
|
||||
"eslint-config-prettier": "10.1.5",
|
||||
"eslint-plugin-jsdoc": "50.6.17",
|
||||
"fs-extra": "11.3.0",
|
||||
"gulp": "5.0.0",
|
||||
"gulp-rename": "2.0.0",
|
||||
"gulp-replace": "1.1.3",
|
||||
"husky": "8.0.1",
|
||||
"is-ci": "3.0.1",
|
||||
"gulp-replace": "1.1.4",
|
||||
"husky": "9.1.7",
|
||||
"is-ci": "4.1.0",
|
||||
"jest": "27.5.1",
|
||||
"lint-staged": "13.0.0",
|
||||
"lint-staged": "16.0.0",
|
||||
"lodash": "4.17.21",
|
||||
"minimist": "1.2.6",
|
||||
"prettier": "2.6.2",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "2.75.5",
|
||||
"minimist": "1.2.8",
|
||||
"prettier": "2.8.8",
|
||||
"rimraf": "5.0.5",
|
||||
"rollup": "4.41.0",
|
||||
"rxjs": "6.6.7",
|
||||
"terser-webpack-plugin": "5.3.3",
|
||||
"terser-webpack-plugin": "5.3.14",
|
||||
"ts-jest": "27.1.5",
|
||||
"ts-node": "10.8.0",
|
||||
"typescript": "4.1.6",
|
||||
"ts-node": "10.9.2",
|
||||
"typescript": "4.2.4",
|
||||
"unminified-webpack-plugin": "3.0.0",
|
||||
"webpack": "5.73.0",
|
||||
"winston": "3.7.2",
|
||||
"zone.js": "0.11.5"
|
||||
"webpack": "5.74.0",
|
||||
"winston": "3.17.0",
|
||||
"zone.js": "0.11.8"
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "jsdom",
|
||||
|
||||
832
release-please-config.json
Normal file
832
release-please-config.json
Normal file
@@ -0,0 +1,832 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
||||
"release-type": "node",
|
||||
"bump-minor-pre-major": false,
|
||||
"bump-patch-for-minor-pre-major": false,
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"separate-pull-requests": true,
|
||||
"changelog-sections": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Miscellaneous Chores",
|
||||
"hidden": false
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
},
|
||||
{
|
||||
"type": "style",
|
||||
"section": "Styles",
|
||||
"hidden": true
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code Refactoring"
|
||||
},
|
||||
{
|
||||
"type": "perf",
|
||||
"section": "Performance Improvements"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Tests",
|
||||
"hidden": true
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"section": "Build System",
|
||||
"hidden": true
|
||||
},
|
||||
{
|
||||
"type": "ci",
|
||||
"section": "Continuous Integration",
|
||||
"hidden": true
|
||||
}
|
||||
],
|
||||
"packages": {
|
||||
".": {
|
||||
"package-name": "awesome-cordova-plugins"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/core": {
|
||||
"package-name": "@awesome-cordova-plugins/core"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/abbyy-rtr": {
|
||||
"package-name": "@awesome-cordova-plugins/abbyy-rtr"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/action-sheet": {
|
||||
"package-name": "@awesome-cordova-plugins/action-sheet"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/adjust": {
|
||||
"package-name": "@awesome-cordova-plugins/adjust"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/admob": {
|
||||
"package-name": "@awesome-cordova-plugins/admob"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/admob-plus": {
|
||||
"package-name": "@awesome-cordova-plugins/admob-plus"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/admob-pro": {
|
||||
"package-name": "@awesome-cordova-plugins/admob-pro"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/advanced-image-picker": {
|
||||
"package-name": "@awesome-cordova-plugins/advanced-image-picker"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/aes-256": {
|
||||
"package-name": "@awesome-cordova-plugins/aes-256"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/airship": {
|
||||
"package-name": "@awesome-cordova-plugins/airship"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/all-in-one-sdk": {
|
||||
"package-name": "@awesome-cordova-plugins/all-in-one-sdk"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/analytics-firebase": {
|
||||
"package-name": "@awesome-cordova-plugins/analytics-firebase"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/android-exoplayer": {
|
||||
"package-name": "@awesome-cordova-plugins/android-exoplayer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/android-full-screen": {
|
||||
"package-name": "@awesome-cordova-plugins/android-full-screen"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/android-notch": {
|
||||
"package-name": "@awesome-cordova-plugins/android-notch"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/android-permissions": {
|
||||
"package-name": "@awesome-cordova-plugins/android-permissions"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/anyline": {
|
||||
"package-name": "@awesome-cordova-plugins/anyline"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-availability": {
|
||||
"package-name": "@awesome-cordova-plugins/app-availability"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-analytics": {
|
||||
"package-name": "@awesome-cordova-plugins/app-center-analytics"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-crashes": {
|
||||
"package-name": "@awesome-cordova-plugins/app-center-crashes"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-low-memory": {
|
||||
"package-name": "@awesome-cordova-plugins/app-center-low-memory"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-push": {
|
||||
"package-name": "@awesome-cordova-plugins/app-center-push"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-center-shared": {
|
||||
"package-name": "@awesome-cordova-plugins/app-center-shared"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-preferences": {
|
||||
"package-name": "@awesome-cordova-plugins/app-preferences"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-rate": {
|
||||
"package-name": "@awesome-cordova-plugins/app-rate"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-review": {
|
||||
"package-name": "@awesome-cordova-plugins/app-review"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/app-version": {
|
||||
"package-name": "@awesome-cordova-plugins/app-version"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/apple-wallet": {
|
||||
"package-name": "@awesome-cordova-plugins/apple-wallet"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/applovin": {
|
||||
"package-name": "@awesome-cordova-plugins/applovin"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/approov-advanced-http": {
|
||||
"package-name": "@awesome-cordova-plugins/approov-advanced-http"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/appsflyer": {
|
||||
"package-name": "@awesome-cordova-plugins/appsflyer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/audio-management": {
|
||||
"package-name": "@awesome-cordova-plugins/audio-management"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/background-fetch": {
|
||||
"package-name": "@awesome-cordova-plugins/background-fetch"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/background-geolocation": {
|
||||
"package-name": "@awesome-cordova-plugins/background-geolocation"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/background-mode": {
|
||||
"package-name": "@awesome-cordova-plugins/background-mode"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/background-upload": {
|
||||
"package-name": "@awesome-cordova-plugins/background-upload"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/badge": {
|
||||
"package-name": "@awesome-cordova-plugins/badge"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/barcode-scanner": {
|
||||
"package-name": "@awesome-cordova-plugins/barcode-scanner"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/barkoder": {
|
||||
"package-name": "@awesome-cordova-plugins/barkoder"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/battery-status": {
|
||||
"package-name": "@awesome-cordova-plugins/battery-status"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/biocatch": {
|
||||
"package-name": "@awesome-cordova-plugins/biocatch"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/biometric-wrapper": {
|
||||
"package-name": "@awesome-cordova-plugins/biometric-wrapper"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ble": {
|
||||
"package-name": "@awesome-cordova-plugins/ble"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/blinkid": {
|
||||
"package-name": "@awesome-cordova-plugins/blinkid"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-classic-serial-port": {
|
||||
"package-name": "@awesome-cordova-plugins/bluetooth-classic-serial-port"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-le": {
|
||||
"package-name": "@awesome-cordova-plugins/bluetooth-le"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/bluetooth-serial": {
|
||||
"package-name": "@awesome-cordova-plugins/bluetooth-serial"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/branch-io": {
|
||||
"package-name": "@awesome-cordova-plugins/branch-io"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/brightness": {
|
||||
"package-name": "@awesome-cordova-plugins/brightness"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/broadcaster": {
|
||||
"package-name": "@awesome-cordova-plugins/broadcaster"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/browser-tab": {
|
||||
"package-name": "@awesome-cordova-plugins/browser-tab"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/build-info": {
|
||||
"package-name": "@awesome-cordova-plugins/build-info"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/calendar": {
|
||||
"package-name": "@awesome-cordova-plugins/calendar"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/call-directory": {
|
||||
"package-name": "@awesome-cordova-plugins/call-directory"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/call-number": {
|
||||
"package-name": "@awesome-cordova-plugins/call-number"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/camera": {
|
||||
"package-name": "@awesome-cordova-plugins/camera"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/camera-preview": {
|
||||
"package-name": "@awesome-cordova-plugins/camera-preview"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/cashfree-pg": {
|
||||
"package-name": "@awesome-cordova-plugins/cashfree-pg"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/checkout": {
|
||||
"package-name": "@awesome-cordova-plugins/checkout"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/chooser": {
|
||||
"package-name": "@awesome-cordova-plugins/chooser"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/chooser-simple-file": {
|
||||
"package-name": "@awesome-cordova-plugins/chooser-simple-file"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/clevertap": {
|
||||
"package-name": "@awesome-cordova-plugins/clevertap"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/clipboard": {
|
||||
"package-name": "@awesome-cordova-plugins/clipboard"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/cloud-settings": {
|
||||
"package-name": "@awesome-cordova-plugins/cloud-settings"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/code-push": {
|
||||
"package-name": "@awesome-cordova-plugins/code-push"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/contacts": {
|
||||
"package-name": "@awesome-cordova-plugins/contacts"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/crop-plugin-privacy": {
|
||||
"package-name": "@awesome-cordova-plugins/crop-plugin-privacy"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/custom-uisdk": {
|
||||
"package-name": "@awesome-cordova-plugins/custom-uisdk"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/deeplinks": {
|
||||
"package-name": "@awesome-cordova-plugins/deeplinks"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/device": {
|
||||
"package-name": "@awesome-cordova-plugins/device"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/device-accounts": {
|
||||
"package-name": "@awesome-cordova-plugins/device-accounts"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/device-motion": {
|
||||
"package-name": "@awesome-cordova-plugins/device-motion"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/device-orientation": {
|
||||
"package-name": "@awesome-cordova-plugins/device-orientation"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/dfu-update": {
|
||||
"package-name": "@awesome-cordova-plugins/dfu-update"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/diagnostic": {
|
||||
"package-name": "@awesome-cordova-plugins/diagnostic"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/dialogs": {
|
||||
"package-name": "@awesome-cordova-plugins/dialogs"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/dns": {
|
||||
"package-name": "@awesome-cordova-plugins/dns"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/document-picker": {
|
||||
"package-name": "@awesome-cordova-plugins/document-picker"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/document-scanner": {
|
||||
"package-name": "@awesome-cordova-plugins/document-scanner"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/document-viewer": {
|
||||
"package-name": "@awesome-cordova-plugins/document-viewer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/downloader": {
|
||||
"package-name": "@awesome-cordova-plugins/downloader"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/dynamsoft-barcode-scanner": {
|
||||
"package-name": "@awesome-cordova-plugins/dynamsoft-barcode-scanner"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/email-composer": {
|
||||
"package-name": "@awesome-cordova-plugins/email-composer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/fabric": {
|
||||
"package-name": "@awesome-cordova-plugins/fabric"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/facebook": {
|
||||
"package-name": "@awesome-cordova-plugins/facebook"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/fbsdk": {
|
||||
"package-name": "@awesome-cordova-plugins/fbsdk"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/fcm": {
|
||||
"package-name": "@awesome-cordova-plugins/fcm"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ffmpeg": {
|
||||
"package-name": "@awesome-cordova-plugins/ffmpeg"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file": {
|
||||
"package-name": "@awesome-cordova-plugins/file"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file-chooser": {
|
||||
"package-name": "@awesome-cordova-plugins/file-chooser"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file-md5": {
|
||||
"package-name": "@awesome-cordova-plugins/file-md5"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file-opener": {
|
||||
"package-name": "@awesome-cordova-plugins/file-opener"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file-path": {
|
||||
"package-name": "@awesome-cordova-plugins/file-path"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/file-transfer": {
|
||||
"package-name": "@awesome-cordova-plugins/file-transfer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/fingerprint-aio": {
|
||||
"package-name": "@awesome-cordova-plugins/fingerprint-aio"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-analytics": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-analytics"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-authentication": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-authentication"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-config": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-config"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-crash": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-crash"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-crashlytics": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-crashlytics"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-dynamic-links": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-dynamic-links"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-messaging": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-messaging"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-model": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-model"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-vision": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-vision"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/firebase-x": {
|
||||
"package-name": "@awesome-cordova-plugins/firebase-x"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/flashlight": {
|
||||
"package-name": "@awesome-cordova-plugins/flashlight"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/foreground-service": {
|
||||
"package-name": "@awesome-cordova-plugins/foreground-service"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ftp": {
|
||||
"package-name": "@awesome-cordova-plugins/ftp"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/gao-de-location": {
|
||||
"package-name": "@awesome-cordova-plugins/gao-de-location"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/gcdwebserver": {
|
||||
"package-name": "@awesome-cordova-plugins/gcdwebserver"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ge-tui-sdk-plugin": {
|
||||
"package-name": "@awesome-cordova-plugins/ge-tui-sdk-plugin"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/genius-scan": {
|
||||
"package-name": "@awesome-cordova-plugins/genius-scan"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/geolocation": {
|
||||
"package-name": "@awesome-cordova-plugins/geolocation"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/globalization": {
|
||||
"package-name": "@awesome-cordova-plugins/globalization"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/google-analytics": {
|
||||
"package-name": "@awesome-cordova-plugins/google-analytics"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/google-nearby": {
|
||||
"package-name": "@awesome-cordova-plugins/google-nearby"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/google-plus": {
|
||||
"package-name": "@awesome-cordova-plugins/google-plus"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/header-color": {
|
||||
"package-name": "@awesome-cordova-plugins/header-color"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/health": {
|
||||
"package-name": "@awesome-cordova-plugins/health"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/health-kit": {
|
||||
"package-name": "@awesome-cordova-plugins/health-kit"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/http": {
|
||||
"package-name": "@awesome-cordova-plugins/http"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/hyper-track": {
|
||||
"package-name": "@awesome-cordova-plugins/hyper-track"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/i-root": {
|
||||
"package-name": "@awesome-cordova-plugins/i-root"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/iamport-cordova": {
|
||||
"package-name": "@awesome-cordova-plugins/iamport-cordova"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ibeacon": {
|
||||
"package-name": "@awesome-cordova-plugins/ibeacon"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/image-picker": {
|
||||
"package-name": "@awesome-cordova-plugins/image-picker"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/image-resizer": {
|
||||
"package-name": "@awesome-cordova-plugins/image-resizer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/imap": {
|
||||
"package-name": "@awesome-cordova-plugins/imap"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-browser": {
|
||||
"package-name": "@awesome-cordova-plugins/in-app-browser"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-purchase-2": {
|
||||
"package-name": "@awesome-cordova-plugins/in-app-purchase-2"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-purchase-3": {
|
||||
"package-name": "@awesome-cordova-plugins/in-app-purchase-3"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-review": {
|
||||
"package-name": "@awesome-cordova-plugins/in-app-review"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/in-app-update": {
|
||||
"package-name": "@awesome-cordova-plugins/in-app-update"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/insomnia": {
|
||||
"package-name": "@awesome-cordova-plugins/insomnia"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/instagram": {
|
||||
"package-name": "@awesome-cordova-plugins/instagram"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/intercom": {
|
||||
"package-name": "@awesome-cordova-plugins/intercom"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ionic-webview": {
|
||||
"package-name": "@awesome-cordova-plugins/ionic-webview"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ios-aswebauthenticationsession-api": {
|
||||
"package-name": "@awesome-cordova-plugins/ios-aswebauthenticationsession-api"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/is-debug": {
|
||||
"package-name": "@awesome-cordova-plugins/is-debug"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/keyboard": {
|
||||
"package-name": "@awesome-cordova-plugins/keyboard"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/keychain": {
|
||||
"package-name": "@awesome-cordova-plugins/keychain"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/kommunicate": {
|
||||
"package-name": "@awesome-cordova-plugins/kommunicate"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/launch-navigator": {
|
||||
"package-name": "@awesome-cordova-plugins/launch-navigator"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/launch-review": {
|
||||
"package-name": "@awesome-cordova-plugins/launch-review"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/lets-cooee": {
|
||||
"package-name": "@awesome-cordova-plugins/lets-cooee"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/line-login": {
|
||||
"package-name": "@awesome-cordova-plugins/line-login"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/local-backup": {
|
||||
"package-name": "@awesome-cordova-plugins/local-backup"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/local-notifications": {
|
||||
"package-name": "@awesome-cordova-plugins/local-notifications"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/location-accuracy": {
|
||||
"package-name": "@awesome-cordova-plugins/location-accuracy"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/lottie-splash-screen": {
|
||||
"package-name": "@awesome-cordova-plugins/lottie-splash-screen"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/magnetometer": {
|
||||
"package-name": "@awesome-cordova-plugins/magnetometer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/market": {
|
||||
"package-name": "@awesome-cordova-plugins/market"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/media": {
|
||||
"package-name": "@awesome-cordova-plugins/media"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/media-capture": {
|
||||
"package-name": "@awesome-cordova-plugins/media-capture"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/metrix": {
|
||||
"package-name": "@awesome-cordova-plugins/metrix"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/mixpanel": {
|
||||
"package-name": "@awesome-cordova-plugins/mixpanel"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/mlkit-translate": {
|
||||
"package-name": "@awesome-cordova-plugins/mlkit-translate"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/mobile-accessibility": {
|
||||
"package-name": "@awesome-cordova-plugins/mobile-accessibility"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/mobile-messaging": {
|
||||
"package-name": "@awesome-cordova-plugins/mobile-messaging"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/multiple-document-picker": {
|
||||
"package-name": "@awesome-cordova-plugins/multiple-document-picker"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/music-controls": {
|
||||
"package-name": "@awesome-cordova-plugins/music-controls"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-audio": {
|
||||
"package-name": "@awesome-cordova-plugins/native-audio"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-geocoder": {
|
||||
"package-name": "@awesome-cordova-plugins/native-geocoder"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-keyboard": {
|
||||
"package-name": "@awesome-cordova-plugins/native-keyboard"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-page-transitions": {
|
||||
"package-name": "@awesome-cordova-plugins/native-page-transitions"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-storage": {
|
||||
"package-name": "@awesome-cordova-plugins/native-storage"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/native-view": {
|
||||
"package-name": "@awesome-cordova-plugins/native-view"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/network": {
|
||||
"package-name": "@awesome-cordova-plugins/network"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/network-interface": {
|
||||
"package-name": "@awesome-cordova-plugins/network-interface"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/network-permission": {
|
||||
"package-name": "@awesome-cordova-plugins/network-permission"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/newrelic": {
|
||||
"package-name": "@awesome-cordova-plugins/newrelic"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/nfc": {
|
||||
"package-name": "@awesome-cordova-plugins/nfc"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ocr": {
|
||||
"package-name": "@awesome-cordova-plugins/ocr"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/onesignal": {
|
||||
"package-name": "@awesome-cordova-plugins/onesignal"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/open-native-settings": {
|
||||
"package-name": "@awesome-cordova-plugins/open-native-settings"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/openalpr": {
|
||||
"package-name": "@awesome-cordova-plugins/openalpr"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/openinstall": {
|
||||
"package-name": "@awesome-cordova-plugins/openinstall"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/paytabs": {
|
||||
"package-name": "@awesome-cordova-plugins/paytabs"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/pdf-generator": {
|
||||
"package-name": "@awesome-cordova-plugins/pdf-generator"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/photo-library": {
|
||||
"package-name": "@awesome-cordova-plugins/photo-library"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/photo-viewer": {
|
||||
"package-name": "@awesome-cordova-plugins/photo-viewer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/play-install-referrer": {
|
||||
"package-name": "@awesome-cordova-plugins/play-install-referrer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/pollfish": {
|
||||
"package-name": "@awesome-cordova-plugins/pollfish"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/power-management": {
|
||||
"package-name": "@awesome-cordova-plugins/power-management"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/power-optimization": {
|
||||
"package-name": "@awesome-cordova-plugins/power-optimization"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/preview-any-file": {
|
||||
"package-name": "@awesome-cordova-plugins/preview-any-file"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/printer": {
|
||||
"package-name": "@awesome-cordova-plugins/printer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/pspdfkit-cordova": {
|
||||
"package-name": "@awesome-cordova-plugins/pspdfkit-cordova"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/purchases": {
|
||||
"package-name": "@awesome-cordova-plugins/purchases"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/push": {
|
||||
"package-name": "@awesome-cordova-plugins/push"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/pushape-push": {
|
||||
"package-name": "@awesome-cordova-plugins/pushape-push"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/safari-view-controller": {
|
||||
"package-name": "@awesome-cordova-plugins/safari-view-controller"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/save-dialog": {
|
||||
"package-name": "@awesome-cordova-plugins/save-dialog"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/screen-orientation": {
|
||||
"package-name": "@awesome-cordova-plugins/screen-orientation"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/screenshot": {
|
||||
"package-name": "@awesome-cordova-plugins/screenshot"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/secure-storage": {
|
||||
"package-name": "@awesome-cordova-plugins/secure-storage"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/secure-storage-echo": {
|
||||
"package-name": "@awesome-cordova-plugins/secure-storage-echo"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/service-discovery": {
|
||||
"package-name": "@awesome-cordova-plugins/service-discovery"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/shake": {
|
||||
"package-name": "@awesome-cordova-plugins/shake"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/shortcuts-android": {
|
||||
"package-name": "@awesome-cordova-plugins/shortcuts-android"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sign-in-with-apple": {
|
||||
"package-name": "@awesome-cordova-plugins/sign-in-with-apple"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/smartlook": {
|
||||
"package-name": "@awesome-cordova-plugins/smartlook"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sms": {
|
||||
"package-name": "@awesome-cordova-plugins/sms"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sms-retriever": {
|
||||
"package-name": "@awesome-cordova-plugins/sms-retriever"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sms-retriever-api": {
|
||||
"package-name": "@awesome-cordova-plugins/sms-retriever-api"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/smtp-client": {
|
||||
"package-name": "@awesome-cordova-plugins/smtp-client"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/social-sharing": {
|
||||
"package-name": "@awesome-cordova-plugins/social-sharing"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sockets-tcp": {
|
||||
"package-name": "@awesome-cordova-plugins/sockets-tcp"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sockets-udp": {
|
||||
"package-name": "@awesome-cordova-plugins/sockets-udp"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/speech-recognition": {
|
||||
"package-name": "@awesome-cordova-plugins/speech-recognition"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/spinner-dialog": {
|
||||
"package-name": "@awesome-cordova-plugins/spinner-dialog"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/splash-screen": {
|
||||
"package-name": "@awesome-cordova-plugins/splash-screen"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/spotify-auth": {
|
||||
"package-name": "@awesome-cordova-plugins/spotify-auth"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite": {
|
||||
"package-name": "@awesome-cordova-plugins/sqlite"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite-db-copy": {
|
||||
"package-name": "@awesome-cordova-plugins/sqlite-db-copy"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sqlite-porter": {
|
||||
"package-name": "@awesome-cordova-plugins/sqlite-porter"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/ssl-certificate-checker": {
|
||||
"package-name": "@awesome-cordova-plugins/ssl-certificate-checker"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/star-prnt": {
|
||||
"package-name": "@awesome-cordova-plugins/star-prnt"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/status-bar": {
|
||||
"package-name": "@awesome-cordova-plugins/status-bar"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/streaming-media": {
|
||||
"package-name": "@awesome-cordova-plugins/streaming-media"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/stripe": {
|
||||
"package-name": "@awesome-cordova-plugins/stripe"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/sum-up": {
|
||||
"package-name": "@awesome-cordova-plugins/sum-up"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/system-alert-window-permission": {
|
||||
"package-name": "@awesome-cordova-plugins/system-alert-window-permission"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/taptic-engine": {
|
||||
"package-name": "@awesome-cordova-plugins/taptic-engine"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/tealium": {
|
||||
"package-name": "@awesome-cordova-plugins/tealium"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/tealium-adidentifier": {
|
||||
"package-name": "@awesome-cordova-plugins/tealium-adidentifier"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/tealium-installreferrer": {
|
||||
"package-name": "@awesome-cordova-plugins/tealium-installreferrer"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/text-to-speech-advanced": {
|
||||
"package-name": "@awesome-cordova-plugins/text-to-speech-advanced"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/theme-detection": {
|
||||
"package-name": "@awesome-cordova-plugins/theme-detection"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/three-dee-touch": {
|
||||
"package-name": "@awesome-cordova-plugins/three-dee-touch"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/toast": {
|
||||
"package-name": "@awesome-cordova-plugins/toast"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/touch-id": {
|
||||
"package-name": "@awesome-cordova-plugins/touch-id"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/unique-device-id": {
|
||||
"package-name": "@awesome-cordova-plugins/unique-device-id"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk": {
|
||||
"package-name": "@awesome-cordova-plugins/unvired-cordova-sdk"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/uptime": {
|
||||
"package-name": "@awesome-cordova-plugins/uptime"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/urbanairship": {
|
||||
"package-name": "@awesome-cordova-plugins/urbanairship"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/usabilla-cordova-sdk": {
|
||||
"package-name": "@awesome-cordova-plugins/usabilla-cordova-sdk"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/vibes": {
|
||||
"package-name": "@awesome-cordova-plugins/vibes"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/vibration": {
|
||||
"package-name": "@awesome-cordova-plugins/vibration"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/video-editor": {
|
||||
"package-name": "@awesome-cordova-plugins/video-editor"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/video-player": {
|
||||
"package-name": "@awesome-cordova-plugins/video-player"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/we-cap-inbox": {
|
||||
"package-name": "@awesome-cordova-plugins/we-cap-inbox"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/web-intent": {
|
||||
"package-name": "@awesome-cordova-plugins/web-intent"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/web-server": {
|
||||
"package-name": "@awesome-cordova-plugins/web-server"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/web-socket-server": {
|
||||
"package-name": "@awesome-cordova-plugins/web-socket-server"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/webengage": {
|
||||
"package-name": "@awesome-cordova-plugins/webengage"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/webim": {
|
||||
"package-name": "@awesome-cordova-plugins/webim"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/wechat": {
|
||||
"package-name": "@awesome-cordova-plugins/wechat"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/wheel-selector": {
|
||||
"package-name": "@awesome-cordova-plugins/wheel-selector"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/wifi-wizard-2": {
|
||||
"package-name": "@awesome-cordova-plugins/wifi-wizard-2"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/wonderpush": {
|
||||
"package-name": "@awesome-cordova-plugins/wonderpush"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/youtube-video-player": {
|
||||
"package-name": "@awesome-cordova-plugins/youtube-video-player"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/zbar": {
|
||||
"package-name": "@awesome-cordova-plugins/zbar"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/zeroconf": {
|
||||
"package-name": "@awesome-cordova-plugins/zeroconf"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/zip": {
|
||||
"package-name": "@awesome-cordova-plugins/zip"
|
||||
},
|
||||
"src/@awesome-cordova-plugins/plugins/zoom": {
|
||||
"package-name": "@awesome-cordova-plugins/zoom"
|
||||
}
|
||||
}
|
||||
}
|
||||
117
renovate.json
117
renovate.json
@@ -1,5 +1,118 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
"config:recommended",
|
||||
":semanticCommits",
|
||||
":dependencyDashboard",
|
||||
":rebaseStalePrs",
|
||||
":separateMajorReleases",
|
||||
":combinePatchMinorReleases",
|
||||
":ignoreUnstable",
|
||||
":prImmediately",
|
||||
":updateNotScheduled",
|
||||
":automergeDisabled",
|
||||
":maintainLockFilesWeekly",
|
||||
":prConcurrentLimit10"
|
||||
],
|
||||
"platformAutomerge": true,
|
||||
"rangeStrategy": "bump",
|
||||
"semanticCommits": "enabled",
|
||||
"timezone": "Europe/Berlin",
|
||||
"schedule": ["before 6am on monday"],
|
||||
"labels": ["dependencies"],
|
||||
"assignees": ["danielsogl"],
|
||||
"reviewers": ["danielsogl"],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchManagers": ["npm"],
|
||||
"matchUpdateTypes": ["patch", "minor"],
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"groupName": "non-major dependencies",
|
||||
"groupSlug": "all-minor-patch"
|
||||
},
|
||||
{
|
||||
"matchManagers": ["npm"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"automerge": false,
|
||||
"groupName": "major dependencies",
|
||||
"groupSlug": "all-major"
|
||||
},
|
||||
{
|
||||
"groupName": "TypeScript type definitions",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["/^@types//"]
|
||||
},
|
||||
{
|
||||
"groupName": "linting and formatting",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["/^eslint/", "/^prettier/", "/^husky/", "/^lint-staged/"]
|
||||
},
|
||||
{
|
||||
"groupName": "Angular",
|
||||
"packagePatterns": ["^@angular/", "^@angular-devkit/", "@schematics/angular"],
|
||||
"allowedVersions": "<=12",
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"matchPackageNames": ["zone.js"],
|
||||
"allowedVersions": "<=11",
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"matchPackageNames": ["typescript", "ts-node"],
|
||||
"allowedVersions": "<=4",
|
||||
"groupName": "TypeScript core",
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"groupName": "Build and bundling tools",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["rollup", "webpack", "terser-webpack-plugin", "unminified-webpack-plugin", "rimraf"]
|
||||
},
|
||||
{
|
||||
"groupName": "Testing framework",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["jest", "ts-jest", "@types/jest"]
|
||||
},
|
||||
{
|
||||
"groupName": "Documentation tools",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["dgeni", "dgeni-packages", "gulp", "gulp-rename", "gulp-replace"]
|
||||
},
|
||||
{
|
||||
"groupName": "Utility libraries",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"matchPackageNames": ["lodash", "@types/lodash", "fs-extra", "@types/fs-extra", "minimist", "winston"]
|
||||
},
|
||||
{
|
||||
"matchManagers": ["npm"],
|
||||
"matchDepTypes": ["engines"],
|
||||
"enabled": false,
|
||||
"description": "Disable Node.js engine updates"
|
||||
}
|
||||
],
|
||||
"vulnerabilityAlerts": {
|
||||
"enabled": true,
|
||||
"automerge": true,
|
||||
"schedule": ["at any time"]
|
||||
},
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
"automerge": true,
|
||||
"schedule": ["before 6am on monday"]
|
||||
},
|
||||
"prCreation": "immediate",
|
||||
"prHourlyLimit": 2,
|
||||
"prConcurrentLimit": 5,
|
||||
"updatePinnedDependencies": false,
|
||||
"enabledManagers": ["npm"],
|
||||
"ignoreDeps": [],
|
||||
"ignorePaths": ["**/node_modules/**", "**/dist/**", "**/coverage/**"]
|
||||
}
|
||||
|
||||
@@ -21,7 +21,8 @@ export function getProgram(rootNames: string[] = createSourceFiles()) {
|
||||
options.inlineSourceMap = true;
|
||||
options.importHelpers = true;
|
||||
options.inlineSources = true;
|
||||
options.enableIvy = false;
|
||||
options.enableIvy = true;
|
||||
options.compilationMode = 'partial';
|
||||
|
||||
delete options.baseUrl;
|
||||
|
||||
@@ -77,38 +78,6 @@ export function generateLegacyBundles() {
|
||||
);
|
||||
}
|
||||
|
||||
// remove reference to @awesome-cordova-plugins/core decorators
|
||||
export function modifyMetadata() {
|
||||
PLUGIN_PATHS.map((p) =>
|
||||
p.replace(join(ROOT, 'src'), join(ROOT, 'dist')).replace('index.ts', 'ngx/index.metadata.json')
|
||||
).forEach((p) => {
|
||||
const content = readJSONSync(p);
|
||||
let _prop: { members: { [x: string]: any[] } };
|
||||
for (const prop in content[0].metadata) {
|
||||
_prop = content[0].metadata[prop];
|
||||
removeIonicNativeDecorators(_prop);
|
||||
|
||||
if (_prop.members) {
|
||||
for (const memberProp in _prop.members) {
|
||||
removeIonicNativeDecorators(_prop.members[memberProp][0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
writeJSONSync(p, content);
|
||||
});
|
||||
}
|
||||
|
||||
function removeIonicNativeDecorators(node: any) {
|
||||
if (node.decorators && node.decorators.length) {
|
||||
node.decorators = node.decorators.filter(
|
||||
(d: { expression: { module: string } }) => d.expression.module !== '@awesome-cordova-plugins/core'
|
||||
);
|
||||
}
|
||||
|
||||
if (node.decorators && !node.decorators.length) delete node.decorators;
|
||||
}
|
||||
|
||||
function createSourceFiles(): string[] {
|
||||
return PLUGIN_PATHS.map((indexPath: string) => {
|
||||
const ngxPath = resolve(indexPath.replace('index.ts', ''), 'ngx'),
|
||||
|
||||
@@ -2,7 +2,6 @@ import {
|
||||
cleanupNgx,
|
||||
generateLegacyBundles,
|
||||
generateDeclarationFiles,
|
||||
modifyMetadata,
|
||||
transpileNgx,
|
||||
transpileNgxCore,
|
||||
} from '../build/ngx';
|
||||
@@ -11,5 +10,4 @@ transpileNgxCore();
|
||||
transpileNgx();
|
||||
generateLegacyBundles();
|
||||
generateDeclarationFiles();
|
||||
modifyMetadata();
|
||||
cleanupNgx();
|
||||
|
||||
55
scripts/tasks/generate-release-config.ts
Normal file
55
scripts/tasks/generate-release-config.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import { writeFileSync } from 'fs-extra';
|
||||
import { resolve } from 'path';
|
||||
import { PLUGIN_PATHS, ROOT } from '../build/helpers';
|
||||
|
||||
// Base configuration for release-please
|
||||
const baseConfig = {
|
||||
$schema: 'https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json',
|
||||
'release-type': 'node',
|
||||
'bump-minor-pre-major': false,
|
||||
'bump-patch-for-minor-pre-major': false,
|
||||
draft: false,
|
||||
prerelease: false,
|
||||
'changelog-sections': [
|
||||
{ type: 'feat', section: 'Features' },
|
||||
{ type: 'fix', section: 'Bug Fixes' },
|
||||
{ type: 'chore', section: 'Miscellaneous Chores', hidden: false },
|
||||
{ type: 'docs', section: 'Documentation' },
|
||||
{ type: 'style', section: 'Styles', hidden: true },
|
||||
{ type: 'refactor', section: 'Code Refactoring' },
|
||||
{ type: 'perf', section: 'Performance Improvements' },
|
||||
{ type: 'test', section: 'Tests', hidden: true },
|
||||
{ type: 'build', section: 'Build System', hidden: true },
|
||||
{ type: 'ci', section: 'Continuous Integration', hidden: true },
|
||||
],
|
||||
packages: {},
|
||||
};
|
||||
|
||||
function generateReleaseConfig() {
|
||||
const config = { ...baseConfig };
|
||||
|
||||
// Add core package
|
||||
config.packages['src/@awesome-cordova-plugins/core'] = {
|
||||
'package-name': '@awesome-cordova-plugins/core',
|
||||
};
|
||||
|
||||
// Add all plugin packages dynamically
|
||||
PLUGIN_PATHS.forEach((pluginPath: string) => {
|
||||
const pluginName = pluginPath.split(/[\/\\]+/).slice(-2)[0];
|
||||
const packagePath = `src/@awesome-cordova-plugins/plugins/${pluginName}`;
|
||||
|
||||
config.packages[packagePath] = {
|
||||
'package-name': `@awesome-cordova-plugins/${pluginName}`,
|
||||
};
|
||||
});
|
||||
|
||||
// Write the configuration file
|
||||
const configPath = resolve(ROOT, 'release-please-config.json');
|
||||
writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||
|
||||
console.log(`Generated release-please-config.json with ${Object.keys(config.packages).length} packages`);
|
||||
console.log(`- 1 core package`);
|
||||
console.log(`- ${Object.keys(config.packages).length - 1} plugin packages`);
|
||||
}
|
||||
|
||||
generateReleaseConfig();
|
||||
32
scripts/tasks/generate-release-manifest.ts
Normal file
32
scripts/tasks/generate-release-manifest.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { writeFileSync } from 'fs-extra';
|
||||
import { resolve } from 'path';
|
||||
import { PLUGIN_PATHS, ROOT } from '../build/helpers';
|
||||
|
||||
// Get the current version from package.json
|
||||
const MAIN_PACKAGE_JSON = require('../../package.json');
|
||||
const VERSION = MAIN_PACKAGE_JSON.version;
|
||||
|
||||
function generateReleaseManifest() {
|
||||
const manifest = {};
|
||||
|
||||
// Add core package with current version
|
||||
manifest['src/@awesome-cordova-plugins/core'] = VERSION;
|
||||
|
||||
// Add all plugin packages with current version
|
||||
PLUGIN_PATHS.forEach((pluginPath: string) => {
|
||||
const pluginName = pluginPath.split(/[\/\\]+/).slice(-2)[0];
|
||||
const packagePath = `src/@awesome-cordova-plugins/plugins/${pluginName}`;
|
||||
|
||||
manifest[packagePath] = VERSION;
|
||||
});
|
||||
|
||||
// Write the manifest file
|
||||
const manifestPath = resolve(ROOT, '.release-please-manifest.json');
|
||||
writeFileSync(manifestPath, JSON.stringify(manifest, null, 2));
|
||||
|
||||
console.log(
|
||||
`Generated .release-please-manifest.json with version ${VERSION} for ${Object.keys(manifest).length} packages`
|
||||
);
|
||||
}
|
||||
|
||||
generateReleaseManifest();
|
||||
@@ -15,7 +15,7 @@ const FLAGS = '--access public';
|
||||
|
||||
const PACKAGE_JSON_BASE = {
|
||||
description: 'Awesome Cordova Plugins - Native plugins for ionic apps',
|
||||
main: 'bundle.js',
|
||||
main: 'index.js',
|
||||
module: 'index.js',
|
||||
typings: 'index.d.ts',
|
||||
author: 'ionic',
|
||||
@@ -30,7 +30,7 @@ const DIST = resolve(ROOT, 'dist/@awesome-cordova-plugins');
|
||||
|
||||
const PACKAGES = [];
|
||||
|
||||
const MIN_CORE_VERSION = '^5.1.0';
|
||||
const MIN_CORE_VERSION = '^6.0.1';
|
||||
const RXJS_VERSION = '^5.5.0 || ^6.5.0 || ^7.3.0';
|
||||
|
||||
const PLUGIN_PEER_DEPENDENCIES = {
|
||||
|
||||
@@ -1,11 +1,225 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export class AdjustConfig {
|
||||
private appToken: string;
|
||||
private environment: AdjustEnvironment;
|
||||
private sdkPrefix: string;
|
||||
private logLevel: AdjustLogLevel = null;
|
||||
private defaultTracker: string = null;
|
||||
private externalDeviceId: string = null;
|
||||
private isSendingInBackgroundEnabled: boolean = null;
|
||||
private isDeferredDeeplinkOpeningEnabled: boolean = null;
|
||||
private isCostDataInAttributionEnabled: boolean = null;
|
||||
private isCoppaComplianceEnabled: boolean = null;
|
||||
private isDeviceIdsReadingOnceEnabled: boolean = null;
|
||||
private eventDeduplicationIdsMaxSize: number = null;
|
||||
private urlStrategyDomains: string[] = [];
|
||||
private useSubdomains: boolean = null;
|
||||
private isDataResidency: boolean = null;
|
||||
|
||||
// android only
|
||||
private processName: string = null;
|
||||
private isPreinstallTrackingEnabled: boolean = null;
|
||||
private preinstallFilePath: string = null;
|
||||
private isPlayStoreKidsComplianceEnabled: boolean = null;
|
||||
private fbAppId: string = null;
|
||||
|
||||
// ios only
|
||||
private isAdServicesEnabled: boolean = null;
|
||||
private isIdfaReadingEnabled: boolean = null;
|
||||
private isIdfvReadingEnabled: boolean = null;
|
||||
private isSkanAttributionEnabled: boolean = null;
|
||||
private isLinkMeEnabled: boolean = null;
|
||||
private attConsentWaitingInterval: number = null;
|
||||
|
||||
// callbacks
|
||||
private attributionCallback: (attribution: AdjustAttribution) => void = null;
|
||||
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
|
||||
private eventTrackingFailedCallback: (event: AdjustEventFailure) => void = null;
|
||||
private sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void = null;
|
||||
private sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void = null;
|
||||
private deferredDeeplinkCallback: (deeplink: string) => void = null;
|
||||
private skanUpdatedCallback: (skanData: AdjustSkanData) => void = null;
|
||||
|
||||
constructor(appToken: string, environment: AdjustEnvironment) {
|
||||
this.appToken = appToken;
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
setLogLevel(logLevel: AdjustLogLevel): void {
|
||||
this.logLevel = logLevel;
|
||||
}
|
||||
|
||||
setDefaultTracker(defaultTracker: string): void {
|
||||
this.defaultTracker = defaultTracker;
|
||||
}
|
||||
|
||||
setExternalDeviceId(externalDeviceId: string): void {
|
||||
this.externalDeviceId = externalDeviceId;
|
||||
}
|
||||
|
||||
setUrlStrategy(urlStrategyDomains: string[], useSubdomains: boolean, isDataResidency: boolean): void {
|
||||
this.urlStrategy = urlStrategy;
|
||||
}
|
||||
|
||||
enableSendingInBackground(): void {
|
||||
this.isSendingInBackgroundEnabled = true;
|
||||
}
|
||||
|
||||
disableDeferredDeeplinkOpening(): void {
|
||||
this.isDeferredDeeplinkOpeningEnabled = false;
|
||||
}
|
||||
|
||||
enableCoppaCompliance(): void {
|
||||
this.isCoppaComplianceEnabled = true;
|
||||
}
|
||||
|
||||
enableDeviceIdsReadingOnce(): void {
|
||||
this.isDeviceIdsReadingOnceEnabled = true;
|
||||
}
|
||||
|
||||
enablePlayStoreKidsCompliance(): void {
|
||||
this.isPlayStoreKidsComplianceEnabled = true;
|
||||
}
|
||||
|
||||
enableCostDataInAttribution(): void {
|
||||
this.isCostDataInAttributionEnabled = true;
|
||||
}
|
||||
|
||||
setProcessName(processName: string) {
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
enablePreinstallTracking(): void {
|
||||
this.isPreinstallTrackingEnabled = true;
|
||||
}
|
||||
|
||||
setPreinstallFilePath(preinstallFilePath: string): void {
|
||||
this.preinstallFilePath = preinstallFilePath;
|
||||
}
|
||||
|
||||
setFbAppId(fbAppId: string): void {
|
||||
this.fbAppId = fbAppId;
|
||||
}
|
||||
|
||||
disableIdfaReading(): void {
|
||||
this.isIdfaReadingEnabled = false;
|
||||
}
|
||||
|
||||
disableIdfvReading(): void {
|
||||
this.isIdfvReadingEnabled = false;
|
||||
}
|
||||
|
||||
disableAdServices(): void {
|
||||
this.isAdServicesEnabled = false;
|
||||
}
|
||||
|
||||
enableLinkMe(): void {
|
||||
this.isLinkMeEnabled = true;
|
||||
}
|
||||
|
||||
disableSkanAttribution(): void {
|
||||
this.isSkanAttributionEnabled = false;
|
||||
}
|
||||
|
||||
setAttConsentWaitingInterval(attConsentWaitingInterval: number): void {
|
||||
this.attConsentWaitingInterval = attConsentWaitingInterval;
|
||||
}
|
||||
|
||||
setAttributionCallback(attributionCallback: (attribution: AdjustAttribution) => void): void {
|
||||
this.attributionCallback = attributionCallback;
|
||||
}
|
||||
|
||||
setEventTrackingSucceededCallback(eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void): void {
|
||||
this.eventTrackingSucceededCallback = eventTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
setEventTrackingFailedCallback(eventTrackingFailedCallback: (event: AdjustEventFailure) => void): void {
|
||||
this.eventTrackingFailedCallback = eventTrackingFailedCallback;
|
||||
}
|
||||
|
||||
setSessionTrackingSucceededCallback(sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void): void {
|
||||
this.sessionTrackingSucceededCallback = sessionTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
setSessionTrackingFailedCallback(sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void): void {
|
||||
this.sessionTrackingFailedCallback = sessionTrackingFailedCallback;
|
||||
}
|
||||
|
||||
setDeferredDeeplinkCallback(deferredDeeplinkCallback: (deeplink: string) => void): void {
|
||||
this.deferredDeeplinkCallback = deferredDeeplinkCallback;
|
||||
}
|
||||
|
||||
setSkanUpdatedCallback(skanUpdatedCallback: (skanData: AdjustSkanData) => void): void {
|
||||
this.skanUpdatedCallback = skanUpdatedCallback;
|
||||
}
|
||||
|
||||
private getAttributionCallback(): void {
|
||||
return this.attributionCallback;
|
||||
}
|
||||
|
||||
private getEventTrackingSucceededCallback(): void {
|
||||
return this.eventTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
private getEventTrackingFailedCallback(): void {
|
||||
return this.eventTrackingFailedCallback;
|
||||
}
|
||||
|
||||
private getSessionTrackingSucceededCallback(): void {
|
||||
return this.sessionTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
private getSessionTrackingFailedCallback(): void {
|
||||
return this.sessionTrackingFailedCallback;
|
||||
}
|
||||
|
||||
private getDeferredDeeplinkCallback(): void {
|
||||
return this.deferredDeeplinkCallback;
|
||||
}
|
||||
|
||||
private getSkanUpdatedCallback(): void {
|
||||
return this.skanUpdatedCallback;
|
||||
}
|
||||
|
||||
private hasAttributionCallback(): void {
|
||||
return this.attributionCallback !== null;
|
||||
}
|
||||
|
||||
private hasEventTrackingSucceededCallback(): void {
|
||||
return this.eventTrackingSucceededCallback !== null;
|
||||
}
|
||||
|
||||
private hasEventTrackingFailedCallback(): void {
|
||||
return this.eventTrackingFailedCallback !== null;
|
||||
}
|
||||
|
||||
private hasSessionTrackingSucceededCallback(): void {
|
||||
return this.sessionTrackingSucceededCallback !== null;
|
||||
}
|
||||
|
||||
private hasSessionTrackingFailedCallback(): void {
|
||||
return this.sessionTrackingFailedCallback !== null;
|
||||
}
|
||||
|
||||
private hasDeferredDeeplinkCallback(): void {
|
||||
return this.deferredDeeplinkCallback !== null;
|
||||
}
|
||||
|
||||
private hasSkanUpdatedCallback(): void {
|
||||
return this.skanUpdatedCallback !== null;
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustEvent {
|
||||
private eventToken: string;
|
||||
private revenue: number;
|
||||
private currency: string;
|
||||
private productId: string;
|
||||
private transactionId: string;
|
||||
private deduplicationId: string;
|
||||
private purchaseToken: string;
|
||||
private callbackId: string;
|
||||
private callbackParameters: string[] = [];
|
||||
private partnerParameters: string[] = [];
|
||||
@@ -29,220 +243,24 @@ export class AdjustEvent {
|
||||
this.partnerParameters.push(value);
|
||||
}
|
||||
|
||||
setTransactionId(transactionId: string) {
|
||||
setTransactionId(transactionId: string): void {
|
||||
this.transactionId = transactionId;
|
||||
}
|
||||
|
||||
setCallbackId(callbackId: string) {
|
||||
setDeduplicationId(deduplicationId: string): void {
|
||||
this.deduplicationId = deduplicationId;
|
||||
}
|
||||
|
||||
setCallbackId(callbackId: string): void {
|
||||
this.callbackId = callbackId;
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustConfig {
|
||||
private appToken: string;
|
||||
private environment: AdjustEnvironment;
|
||||
private sdkPrefix: string;
|
||||
private delayStart = 0.0;
|
||||
private logLevel: AdjustLogLevel = null;
|
||||
private defaultTracker: string = null;
|
||||
private urlStrategy: AdjustUrlStrategy = null;
|
||||
private externalDeviceId: string = null;
|
||||
private sendInBackground: boolean = null;
|
||||
private shouldLaunchDeeplink: boolean = null;
|
||||
private eventBufferingEnabled: boolean = null;
|
||||
private userAgent: string = null;
|
||||
private isDeviceKnown: boolean = null;
|
||||
private needsCost: boolean = null;
|
||||
private secretId: number = null;
|
||||
private info1: number = null;
|
||||
private info2: number = null;
|
||||
private info3: number = null;
|
||||
private info4: number = null;
|
||||
private processName: string = null; // Android only
|
||||
private preinstallTrackingEnabled: boolean = null; // Android only
|
||||
private preinstallFilePath: string = null; // Android only
|
||||
private oaidReadingEnabled: boolean = null; // Android only
|
||||
private allowiAdInfoReading: boolean = null; // iOS only
|
||||
private allowIdfaReading: boolean = null; // iOS only
|
||||
private allowAdServicesInfoReading: boolean = null; // iOS only
|
||||
|
||||
private attributionCallback: (attribution: AdjustAttribution) => void = null;
|
||||
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
|
||||
private eventTrackingFailedCallback: (event: AdjustEventFailure) => void = null;
|
||||
private sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void = null;
|
||||
private sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void = null;
|
||||
private deferredDeeplinkCallback: (uri: string) => void = null;
|
||||
private conversionValueUpdatedCallback: (conversionValue: number) => void = null;
|
||||
|
||||
constructor(appToken: string, environment: AdjustEnvironment) {
|
||||
this.appToken = appToken;
|
||||
this.environment = environment;
|
||||
setProductId(productId: string): void {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
setAppSecret(secretId: number, info1: number, info2: number, info3: number, info4: number): void {
|
||||
this.secretId = secretId;
|
||||
this.info1 = info1;
|
||||
this.info2 = info2;
|
||||
this.info3 = info3;
|
||||
this.info4 = info4;
|
||||
}
|
||||
|
||||
setDelayStart(delayStart: number) {
|
||||
this.delayStart = delayStart;
|
||||
}
|
||||
|
||||
setLogLevel(logLevel: AdjustLogLevel) {
|
||||
this.logLevel = logLevel;
|
||||
}
|
||||
|
||||
setDefaultTracker(defaultTracker: string) {
|
||||
this.defaultTracker = defaultTracker;
|
||||
}
|
||||
|
||||
setExternalDeviceId(externalDeviceId: string) {
|
||||
this.externalDeviceId = externalDeviceId;
|
||||
}
|
||||
|
||||
setUrlStrategy(urlStrategy: AdjustUrlStrategy) {
|
||||
this.urlStrategy = urlStrategy;
|
||||
}
|
||||
|
||||
setSendInBackground(sendInBackground: boolean) {
|
||||
this.sendInBackground = sendInBackground;
|
||||
}
|
||||
|
||||
setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean) {
|
||||
this.shouldLaunchDeeplink = shouldLaunchDeeplink;
|
||||
}
|
||||
|
||||
setEventBufferingEnabled(eventBufferingEnabled: boolean) {
|
||||
this.eventBufferingEnabled = eventBufferingEnabled;
|
||||
}
|
||||
|
||||
setUserAgent(userAgent: string) {
|
||||
this.userAgent = userAgent;
|
||||
}
|
||||
|
||||
setDeviceKnown(isDeviceKnown: boolean) {
|
||||
this.isDeviceKnown = isDeviceKnown;
|
||||
}
|
||||
|
||||
setNeedsCost(needsCost: boolean) {
|
||||
this.needsCost = needsCost;
|
||||
}
|
||||
|
||||
setProcessName(processName: string) {
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
setPreinstallTrackingEnabled(preinstallTrackingEnabled: boolean) {
|
||||
this.preinstallTrackingEnabled = preinstallTrackingEnabled;
|
||||
}
|
||||
|
||||
setPreinstallFilePath(preinstallFilePath: string) {
|
||||
this.preinstallFilePath = preinstallFilePath;
|
||||
}
|
||||
|
||||
setOaidReadingEnabled(enableOaidReading: boolean) {
|
||||
this.oaidReadingEnabled = enableOaidReading;
|
||||
}
|
||||
|
||||
setAllowiAdInfoReading(allowiAdInfoReading: boolean) {
|
||||
this.allowiAdInfoReading = allowiAdInfoReading;
|
||||
}
|
||||
|
||||
setAllowIdfaReading(allowIdfaReading: boolean) {
|
||||
this.allowIdfaReading = allowIdfaReading;
|
||||
}
|
||||
|
||||
setAllowAdServicesInfoReading(allowAdServicesInfoReading: boolean) {
|
||||
this.allowAdServicesInfoReading = allowAdServicesInfoReading;
|
||||
}
|
||||
|
||||
setAttributionCallbackListener(attributionCallback: (attribution: AdjustAttribution) => void) {
|
||||
this.attributionCallback = attributionCallback;
|
||||
}
|
||||
|
||||
setEventTrackingSucceededCallbackListener(eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void) {
|
||||
this.eventTrackingSucceededCallback = eventTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
setEventTrackingFailedCallbackListener(eventTrackingFailedCallback: (event: AdjustEventFailure) => void) {
|
||||
this.eventTrackingFailedCallback = eventTrackingFailedCallback;
|
||||
}
|
||||
|
||||
setSessionTrackingSucceededCallbackListener(
|
||||
sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void
|
||||
) {
|
||||
this.sessionTrackingSucceededCallback = sessionTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
setSessionTrackingFailedCallbackListener(sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void) {
|
||||
this.sessionTrackingFailedCallback = sessionTrackingFailedCallback;
|
||||
}
|
||||
|
||||
setDeferredDeeplinkCallbackListener(deferredDeeplinkCallback: (uri: string) => void) {
|
||||
this.deferredDeeplinkCallback = deferredDeeplinkCallback;
|
||||
}
|
||||
|
||||
setConversionValueUpdatedCallbackListener(conversionValueUpdatedCallback: (conversionValue: number) => void) {
|
||||
this.conversionValueUpdatedCallback = conversionValueUpdatedCallback;
|
||||
}
|
||||
|
||||
private getAttributionCallback() {
|
||||
return this.attributionCallback;
|
||||
}
|
||||
|
||||
private getEventTrackingSucceededCallback() {
|
||||
return this.eventTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
private getEventTrackingFailedCallback() {
|
||||
return this.eventTrackingFailedCallback;
|
||||
}
|
||||
|
||||
private getSessionTrackingSucceededCallback() {
|
||||
return this.sessionTrackingSucceededCallback;
|
||||
}
|
||||
|
||||
private getSessionTrackingFailedCallback() {
|
||||
return this.sessionTrackingFailedCallback;
|
||||
}
|
||||
|
||||
private getDeferredDeeplinkCallback() {
|
||||
return this.deferredDeeplinkCallback;
|
||||
}
|
||||
|
||||
private getConversionValueUpdatedCallback() {
|
||||
return this.conversionValueUpdatedCallback;
|
||||
}
|
||||
|
||||
private hasAttributionListener() {
|
||||
return this.attributionCallback !== null;
|
||||
}
|
||||
|
||||
private hasEventTrackingSucceededListener() {
|
||||
return this.eventTrackingSucceededCallback !== null;
|
||||
}
|
||||
|
||||
private hasEventTrackingFailedListener() {
|
||||
return this.eventTrackingFailedCallback !== null;
|
||||
}
|
||||
|
||||
private hasSessionTrackingSucceededListener() {
|
||||
return this.sessionTrackingSucceededCallback !== null;
|
||||
}
|
||||
|
||||
private hasSessionTrackingFailedListener() {
|
||||
return this.sessionTrackingFailedCallback !== null;
|
||||
}
|
||||
|
||||
private hasDeferredDeeplinkCallbackListener() {
|
||||
return this.deferredDeeplinkCallback !== null;
|
||||
}
|
||||
|
||||
private hasConversionValueUpdatedCallbackListener() {
|
||||
return this.conversionValueUpdatedCallback !== null;
|
||||
setPurchaseToken(purchaseToken: string): void {
|
||||
this.purchaseToken = purchaseToken;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,17 +268,15 @@ export class AdjustAppStoreSubscription {
|
||||
private price: string;
|
||||
private currency: string;
|
||||
private transactionId: string;
|
||||
private receipt: string;
|
||||
private transactionDate: string;
|
||||
private salesRegion: string;
|
||||
private callbackParameters: string[] = [];
|
||||
private partnerParameters: string[] = [];
|
||||
|
||||
constructor(price: string, currency: string, transactionId: string, receipt: string) {
|
||||
constructor(price: string, currency: string, transactionId: string) {
|
||||
this.price = price;
|
||||
this.currency = currency;
|
||||
this.transactionId = transactionId;
|
||||
this.receipt = receipt;
|
||||
}
|
||||
|
||||
setTransactionDate(transactionDate: string): void {
|
||||
@@ -318,10 +334,11 @@ export class AdjustPlayStoreSubscription {
|
||||
}
|
||||
|
||||
export class AdjustThirdPartySharing {
|
||||
private isEnabled: boolean;
|
||||
private isEnabled: boolean | null;
|
||||
private granularOptions: string[] = [];
|
||||
private partnerSharingSettings: any[] = [];
|
||||
|
||||
constructor(isEnabled: boolean) {
|
||||
constructor(isEnabled: boolean | null) {
|
||||
this.isEnabled = isEnabled;
|
||||
}
|
||||
|
||||
@@ -330,6 +347,12 @@ export class AdjustThirdPartySharing {
|
||||
this.granularOptions.push(key);
|
||||
this.granularOptions.push(value);
|
||||
}
|
||||
|
||||
addPartnerSharingSetting(partnerName: string, key: string, value: boolean): void {
|
||||
this.partnerSharingSettings.push(partnerName);
|
||||
this.partnerSharingSettings.push(key);
|
||||
this.partnerSharingSettings.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustAdRevenue {
|
||||
@@ -362,23 +385,51 @@ export class AdjustAdRevenue {
|
||||
this.partnerParameters.push(value);
|
||||
}
|
||||
|
||||
setAdImpressionsCount(adImpressionsCount: number) {
|
||||
setAdImpressionsCount(adImpressionsCount: number): void {
|
||||
this.adImpressionsCount = adImpressionsCount;
|
||||
}
|
||||
|
||||
setAdRevenueNetwork(adRevenueNetwork: string) {
|
||||
setAdRevenueNetwork(adRevenueNetwork: string): void {
|
||||
this.adRevenueNetwork = adRevenueNetwork;
|
||||
}
|
||||
|
||||
setAdRevenueUnit(adRevenueUnit: string) {
|
||||
setAdRevenueUnit(adRevenueUnit: string): void {
|
||||
this.adRevenueUnit = adRevenueUnit;
|
||||
}
|
||||
|
||||
setAdRevenuePlacement(adRevenuePlacement: string) {
|
||||
setAdRevenuePlacement(adRevenuePlacement: string): void {
|
||||
this.adRevenuePlacement = adRevenuePlacement;
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustAppStorePurchase {
|
||||
private productId: string;
|
||||
private transactionId: string;
|
||||
|
||||
constructor(productId: string, transactionId: string) {
|
||||
this.productId = productId;
|
||||
this.transactionId = transactionId;
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustPlayStorePurchase {
|
||||
private productId: string;
|
||||
private purchaseToken: string;
|
||||
|
||||
constructor(productId: string, purchaseToken: string) {
|
||||
this.productId = productId;
|
||||
this.purchaseToken = purchaseToken;
|
||||
}
|
||||
}
|
||||
|
||||
export class AdjustDeeplink {
|
||||
private deeplink: string;
|
||||
|
||||
constructor(deeplink: string) {
|
||||
this.deeplink = deeplink;
|
||||
}
|
||||
}
|
||||
|
||||
export interface AdjustAttribution {
|
||||
trackerToken: string;
|
||||
trackerName: string;
|
||||
@@ -391,6 +442,7 @@ export interface AdjustAttribution {
|
||||
costType: string;
|
||||
costAmount: string;
|
||||
costCurrency: string;
|
||||
fbInstallReferrer: string; // android only
|
||||
}
|
||||
|
||||
export interface AdjustSessionSuccess {
|
||||
@@ -427,6 +479,19 @@ export interface AdjustEventFailure {
|
||||
jsonResponse: string;
|
||||
}
|
||||
|
||||
export interface AdjustSkanData {
|
||||
conversionValue: number;
|
||||
coarseValue: string;
|
||||
lockWindow: boolean;
|
||||
error: string;
|
||||
}
|
||||
|
||||
export interface AdjustPurchaseVerificationResult {
|
||||
verificationStatus: string;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export enum AdjustEnvironment {
|
||||
Sandbox = 'sandbox',
|
||||
Production = 'production',
|
||||
@@ -442,27 +507,13 @@ export enum AdjustLogLevel {
|
||||
Suppress = 'SUPPRESS',
|
||||
}
|
||||
|
||||
export enum AdjustUrlStrategy {
|
||||
India = 'india',
|
||||
China = 'china',
|
||||
DataResidencyEU = 'data-residency-eu',
|
||||
DataResidencyTR = 'data-residency-tr',
|
||||
DataResidencyUS = 'data-residency-us',
|
||||
}
|
||||
|
||||
export enum AdjustAdRevenueSource {
|
||||
AdRevenueSourceAppLovinMAX = 'applovin_max_sdk',
|
||||
AdRevenueSourceMopub = 'mopub',
|
||||
AdRevenueSourceAdMob = 'admob_sdk',
|
||||
AdRevenueSourceIronsource = 'ironsource_sdk',
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Adjust
|
||||
* @description
|
||||
* This is the Ionic Cordova SDK of Adjust™. You can read more about Adjust™ at adjust.com.
|
||||
*
|
||||
* Requires Cordova plugin: `com.adjust.sdk`. For more info, please see the [Adjust Cordova SDK](https://github.com/adjust/cordova_sdk)
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Adjust, AdjustConfig, AdjustEnvironment } from '@awesome-cordova-plugins/adjust/ngx';
|
||||
@@ -471,10 +522,10 @@ export enum AdjustAdRevenueSource {
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* const config = new AdjustConfig('APP-TOKEN-HERE', AdjustEnvironment.Sandbox);
|
||||
* config.logLevel = AdjustLogLevel.Verbose;
|
||||
* // Set other config properties.
|
||||
* adjust.create(config);
|
||||
* const adjustConfig = new AdjustConfig('YourAppToken', AdjustEnvironment.Sandbox);
|
||||
* adjustConfig.logLevel = AdjustLogLevel.Verbose;
|
||||
* // set other config properties ...
|
||||
* adjust.initSdk(adjustConfig);
|
||||
*
|
||||
* ```
|
||||
* @interfaces
|
||||
@@ -483,18 +534,21 @@ export enum AdjustAdRevenueSource {
|
||||
* AdjustSessionFailure
|
||||
* AdjustEventSuccess
|
||||
* AdjustEventFailure
|
||||
* AdjustSkanData
|
||||
* AdjustPurchaseVerificationResult
|
||||
* @classes
|
||||
* AdjustEvent
|
||||
* AdjustConfig
|
||||
* AdjustEvent
|
||||
* AdjustAppStoreSubscription
|
||||
* AdjustPlayStoreSubscription
|
||||
* AdjustThirdPartySharing
|
||||
* AdjustAdReenue
|
||||
* AdjustAdRevenue
|
||||
* AdjustAppStorePurchase
|
||||
* AdjustPlayStorePurchase
|
||||
* AdjustDeeplink
|
||||
* @enums
|
||||
* AdjustEnvironment
|
||||
* AdjustLogLevel
|
||||
* AdjustUrlStrategy
|
||||
* AdjustAdRevenueSource
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Adjust',
|
||||
@@ -508,61 +562,50 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* This method initializes Adjust SDK
|
||||
*
|
||||
* @param {AdjustConig} config Adjust config object used as starting options
|
||||
* @param {AdjustConig} adjustConfig Adjust config object used as starting options
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
create(config: AdjustConfig): void {}
|
||||
initSdk(adjustConfig: AdjustConfig): void {}
|
||||
|
||||
/**
|
||||
* This method tracks an event
|
||||
*
|
||||
* @param {AdjustEvent} event Adjust event object to be tracked
|
||||
* @param {AdjustEvent} adjustEvent Adjust event object to be tracked
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
trackEvent(event: AdjustEvent): void {}
|
||||
trackEvent(adjustEvent: AdjustEvent): void {}
|
||||
|
||||
/**
|
||||
* This method tracks App Store subscription
|
||||
*
|
||||
* @param {AdjustAppStoreSubscription} subscription Adjust App Store subscription object to be tracked
|
||||
* @param {AdjustAppStoreSubscription} adjustAppStoreSubscription Adjust App Store subscription object to be tracked
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
trackAppStoreSubscription(subscription: AdjustAppStoreSubscription): void {}
|
||||
trackAppStoreSubscription(adjustAppStoreSubscription: AdjustAppStoreSubscription): void {}
|
||||
|
||||
/**
|
||||
* This method tracks Play Store subscription
|
||||
*
|
||||
* @param {AdjustPlayStoreSubscription} subscription Adjust Play Store subscription object to be tracked
|
||||
* @param {AdjustPlayStoreSubscription} adjustPlayStoreSubscription Adjust Play Store subscription object to be tracked
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
trackPlayStoreSubscription(subscription: AdjustPlayStoreSubscription): void {}
|
||||
trackPlayStoreSubscription(adjustPlayStoreSubscription: AdjustPlayStoreSubscription): void {}
|
||||
|
||||
/**
|
||||
* This method tracks third party sharing choice
|
||||
*
|
||||
* @param {AdjustThirdPartySharing} thirdPartySharing Adjust third party sharing object to be tracked
|
||||
* @param {AdjustThirdPartySharing} adjustThirdPartySharing Adjust third party sharing object to be tracked
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
trackThirdPartySharing(thirdPartySharing: AdjustThirdPartySharing): void {}
|
||||
trackThirdPartySharing(adjustThirdPartySharing: AdjustThirdPartySharing): void {}
|
||||
|
||||
/**
|
||||
* This method tracks ad revenue data
|
||||
*
|
||||
* @param {AdjustAdRevenueSource} source Ad revenue source
|
||||
* @param {string} payload Ad revenue JSON string payload
|
||||
* @param {AdjustAdRevenue} adjustAdRevenue Adjust ad revenue object
|
||||
*/
|
||||
trackAdRevenue(source: AdjustAdRevenueSource, payload: string): void;
|
||||
|
||||
/**
|
||||
* This method tracks ad revenue data
|
||||
*
|
||||
* @param {AdjustAdRevenue} adRevenue Adjust ad revenue object
|
||||
*/
|
||||
trackAdRevenue(adRevenue: AdjustAdRevenue): void;
|
||||
|
||||
// And typescript hides this, so the client will be able call only methods above
|
||||
@Cordova({ sync: true })
|
||||
trackAdRevenue(sourceOrAdRevenue: any, payload?: any): void {}
|
||||
trackAdRevenue(adjustAdRevenue: AdjustAdRevenue): void {}
|
||||
|
||||
/**
|
||||
* This method tracks measurement consent choice
|
||||
@@ -573,34 +616,53 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
trackMeasurementConsent(measurementConsent: boolean): void {}
|
||||
|
||||
/**
|
||||
* This method sets offline mode on or off
|
||||
*
|
||||
* @param {boolean} enabled set to true for offline mode on
|
||||
* This method sets offline mode ON
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
setOfflineMode(enabled: boolean): void {}
|
||||
switchToOfflineMode(): void {}
|
||||
|
||||
/**
|
||||
* This method sets offline mode OFF
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
switchBackToOnlineMode(): void {}
|
||||
|
||||
/**
|
||||
* By making this call, the Adjust SDK will try to find if there is any new attribution info inside of the deep link and if any, it will be sent to the Adjust backend.
|
||||
*
|
||||
* @param {string} url URL of the deeplink
|
||||
* @param {AdjustDeeplink} adjustDeeplink AdjustDeeplink instance
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
appWillOpenUrl(url: string): void {}
|
||||
processDeeplink(adjustDeeplink: AdjustDeeplink): void {}
|
||||
|
||||
/**
|
||||
* You can disable/enable the Adjust SDK from tracking by invoking this method
|
||||
* This method is used to send and potentially resolve shortened deep links
|
||||
*
|
||||
* @param {boolean} enabled set to false to disable SDK
|
||||
* @param {AdjustDeeplink} adjustDeeplink AdjustDeeplink instance containing shortened deep link that has opened your app
|
||||
* @returns {Promise<string>} Returns a promise with either resolved (if it was resolved) or echoed deep link
|
||||
*/
|
||||
@Cordova()
|
||||
processAndResolveDeeplink(adjustDeeplink: AdjustDeeplink): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method enables Adjust SDK
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
setEnabled(enabled: boolean): void {}
|
||||
enable(): void {}
|
||||
|
||||
/**
|
||||
* This method disables Adjust SDK
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
disable(): void {}
|
||||
|
||||
/**
|
||||
* To send us the push notification token, add the following call to Adjust whenever you get your token in the app or when it gets updated.
|
||||
* Push tokens are used for Audience Builder and client callbacks, and they are required for the upcoming uninstall tracking feature.
|
||||
*
|
||||
* @param {string} pushToken push token value
|
||||
* @param {string} pushToken Push token value
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
setPushToken(pushToken: string): void {}
|
||||
@@ -622,17 +684,10 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
@Cordova({ sync: true })
|
||||
gdprForgetMe(): void {}
|
||||
|
||||
/**
|
||||
* You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing purposes, but has allowed it to be shared for statistics purposes.
|
||||
* Calling the following method will instruct the Adjust SDK to communicate the user's choice to disable data sharing to the Adjust backend
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
disableThirdPartySharing(): void {}
|
||||
|
||||
/**
|
||||
* Function used to get Google AdId
|
||||
*
|
||||
* @returns {Promise<string>} Returns a promise with google AdId value
|
||||
* @returns {Promise<string>} Returns a promise with Google advertising ID value
|
||||
*/
|
||||
@Cordova()
|
||||
getGoogleAdId(): Promise<string> {
|
||||
@@ -640,9 +695,9 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* If you need to obtain the Amazon Advertising ID, you can make a call to this function.
|
||||
* If you need to obtain the Amazon Fire Advertising ID, you can make a call to this function.
|
||||
*
|
||||
* @returns {Promise<string>} Returns a promise with anazib adv. ID
|
||||
* @returns {Promise<string>} Returns a promise with Amazon Fire advertising ID
|
||||
*/
|
||||
@Cordova()
|
||||
getAmazonAdId(): Promise<string> {
|
||||
@@ -659,6 +714,16 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* To obtain the IDFV, call this function
|
||||
*
|
||||
* @returns {Promise<string>} Returns a promise with IDFV string value
|
||||
*/
|
||||
@Cordova()
|
||||
getIdfv(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* For every device with your app installed on it, the Adjust backend generates a unique Adjust device identifier (adid).
|
||||
* In order to obtain this identifier, call this function
|
||||
@@ -683,7 +748,7 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Get the information about version of the SDK used
|
||||
*
|
||||
* @returns {Promise<string>} Returns a promise with sdk version information
|
||||
* @returns {Promise<string>} Returns a promise with SDK version information
|
||||
*/
|
||||
@Cordova()
|
||||
getSdkVersion(): Promise<string> {
|
||||
@@ -691,56 +756,50 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Method used to add session callback parameters
|
||||
* Method used to add global callback parameters
|
||||
*
|
||||
* @param key key
|
||||
* @param value value
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
addSessionCallbackParameter(key: string, value: string): void {}
|
||||
addGlobalCallbackParameter(key: string, value: string): void {}
|
||||
|
||||
/**
|
||||
* Remove a specific session callback parameter by passing the desiring key to this method
|
||||
* Remove a specific global callback parameter by passing the desiring key to this method
|
||||
*
|
||||
* @param key key
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
removeSessionCallbackParameter(key: string): void {}
|
||||
removeGlobalCallbackParameter(key: string): void {}
|
||||
|
||||
/**
|
||||
* If all keys and values from the session callback parameters have to be removed, call this method
|
||||
* If all keys and values from the global callback parameters have to be removed, call this method
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
resetSessionCallbackParameters(): void {}
|
||||
removeGlobalCallbackParameters(): void {}
|
||||
|
||||
/**
|
||||
* Method used to add session partner parameters
|
||||
* Method used to add global partner parameters
|
||||
*
|
||||
* @param key key
|
||||
* @param value value
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
addSessionPartnerParameter(key: string, value: string): void {}
|
||||
addGlobalPartnerParameter(key: string, value: string): void {}
|
||||
|
||||
/**
|
||||
* Remove a specific session partner parameter by passing the desiring key to this method
|
||||
* Remove a specific global partner parameter by passing the desiring key to this method
|
||||
*
|
||||
* @param key key
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
removeSessionPartnerParameter(key: string): void {}
|
||||
removeGlobalPartnerParameter(key: string): void {}
|
||||
|
||||
/**
|
||||
* If all keys and values from the session partner parameters have to be removed, call this method
|
||||
* If all keys and values from the global partner parameters have to be removed, call this method
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
resetSessionPartnerParameters(): void {}
|
||||
|
||||
/**
|
||||
* This method call will make the Adjust SDK send the initial install session and any events created, if they were not sent after delay start was set and it's delay expired.
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
sendFirstPackages(): void {}
|
||||
removeGlobalPartnerParameters(): void {}
|
||||
|
||||
/**
|
||||
* Request Adjust SDK to show pop up dialog for asking user's consent to be tracked.
|
||||
@@ -749,17 +808,19 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<number>} Returns a promise with user's consent value
|
||||
*/
|
||||
@Cordova()
|
||||
requestTrackingAuthorizationWithCompletionHandler(): Promise<number> {
|
||||
requestAppTrackingAuthorization(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* You can update SKAdNetwork conversion value with calling this method
|
||||
*
|
||||
* @param {number} conversionValue conversion value for the user
|
||||
* @param {Promise<string>} Returns a promisse with error information in case error happened
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
updateConversionValue(conversionValue: number): void {}
|
||||
@Cordova()
|
||||
updateSkanConversionValue(conversionValue: number, coarseValue: string, lockWindow: boolean): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* To obtain the app tracking authorization status in iOS, call this function
|
||||
@@ -770,4 +831,36 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
||||
getAppTrackingAuthorizationStatus(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* To obtain the last deep link which has opened your app, call this function
|
||||
*
|
||||
* @returns {Promise<string>} Returns a promise with last opened deep link string value
|
||||
*/
|
||||
@Cordova()
|
||||
getLastDeeplink(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is used to verify the App Store purchase
|
||||
*
|
||||
* @param {AdjustAppStorePurchase} adjustAppStorePurchase Adjust App Store purchase object to be verified
|
||||
* @returns {Promise<AdjustPurchaseVerificationResult>} Returns a promise with purchase verification outcome
|
||||
*/
|
||||
@Cordova()
|
||||
verifyAppStorePurchase(adjustAppStorePurchase: AdjustAppStorePurchase): Promise<AdjustPurchaseVerificationResult> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is used to verify the Play Store purchase
|
||||
*
|
||||
* @param {AdjustPlayStorePurchase} adjustPlayStorePurchase Adjust Play Store purchase object to be verified
|
||||
* @returns {Promise<AdjustPurchaseVerificationResult>} Returns a promise with purchase verification outcome
|
||||
*/
|
||||
@Cordova()
|
||||
verifyPlayStorePurchase(adjustPlayStorePurchase: AdjustPlayStorePurchase): Promise<AdjustPurchaseVerificationResult> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
interface PresentOptions {
|
||||
/**
|
||||
* Which Media Types are allowed to be selected
|
||||
* default: "IMAGE"
|
||||
*/
|
||||
mediaType?: 'IMAGE' | 'VIDEO' | 'ALL';
|
||||
/**
|
||||
* Show possibility to take via Camera
|
||||
* default: true
|
||||
*/
|
||||
showCameraTile?: boolean;
|
||||
/**
|
||||
* On which Screen the Picker should be started (iOS only)
|
||||
* default: "LIBRARY"
|
||||
*/
|
||||
startOnScreen?: 'LIBRARY' | 'IMAGE' | 'VIDEO';
|
||||
/**
|
||||
* Date format of the Scroll Indicator (Android only)
|
||||
* default: "YYYY.MM"
|
||||
*/
|
||||
scrollIndicatorDateFormat?: string;
|
||||
/**
|
||||
* Show Title (Android only)
|
||||
* default: true
|
||||
*/
|
||||
showTitle?: boolean;
|
||||
/**
|
||||
* Customize the Title (Android only)
|
||||
* default: "Select Image"
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Show the zoomIndicator at the Images (Android only)
|
||||
* default: true
|
||||
*/
|
||||
zoomIndicator?: boolean;
|
||||
/**
|
||||
* Min Count of files to be selected
|
||||
* default: 0 (android), 1 (iOS)
|
||||
*/
|
||||
min?: number;
|
||||
/**
|
||||
* Message to be shown if min Count not reached (Android only)
|
||||
* default: "You need to select a minimum of ... pictures")"
|
||||
*/
|
||||
minCountMessage?: string;
|
||||
/**
|
||||
* Max Count of files can selected
|
||||
* default: 0 (android), 1 (iOS)
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
* Message to be shown if max Count is reached
|
||||
* default: "You can select a maximum of ... pictures"
|
||||
*/
|
||||
maxCountMessage?: string;
|
||||
/**
|
||||
* Change Done Button Text
|
||||
*/
|
||||
buttonText?: string;
|
||||
/**
|
||||
* Show Library as Dropdown (Android only)
|
||||
* default: false
|
||||
*/
|
||||
asDropdown?: boolean;
|
||||
/**
|
||||
* Return the Result as base64
|
||||
* default: false
|
||||
*/
|
||||
asBase64?: boolean;
|
||||
/**
|
||||
* Return the Image as JPEG
|
||||
* default: false
|
||||
*/
|
||||
asJpeg?: boolean;
|
||||
/**
|
||||
* Video Compression Option (iOS only)
|
||||
* available options: https://github.com/Yummypets/YPImagePicker/blob/23158e138bd649b40762bf2e4aa4beb0d463a121/Source/Configuration/YPImagePickerConfiguration.swift#L226-L240
|
||||
* default: AVAssetExportPresetHighestQuality
|
||||
*/
|
||||
videoCompression?: string;
|
||||
}
|
||||
|
||||
interface Result {
|
||||
type: 'image' | 'video';
|
||||
isBase64: boolean;
|
||||
src: string;
|
||||
}
|
||||
|
||||
export enum ErrorCodes {
|
||||
UnsupportedAction = 1,
|
||||
WrongJsonObject = 2,
|
||||
PickerCanceled = 3,
|
||||
UnknownError = 10,
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for every Plugin Error Callback
|
||||
*/
|
||||
interface AdvancedImagePickerError {
|
||||
/**
|
||||
* One of the AdvancedImagePickerErrorCodes
|
||||
*/
|
||||
code: ErrorCodes;
|
||||
|
||||
/**
|
||||
* If available some more info (mostly exception message)
|
||||
*/
|
||||
message: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name AdvancedImagePicker
|
||||
* @description
|
||||
* This Cordova Plugin is for a better (multiple) ImagePicker with more options.
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { AdvancedImagePicker } from '@awesome-cordova-plugins/advanced-image-picker/npx';
|
||||
*
|
||||
*
|
||||
* constructor(private advancedImagePicker: AdvancedImagePicker) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.advancedImagePicker.present{
|
||||
* // config here
|
||||
* })
|
||||
* .then((res: Result[]) => console.log(res))
|
||||
* .catch((error: AdvancedImagePickerError) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'AdvancedImagePicker',
|
||||
plugin: 'cordova-plugin-advanced-imagepicker',
|
||||
pluginRef: 'AdvancedImagePicker',
|
||||
repo: 'https://github.com/EinfachHans/cordova-plugin-advanced-imagepicker',
|
||||
install: 'ionic cordova plugin add cordova-plugin-advanced-imagepicker',
|
||||
installVariables: ['ANDROID_IMAGE_PICKER_VERSION'],
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class AdvancedImagePicker extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Present the ImagePicker
|
||||
* @param options {PresentOptions} https://github.com/EinfachHans/cordova-plugin-advanced-imagepicker/tree/master#parameters
|
||||
* @return {Promise<Result[]>}
|
||||
*/
|
||||
@Cordova()
|
||||
present(options: PresentOptions): Promise<Result[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleans all temp stored Files that was created by this Plugin (iOS only)
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
cleanup(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
1757
src/@awesome-cordova-plugins/plugins/airship/index.ts
Normal file
1757
src/@awesome-cordova-plugins/plugins/airship/index.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -67,7 +67,10 @@ export class AndroidPermissions extends AwesomeCordovaNativePlugin {
|
||||
BIND_WALLPAPER: 'android.permission.BIND_WALLPAPER',
|
||||
BLUETOOTH: 'android.permission.BLUETOOTH',
|
||||
BLUETOOTH_ADMIN: 'android.permission.BLUETOOTH_ADMIN',
|
||||
BLUETOOTH_ADVERTISE: 'android.permission.BLUETOOTH_ADVERTISE',
|
||||
BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT',
|
||||
BLUETOOTH_PRIVILEGED: 'android.permission.BLUETOOTH_PRIVILEGED',
|
||||
BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN',
|
||||
BODY_SENSORS: 'android.permission.BODY_SENSORS',
|
||||
BRICK: 'android.permission.BRICK',
|
||||
BROADCAST_PACKAGE_REMOVED: 'android.permission.BROADCAST_PACKAGE_REMOVED',
|
||||
@@ -123,6 +126,7 @@ export class AndroidPermissions extends AwesomeCordovaNativePlugin {
|
||||
MOUNT_UNMOUNT_FILESYSTEMS: 'android.permission.MOUNT_UNMOUNT_FILESYSTEMS',
|
||||
NFC: 'android.permission.NFC',
|
||||
PERSISTENT_ACTIVITY: 'android.permission.PERSISTENT_ACTIVITY',
|
||||
POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',
|
||||
PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS',
|
||||
READ_CALENDAR: 'android.permission.READ_CALENDAR',
|
||||
READ_CALL_LOG: 'android.permission.READ_CALL_LOG',
|
||||
@@ -132,6 +136,9 @@ export class AndroidPermissions extends AwesomeCordovaNativePlugin {
|
||||
READ_HISTORY_BOOKMARKS: 'com.android.browser.permission.READ_HISTORY_BOOKMARKS',
|
||||
READ_INPUT_STATE: 'android.permission.READ_INPUT_STATE',
|
||||
READ_LOGS: 'android.permission.READ_LOGS',
|
||||
READ_MEDIA_AUDIO: 'android.permission.READ_MEDIA_AUDIO',
|
||||
READ_MEDIA_IMAGES: 'android.permission.READ_MEDIA_IMAGES',
|
||||
READ_MEDIA_VIDEO: 'android.permission.READ_MEDIA_VIDEO',
|
||||
READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE',
|
||||
READ_PROFILE: 'android.permission.READ_PROFILE',
|
||||
READ_SMS: 'android.permission.READ_SMS',
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface AnylineOptions {
|
||||
// Valid License Key
|
||||
licenseKey: string;
|
||||
|
||||
// Scanning options
|
||||
config: any;
|
||||
export interface AnylineConfig {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,14 +34,29 @@ export interface AnylineOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class Anyline extends AwesomeCordovaNativePlugin {
|
||||
@Cordova()
|
||||
checkLicense(licenseKey: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
initAnylineSDK(licenseKey: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getSDKVersion(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Scan
|
||||
*
|
||||
* @param options {AnylineOptions} Scanning options
|
||||
* @param config {AnylineConfig} Scanning options
|
||||
* @returns {Promise<any>} Returns a promise that resolves when Code is captured
|
||||
*/
|
||||
@Cordova()
|
||||
scan(options: AnylineOptions): Promise<any> {
|
||||
scan(config: AnylineConfig): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
55
src/@awesome-cordova-plugins/plugins/app-review/index.ts
Normal file
55
src/@awesome-cordova-plugins/plugins/app-review/index.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name App Review
|
||||
* @description
|
||||
* Cordova plugin to review app
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { AppReview } from '@awesome-cordova-plugins/app-review/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private appReview: AppReview) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.appReview.requestReview()
|
||||
* .then(() => console.log('Success'))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'AppReview',
|
||||
plugin: 'cordova-plugin-app-review',
|
||||
pluginRef: 'cordova.plugins.AppReview',
|
||||
repo: 'https://github.com/chemerisuk/cordova-plugin-app-review',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class AppReview extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Launches in-app review dialog.
|
||||
*
|
||||
* @returns {Promise<void>} Callback when operation is completed
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
requestReview(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Launches App/Play store page with a review form. By default current app screen
|
||||
* is displayed but you can pass a package name string to show another app details.
|
||||
*
|
||||
* @param {string} [packageName] Package name to show instead of the current app.
|
||||
* @returns {Promise<void>} Callback when operation is completed
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
openStoreScreen(packageName?: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
340
src/@awesome-cordova-plugins/plugins/applovin/index.ts
Normal file
340
src/@awesome-cordova-plugins/plugins/applovin/index.ts
Normal file
@@ -0,0 +1,340 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { AwesomeCordovaNativePlugin, Cordova, Plugin } from '@awesome-cordova-plugins/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface InitializeConfig {
|
||||
hasUserConsentValue: boolean;
|
||||
isAgeRestrictedUserValue: boolean;
|
||||
isDoNotSellValue: boolean;
|
||||
isTabletValue: boolean;
|
||||
}
|
||||
|
||||
export interface AdInfo {
|
||||
adUnitId: string;
|
||||
creativeId: string;
|
||||
networkName: string;
|
||||
placement: string;
|
||||
revenue: number;
|
||||
}
|
||||
|
||||
export enum AdViewPosition {
|
||||
TOP_CENTER = 'top_center',
|
||||
TOP_RIGHT = 'top_right',
|
||||
CENTERED = 'centered',
|
||||
CENTER_LEFT = 'center_left',
|
||||
CENTER_RIGHT = 'center_right',
|
||||
BOTTOM_LEFT = 'bottom_left',
|
||||
BOTTOM_CENTER = 'bottom_center',
|
||||
BOTTOM_RIGHT = 'bottom_right',
|
||||
}
|
||||
|
||||
export enum ConsentDialogState {
|
||||
UNKNOWN = 0,
|
||||
APPLIES = 1,
|
||||
DOES_NOT_APPLY = 2,
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Applovin
|
||||
* @description
|
||||
* This plugin allows you to easily configure, integrate and interact with Applovin ads.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Applovin } from '@awesome-cordova-plugins/applovin';
|
||||
*
|
||||
*
|
||||
* constructor(private applovin: Applovin) { }
|
||||
*
|
||||
*
|
||||
* this.applovin.initialize(sdkKey)
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
*
|
||||
* this.applovin.loadInterstitial(adUnitId)
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
*
|
||||
* this.applovin.showInterstitial(adUnitId, placement)
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Applovin',
|
||||
plugin: 'cordova-plugin-applovin-max',
|
||||
pluginRef: 'applovin',
|
||||
repo: 'https://github.com/AppLovin/AppLovin-MAX-Cordova',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Initialize the AppLovin SDK.
|
||||
*
|
||||
* @param {string} sdkKey The SDK key generated for your AppLovin account.
|
||||
*/
|
||||
@Cordova()
|
||||
initialize(sdkKey: string): Promise<InitializeConfig> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showMediationDebugger(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getConsentDialogState(): Promise<ConsentDialogState> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setHasUserConsent(hasUserConsent: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
hasUserConsent(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setIsAgeRestrictedUser(isAgeRestrictedUser: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isAgeRestrictedUser(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setDoNotSell(isDoNotSell: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isDoNotSell(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isTablet(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setUserId(userId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMuted(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setVerboseLogging(verboseLoggingEnabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setTestDeviceAdvertisingIds(advertisingIds: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
trackEvent(event: string, parameters?: object): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** BANNERS */
|
||||
|
||||
@Cordova()
|
||||
createBanner(adUnitId: string, position: AdViewPosition): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBannerBackgroundColor(adUnitId: string, hexColorCode: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBannerPlacement(adUnitId: string, placement: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBannerExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showBanner(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
hideBanner(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
destroyBanner(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** MRECS */
|
||||
|
||||
@Cordova()
|
||||
createMRec(adUnitId: string, position: AdViewPosition): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMRecBackgroundColor(adUnitId: string, hexColorCode: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMRecPlacement(adUnitId: string, placement: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMRecExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showMRec(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
hideMRec(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
destroyMRec(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** INTERSTITIALS */
|
||||
|
||||
@Cordova()
|
||||
loadInterstitial(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showInterstitial(adUnitId: string, placement?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setInterstitialExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialLoadedEvent',
|
||||
})
|
||||
onInterstitialLoaded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialLoadFailedEvent',
|
||||
})
|
||||
onInterstitialLoadFailed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialDisplayedEvent',
|
||||
})
|
||||
onInterstitialDisplayed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialHiddenEvent',
|
||||
})
|
||||
onInterstitialHidden(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialAdFailedToDisplayEvent',
|
||||
})
|
||||
onInterstitialAdFailedToDisplay(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** REWARDED ADS */
|
||||
|
||||
@Cordova()
|
||||
loadRewardedAd(adUnitId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showRewardedAd(adUnitId: string, placement?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRewardedAdExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdLoadedEvent',
|
||||
})
|
||||
onRewardedAdLoaded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdLoadFailedEvent',
|
||||
})
|
||||
onRewardedAdLoadFailed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdDisplayedEvent',
|
||||
})
|
||||
onRewardedAdDisplayed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdHiddenEvent',
|
||||
})
|
||||
onRewardedAdHidden(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdAdFailedToDisplayEvent',
|
||||
})
|
||||
onRewardedAdAdFailedToDisplay(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -28,98 +28,6 @@ interface AbortedResponse {
|
||||
aborted: boolean;
|
||||
}
|
||||
|
||||
export interface ApproovLoggableToken {
|
||||
/**
|
||||
* Expiry
|
||||
* The only mandatory claim for Approov tokens. It specifies the expiry time for the token as a Unix timestamp.
|
||||
*/
|
||||
exp: number;
|
||||
|
||||
/**
|
||||
* Device ID
|
||||
* This claim identifies the device for which the token was issued. This is a base64 encoded string representing a 128-bit device identifier.
|
||||
* Note that this is not, strictly speaking, a device identifier as it is also influenced by the app identifier
|
||||
* and may change if the same app is uninstalled and then reinstalled on the same device.
|
||||
*/
|
||||
did?: string;
|
||||
|
||||
/**
|
||||
* Attestation Response Code
|
||||
* This is an optional claim that encodes information about a subset of the device property flags and also whether the attestation was a pass or fail.
|
||||
* The claim is encoded in base32 and is typically 10 characters long (although it may be longer in some circumstances).
|
||||
* This claim is not included by tokens from the failover.
|
||||
*/
|
||||
arc?: string;
|
||||
|
||||
/**
|
||||
* IP Address
|
||||
* This holds the IP address of the device as seen by the Approov cloud service. It is provided in a human readable IP address format (in either IPv4 or IPv6 format).
|
||||
* In practice this value can often change between the time a token is issued and the time it is sent to your backend, so you should never block if it differs, but you may include it as a signal that tokens have somehow been stolen and are being replayed.
|
||||
* This claim is not included by tokens from the failover or if the IP Tracking Policy for the account has been set to none.
|
||||
*/
|
||||
ip?: string;
|
||||
|
||||
/**
|
||||
* Issuer
|
||||
* An optional claim that is added if the issuer inclusion option is enabled. This provides the Approov account ID that was used to issue the token (suffixed with approov.io).
|
||||
* It can be used as an additional layer of backend verification if signing keys are shared between multiple accounts.
|
||||
* It indicates that tokens were issued from the expected Approov account. This claim may also be set to an explicit value for long lived Approov tokens.
|
||||
* This flexibility is designed for use with server-to-server communication (which may only be signed with the account specific secret keys).
|
||||
*/
|
||||
iss?: string;
|
||||
|
||||
/**
|
||||
* Annotation
|
||||
* This is an embedded JSON array of strings showing the list of flags that are set and are in the annotation set for the security policy that is selected.
|
||||
* This allows additional information to be collected about the state of a particular device without necessarily causing an attestation failure.
|
||||
* Note that if there are no possible annotations then this claim is not present at all. This claim is not included by tokens from the failover.
|
||||
*/
|
||||
anno?: string[];
|
||||
|
||||
/**
|
||||
* Payload Hash
|
||||
* An optional claim that is added if the protected app passes a token binding argument to the setDataHashInToken method.
|
||||
* The claim value is set to the base64 encoded SHA256 hash of the provided payload string.
|
||||
* This is typically used to bind an Approov token to some other data used by your app to enhance security (like a user auth token).
|
||||
*/
|
||||
pay?: string;
|
||||
|
||||
/**
|
||||
* Audience
|
||||
* An optional claim that is added if the audience inclusion option is enabled. This provides the domain for which the token was issued.
|
||||
* It can be used as an additional layer of backend verification to ensure that tokens intended for one domain cannot be used on to access a different one.
|
||||
*/
|
||||
aud?: string;
|
||||
|
||||
/**
|
||||
* Message Siging Key ID
|
||||
* This is an optional claim that encodes the ID of a key being used for Message Signing.
|
||||
* This is only present in Approov tokens for which message signing is active. This claim is not included by tokens from the failover.
|
||||
*/
|
||||
mskid?: string;
|
||||
|
||||
/**
|
||||
* Measurement Proof Key
|
||||
* An optional claim to provide the measurement proof key if a measurement has been requested by the SDK on the domain for which the token is issued.
|
||||
* This is a base64 encoded 128-bit proof key value. Note that if measurement is being used, then JWE tokens will be used to keep this claim secret.
|
||||
*/
|
||||
mpk?: string;
|
||||
|
||||
/**
|
||||
* Integrity Measurement Hash
|
||||
* An optional claim to provide the integrity measurement hash if a measurement has been requested by the SDK on the domain for which the token is issued.
|
||||
* This is a base64 encoded 256-bit SHA256 measurement value. Note that if measurement is being used, then JWE tokens will be used to keep this claim secret.
|
||||
*/
|
||||
imh?: string;
|
||||
|
||||
/**
|
||||
* Device Measurement Hash
|
||||
* An optional claim to provide the device measurement hash if a measurement has been requested by the SDK on the domain for which the token is issued.
|
||||
* This is a base64 encoded 256-bit SHA256 measurement value. Note that if measurement is being used, then JWE tokens will be used to keep this claim secret
|
||||
*/
|
||||
dmh?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name HTTP
|
||||
* @description
|
||||
@@ -134,9 +42,9 @@ export interface ApproovLoggableToken {
|
||||
* we have only added approov functionality on top of it. All credit goes to the actual plugin developer.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { ApproovHttp } from '@awesome-cordova-plugins/http/ngx';
|
||||
* import { HTTP } from '@awesome-cordova-plugins/http/ngx';
|
||||
*
|
||||
* constructor(private http: ApproovHttp) {}
|
||||
* constructor(private http: HTTP) {}
|
||||
*
|
||||
* ...
|
||||
*
|
||||
@@ -161,14 +69,14 @@ export interface ApproovLoggableToken {
|
||||
* HTTPResponse
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'ApproovHttp',
|
||||
plugin: 'cordova-approov-advanced-http',
|
||||
pluginRef: 'cordova.plugin.ApproovHttp',
|
||||
repo: 'https://github.com/approov/quickstart-ionic-advancedhttp',
|
||||
pluginName: 'HTTP',
|
||||
plugin: '@approov/cordova-plugin-advanced-http',
|
||||
pluginRef: 'cordova.plugin.http',
|
||||
repo: 'https://github.com/approov/quickstart-cordova-advancedhttp',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class ApproovHttp extends AwesomeCordovaNativePlugin {
|
||||
export class HTTP extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* This enum represents the internal error codes which can be returned in a HTTPResponse object.
|
||||
*
|
||||
@@ -751,13 +659,23 @@ export class ApproovHttp extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
initializeApproov(): void {
|
||||
@Cordova({ sync: false })
|
||||
approovInitialize(config: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovSetDataHashInToken(dataHash: string): void {
|
||||
approovSetProceedOnNetworkFail(): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovSetDevKey(devKey: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovSetTokenHeader(header: string, prefix: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -766,8 +684,73 @@ export class ApproovHttp extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getApproovLoggableToken(host: string): Promise<ApproovLoggableToken> {
|
||||
@Cordova({ sync: true })
|
||||
approovAddSubstitutionHeader(header: string, requiredPrefix: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovRemoveSubstitutionHeader(header: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovAddSubstitutionQueryParam(key: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovRemoveSubstitutionQueryParam(key: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovAddExclusionURLRegex(urlRegex: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: true })
|
||||
approovRemoveExclusionURLRegex(urlRegex: string): void {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovPrefetch(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovPrecheck(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovGetDeviceID(): Promise<String> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovSetDataHashInToken(data: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovFetchToken(url: string): Promise<String> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovGetMessageSignature(message: string): Promise<String> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovFetchSecureString(key: string, newDef: string): Promise<String> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({ sync: false })
|
||||
approovFetchCustomJWT(payload: string): Promise<String> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
139
src/@awesome-cordova-plugins/plugins/audio-management/index.ts
Normal file
139
src/@awesome-cordova-plugins/plugins/audio-management/index.ts
Normal file
@@ -0,0 +1,139 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name Audio Management
|
||||
* @description
|
||||
* A Cordova plugin to manage volume of audio streams for: ring, music, notification and system. Possible
|
||||
* ringer values for those streams are: silent, vibrate and normal.
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* constructor(public audioManagement: AudioManagement) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* setAudioMode() {
|
||||
* this.audioManagement.setAudioMode(AudioMode.NORMAL)
|
||||
* .then(() => {
|
||||
* console.log('Device audio mode is now NORMAL');
|
||||
* })
|
||||
* .catch((reason) => {
|
||||
* console.log(reason);
|
||||
* });
|
||||
* }
|
||||
*
|
||||
* getAudioMode() {
|
||||
* this.audioManagement.getAudioMode()
|
||||
* .then((value: AudioModeReturn) => {
|
||||
* console.log('Device audio mode is ' + value.label + ' (' + value.audioMode + ')');
|
||||
* })
|
||||
* .catch((reason) => {
|
||||
* console.log(reason);
|
||||
* });
|
||||
* }
|
||||
*
|
||||
* ```
|
||||
* @interfaces
|
||||
* AudioMode
|
||||
* AudioModeReturn
|
||||
* VolumeType
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'AudioManagement',
|
||||
plugin: 'clovelced-plugin-audiomanagement',
|
||||
pluginRef: 'AudioManagement',
|
||||
repo: 'https://github.com/clovelCed/cordova-plugin-audiomanagement',
|
||||
platforms: ['Android']
|
||||
})
|
||||
@Injectable()
|
||||
export class AudioManagement extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Sets the `AudioManagement.AudioMode` for the device.
|
||||
*
|
||||
* @param {AudioMode} mode the device can be set to: Silent, Normal, Vibrate
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
setAudioMode(mode: AudioMode): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current `AudioMode` of the device. Thenable returns an object with
|
||||
* `label` and `audioMode` values.
|
||||
*
|
||||
* @returns {Promise<AudioModeReturn>}
|
||||
*/
|
||||
@Cordova()
|
||||
getAudioMode(): Promise<AudioModeReturn> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the specified `VolumeType` for the device with the value from `volume`.
|
||||
*
|
||||
* @param {VolumeType} type the `VolumeType` to set
|
||||
* @param {number} volume the volume value
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 2,
|
||||
errorIndex: 3
|
||||
})
|
||||
setVolume(type: VolumeType, volume: number): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the specified `VolumeType`'s `volume`. Thenable returns an object with
|
||||
* a numeric property for volume, `volume`.
|
||||
*
|
||||
* @param {VolumeType} type the `VolumeType` to get
|
||||
* @returns {Promise<{volume: number}>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getVolume(type: VolumeType): Promise<{ volume: number }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the specified `VolumeType`'s maximum `volume`. Thenable returns an
|
||||
* object with a numeric property, `maxVolume`.
|
||||
*
|
||||
* @param {VolumeType} type the `VolumeType` to get
|
||||
* @returns {Promise<{maxVolume: number}>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getMaxVolume(type: VolumeType): Promise<{ maxVolume: number }> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum AudioMode {
|
||||
SILENT = 0,
|
||||
VIBRATE,
|
||||
NORMAL
|
||||
}
|
||||
|
||||
export enum VolumeType {
|
||||
RING = 0,
|
||||
MUSIC,
|
||||
NOTIFICATION,
|
||||
SYSTEM
|
||||
}
|
||||
|
||||
export interface AudioModeReturn {
|
||||
audioMode: AudioMode;
|
||||
label: string;
|
||||
}
|
||||
688
src/@awesome-cordova-plugins/plugins/barkoder/index.ts
Normal file
688
src/@awesome-cordova-plugins/plugins/barkoder/index.ts
Normal file
@@ -0,0 +1,688 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name Barkoder
|
||||
* @description
|
||||
* The barKoder Barcode Scanner SDK cordova plugin grants an easy to use solution with a great and completely customizable interface that can be instantly integrated in both iOS and Android apps.
|
||||
* @usage
|
||||
*
|
||||
* ```typescript
|
||||
* import { Barkoder } from '@awesome-cordova-plugins/barkoder/ngx';
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* constructor(private barkoder: Barkoder, private platform: Platform) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* this.platform.ready().then(() => {
|
||||
* this.barkoder.setLicenseKey('YOUR_KEY', true)
|
||||
* .then(() => {
|
||||
* this.barkoder.registerWithLicenseKey('your_license_key')
|
||||
* this.barkoder.initialize('your_license_key')
|
||||
* })
|
||||
* .catch(e => console.log('Error starting Barkoder', e));
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Barkoder',
|
||||
plugin: 'barkoder-cordova',
|
||||
pluginRef: 'Barkoder',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Barkoder extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Initialize the BarkoderView
|
||||
*/
|
||||
@Cordova()
|
||||
initialize(width: number, height: number, x: number, y: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register with license key
|
||||
*/
|
||||
@Cordova()
|
||||
registerWithLicenseKey(licenseKey: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
// - Setters
|
||||
@Cordova()
|
||||
setZoomFactor(zoomFactor: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setFlashEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
startCamera(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
startScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
stopScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
pauseScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setLocationLineColor(hexColor: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setLocationLineWidth(lineWidth: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRoiLineColor(hexColor: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRoiLineWidth(lineWidth: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRoiOverlayBackgroundColor(hexColor: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setCloseSessionOnResultEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setImageResultEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setLocationInImageResultEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRegionOfInterest(left: number, top: number, width: number, height: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setThreadsLimit(threadsLimit: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setLocationInPreviewEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setPinchToZoomEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setRegionOfInterestVisible(regionOfInterestVisible: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBarkoderResolution(resolution: BarkoderResolution): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBeepOnSuccessEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setVibrateOnSuccessEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showLogMessages(showLogMessages: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBarcodeTypeLengthRange(type: string, min: number, max: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setEncodingCharacterSet(characterSet: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setDecodingSpeed(decodingSpeed: DecodingSpeed): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setFormattingType(formattingType: FormattingType): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setCode11ChecksumType(checksumType: Code11ChecksumType): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMsiChecksumType(checksumType: MsiChecksumType): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setCode39ChecksumType(checksumType: Code39ChecksumType): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBarcodeTypeEnabled(type: BarcodeType, enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMulticodeCachingEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMulticodeCachingDuration(duration: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMaximumResultsCount(resultsCount: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBarcodeThumbnailOnResultEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setDuplicatesDelayMs(delayMs: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setThresholdBetweenDuplicatesScans(thresholdBetweenDuplicatesScans: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setUpcEanDeblurEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMisshaped1DEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setEnableVINRestrictions(enableVINRestrictions: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setDataMatrixDpmModeEnabled(enabled: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
configureBarkoder(barkoderConfig: BarkoderConfig): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
// - Getters
|
||||
@Cordova()
|
||||
isFlashAvailable(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isCloseSessionOnResultEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isImageResultEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isLocationInImageResultEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isLocationInPreviewEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isPinchToZoomEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isRegionOfInterestVisible(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isBeepOnSuccessEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isVibrateOnSuccessEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getVersion(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getLocationLineColorHex(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getRoiLineColorHex(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getRoiOverlayBackgroundColorHex(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getMaxZoomFactor(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getLocationLineWidth(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getRoiLineWidth(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getRegionOfInterest(): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getBarcodeTypeLengthRange(type: number): Promise<number> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getMsiChecksumType(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getCode39ChecksumType(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getCode11ChecksumType(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getEncodingCharacterSet(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getDecodingSpeed(): Promise<DecodingSpeed> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getFormattingType(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getThreadsLimit(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getMaximumResultsCount(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getDuplicatesDelayMs(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isBarcodeTypeEnabled(type: number): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getMulticodeCachingEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getMulticodeCachingDuration(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isUpcEanDeblurEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isMisshaped1DEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isBarcodeThumbnailOnResultEnabled(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getThresholdBetweenDuplicatesScans(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
isVINRestrictionsEnabled(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getBarkoderResolution(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
export enum DecodingSpeed {
|
||||
fast,
|
||||
normal,
|
||||
slow,
|
||||
}
|
||||
|
||||
export enum FormattingType {
|
||||
disabled,
|
||||
automatic,
|
||||
gs1,
|
||||
aamva,
|
||||
}
|
||||
|
||||
export enum MsiChecksumType {
|
||||
disabled,
|
||||
mod10,
|
||||
mod11,
|
||||
mod1010,
|
||||
mod1110,
|
||||
mod11IBM,
|
||||
mod1110IBM,
|
||||
}
|
||||
|
||||
export enum Code39ChecksumType {
|
||||
disabled,
|
||||
enabled,
|
||||
}
|
||||
|
||||
export enum Code11ChecksumType {
|
||||
disabled,
|
||||
single,
|
||||
double,
|
||||
}
|
||||
|
||||
export enum BarkoderResolution {
|
||||
normal,
|
||||
high,
|
||||
}
|
||||
|
||||
export enum BarcodeType {
|
||||
aztec,
|
||||
aztecCompact,
|
||||
qr,
|
||||
qrMicro,
|
||||
code128,
|
||||
code93,
|
||||
code39,
|
||||
codabar,
|
||||
code11,
|
||||
msi,
|
||||
upcA,
|
||||
upcE,
|
||||
upcE1,
|
||||
ean13,
|
||||
ean8,
|
||||
pdf417,
|
||||
pdf417Micro,
|
||||
datamatrix,
|
||||
code25,
|
||||
interleaved25,
|
||||
itf14,
|
||||
iata25,
|
||||
matrix25,
|
||||
datalogic25,
|
||||
coop25,
|
||||
code32,
|
||||
telepen,
|
||||
dotcode,
|
||||
}
|
||||
|
||||
export class BarkoderConfig {
|
||||
locationLineColor?: string;
|
||||
locationLineWidth?: number;
|
||||
roiLineColor?: string;
|
||||
roiLineWidth?: number;
|
||||
roiOverlayBackgroundColor?: string;
|
||||
closeSessionOnResultEnabled?: boolean;
|
||||
imageResultEnabled?: boolean;
|
||||
locationInImageResultEnabled?: boolean;
|
||||
locationInPreviewEnabled?: boolean;
|
||||
pinchToZoomEnabled?: boolean;
|
||||
regionOfInterestVisible?: boolean;
|
||||
barkoderResolution?: BarkoderResolution;
|
||||
beepOnSuccessEnabled?: boolean;
|
||||
vibrateOnSuccessEnabled?: boolean;
|
||||
decoder?: DekoderConfig;
|
||||
|
||||
constructor(config: Partial<BarkoderConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
}
|
||||
|
||||
export class DekoderConfig {
|
||||
aztec?: BarcodeConfig;
|
||||
aztecCompact?: BarcodeConfig;
|
||||
qr?: BarcodeConfig;
|
||||
qrMicro?: BarcodeConfig;
|
||||
code128?: BarcodeConfigWithLength;
|
||||
code93?: BarcodeConfigWithLength;
|
||||
code39?: Code39BarcodeConfig;
|
||||
codabar?: BarcodeConfigWithLength;
|
||||
code11?: Code11BarcodeConfig;
|
||||
msi?: MSIBarcodeConfig;
|
||||
upcA?: BarcodeConfig;
|
||||
upcE?: BarcodeConfig;
|
||||
upcE1?: BarcodeConfig;
|
||||
ean13?: BarcodeConfig;
|
||||
ean8?: BarcodeConfig;
|
||||
pdf417?: BarcodeConfig;
|
||||
pdf417Micro?: BarcodeConfig;
|
||||
datamatrix?: DatamatrixBarcodeConfig;
|
||||
code25?: BarcodeConfig;
|
||||
interleaved25?: BarcodeConfig;
|
||||
itf14?: BarcodeConfig;
|
||||
iata25?: BarcodeConfig;
|
||||
matrix25?: BarcodeConfig;
|
||||
datalogic25?: BarcodeConfig;
|
||||
coop25?: BarcodeConfig;
|
||||
code32?: BarcodeConfig;
|
||||
telepen?: BarcodeConfig;
|
||||
dotcode?: BarcodeConfig;
|
||||
general?: GeneralSettings;
|
||||
|
||||
constructor(config: Partial<DekoderConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
}
|
||||
|
||||
export class BarcodeConfig {
|
||||
enabled?: boolean;
|
||||
|
||||
constructor(config: Partial<BarcodeConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
}
|
||||
|
||||
export class BarcodeConfigWithLength {
|
||||
enabled?: boolean;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
|
||||
constructor(config: Partial<BarcodeConfigWithLength>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setLengthRange(minLength: number, maxLength: number) {
|
||||
this.minLength = minLength;
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
export class MSIBarcodeConfig {
|
||||
enabled?: boolean;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
checksum?: MsiChecksumType;
|
||||
|
||||
constructor(config: Partial<MSIBarcodeConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setLengthRange(minLength: number, maxLength: number) {
|
||||
this.minLength = minLength;
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
export class Code39BarcodeConfig {
|
||||
enabled?: boolean;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
checksum?: Code39ChecksumType;
|
||||
|
||||
constructor(config: Partial<Code39BarcodeConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setLengthRange(minLength: number, maxLength: number) {
|
||||
this.minLength = minLength;
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
export class Code11BarcodeConfig {
|
||||
enabled?: boolean;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
checksum?: Code11ChecksumType;
|
||||
|
||||
constructor(config: Partial<Code11BarcodeConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setLengthRange(minLength: number, maxLength: number) {
|
||||
this.minLength = minLength;
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
export class DatamatrixBarcodeConfig {
|
||||
enabled?: boolean;
|
||||
dpmMode?: number;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
|
||||
constructor(config: Partial<DatamatrixBarcodeConfig>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setLengthRange(minLength: number, maxLength: number) {
|
||||
this.minLength = minLength;
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
export class GeneralSettings {
|
||||
threadsLimit?: number;
|
||||
decodingSpeed?: DecodingSpeed;
|
||||
roiX?: number;
|
||||
roiY?: number;
|
||||
roiWidth?: number;
|
||||
roiHeight?: number;
|
||||
formattingType?: FormattingType;
|
||||
encodingCharacterSet?: string;
|
||||
maximumResultsCount?: number;
|
||||
duplicatesDelayMs?: number;
|
||||
multicodeCachingDuration?: number;
|
||||
multicodeCachingEnabled?: boolean;
|
||||
upcEanDeblur?: number;
|
||||
enableMisshaped1D?: number;
|
||||
|
||||
constructor(config: Partial<GeneralSettings>) {
|
||||
Object.assign(this, config);
|
||||
}
|
||||
|
||||
setROI(x: number, y: number, width: number, height: number): void {
|
||||
this.roiX = x;
|
||||
this.roiY = y;
|
||||
this.roiWidth = width;
|
||||
this.roiHeight = height;
|
||||
}
|
||||
}
|
||||
@@ -361,6 +361,29 @@ export class BLE extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request connection priority
|
||||
* Supported Platforms: Android
|
||||
* @usage
|
||||
*```
|
||||
* BLE.requestConnectionPriority('12:34:56:78:9A:BC', 'high').then(() => {
|
||||
* console.log('Connection priority set');
|
||||
* }, error => {
|
||||
* console.log('Could no set connection priority');
|
||||
* });
|
||||
* ```
|
||||
* @param {string} deviceId UUID or MAC address of the peripheral
|
||||
* @param {string} priority Connection priority can be one of:
|
||||
* "balanced" - (https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_BALANCED)
|
||||
* "high" - (https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_HIGH)
|
||||
* "low" - (https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_LOW_POWER)
|
||||
* @returns {Promise<any>} Returns a Promise.
|
||||
*/
|
||||
@Cordova()
|
||||
requestConnectionPriority(deviceId: string, priority: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh Device Cache
|
||||
* This method may fix a issue of old cached services and characteristics.
|
||||
@@ -564,6 +587,37 @@ export class BLE extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers to be notified when Location service state changes on the device.
|
||||
*
|
||||
* @usage
|
||||
* ```
|
||||
* ble.startLocationStateNotifications(success, failure);
|
||||
* // Or using await with promises
|
||||
* // Note, initial promise resolves or rejects depending on whether the subscribe was successful
|
||||
* await ble.withPromises.startLocationStateNotifications(success, failure)
|
||||
* ```
|
||||
* @returns {Observable<any>} Returns an Observable that notifies when Location is enabled or disabled on the device.
|
||||
*/
|
||||
@Cordova({
|
||||
observable: true,
|
||||
clearFunction: 'stopLocationStateNotifications',
|
||||
clearWithArgs: false,
|
||||
})
|
||||
startLocationStateNotifications(): Observable<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop location state notifications.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
stopLocationStateNotifications(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open System Bluetooth settings (Android only).
|
||||
*
|
||||
|
||||
@@ -63,6 +63,16 @@ export interface BluetoothClassicSerialPortDevice {
|
||||
})
|
||||
@Injectable()
|
||||
export class BluetoothClassicSerialPort extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Initialize
|
||||
*/
|
||||
@Cordova({
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
initialize(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to a Bluetooth device
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, CordovaProperty, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
import { AwesomeCordovaNativePlugin, Cordova, CordovaProperty, Plugin } from '@awesome-cordova-plugins/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
/* Available status of device */
|
||||
@@ -535,10 +535,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* Retrieved paired Bluetooth LE devices. In iOS, devices that are "paired" to will not return during a normal scan.
|
||||
* Callback is "instant" compared to a scan.
|
||||
* @param {{ services: string[] }} An array of service IDs to filter the retrieval by. If no service IDs are specified, no devices will be returned.
|
||||
* @returns {Promise<{ devices: DeviceInfo[] }>}
|
||||
* @returns {Promise<DeviceInfo[]>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
retrieveConnected(params?: { services?: string[] }): Promise<{ devices: DeviceInfo[] }> {
|
||||
retrieveConnected(params?: { services?: string[] }): Promise<DeviceInfo[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* Bond with a device.
|
||||
* The device doesn't need to be connected to initiate bonding. Android support only.
|
||||
* @param {{ address: string }} params The address/identifier provided by the scan's return object
|
||||
* @returns {(Observable<{ status: DeviceInfo }>)}
|
||||
* @returns {(Observable<DeviceInfo>)}
|
||||
* success:
|
||||
* The first success callback should always return with status == bonding.
|
||||
* If the bond is created, the callback will return again with status == bonded.
|
||||
@@ -557,7 +557,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* The callback that will be triggered when the bond operation fails
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse', observable: true })
|
||||
bond(params: { address: string }): Observable<{ status: DeviceInfo }> {
|
||||
bond(params: { address: string }): Observable<DeviceInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -566,12 +566,12 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* @param params.address
|
||||
* Unbond with a device. The device doesn't need to be connected to initiate bonding. Android support only.
|
||||
* @param {{address: string}} params The address/identifier
|
||||
* @returns {Promise<{ status: DeviceInfo }>}
|
||||
* @returns {Promise<DeviceInfo>}
|
||||
* success: The success callback should always return with status == unbonded, that is passed with device object
|
||||
* error: The callback that will be triggered when the unbond operation fails
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
unbond(params: { address: string }): Promise<{ status: DeviceInfo }> {
|
||||
unbond(params: { address: string }): Promise<DeviceInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -582,7 +582,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* @param connectError The callback that will be triggered when the connect operation fails
|
||||
* @param params The connection params
|
||||
* @param {ConnectionParams} params
|
||||
* @returns {(Observable<{ status: DeviceInfo }>)}
|
||||
* @returns {(Observable<DeviceInfo>)}
|
||||
* success: device object with status
|
||||
* error: The callback that will be triggered when the unbond operation fails
|
||||
*/
|
||||
@@ -670,10 +670,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* Discover the service's characteristics.
|
||||
* Not providing an array of characteristics will return all characteristics and take longer to discover. iOS support only.
|
||||
* @param {CharacteristicParams} params Characteristic params
|
||||
* @returns {Promise<{ characteristics: Characteristics }>} The service id and an Array of characteristics
|
||||
* @returns {Promise<Characteristics>} The service id and an Array of characteristics
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
characteristics(params: CharacteristicParams): Promise<{ characteristics: Characteristics }> {
|
||||
characteristics(params: CharacteristicParams): Promise<Characteristics> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -681,10 +681,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
* @name descriptors (iOS)
|
||||
* Discover the characteristic's descriptors. iOS support only.
|
||||
* @param {DescriptorParams} params
|
||||
* @returns {Promise<{ descriptors: Descriptors }>}
|
||||
* @returns {Promise<Descriptors>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
descriptors(params: DescriptorParams): Promise<{ descriptors: Descriptors }> {
|
||||
descriptors(params: DescriptorParams): Promise<Descriptors> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -929,6 +929,72 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name hasPermissionBtScan (useful only for Android 12+ / API 31+)
|
||||
* Determine whether scan privileges in Android API 31+
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ hasPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
hasPermissionBtScan(): Promise<{ hasPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name requestPermissionBtScan (useful only for Android 12+ / API 31)
|
||||
* Request scan privileges in Android API 31.
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ requestPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
requestPermissionBtScan(): Promise<{ requestPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name hasPermissionBtConnect (useful only for Android 12+ / API 31)
|
||||
* Determine if device has the permission to connect or not.
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ hasPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
hasPermissionBtConnect(): Promise<{ hasPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name requestPermissionBtConnect (useful only for Android 12+ / API 31)
|
||||
* Prompt permission settings page. requestPermissionBtConnect property returns whether connect permission has been granted or not.
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ requestPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
requestPermissionBtConnect(): Promise<{ requestPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name hasPermissionBtAdvertise (useful only for Android 12+ / API 31)
|
||||
* Determine if device has the permission to advertise or not.
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ hasPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
hasPermissionBtAdvertise(): Promise<{ hasPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name requestPermissionBtAdvertise (useful only for Android 12+ / API 31)
|
||||
* Prompt permission settings page. requestPermissionBtAdvertise property returns whether connect permission has been granted or not.
|
||||
* Will return an error if called on iOS or Android versions prior to 12.0.
|
||||
* @returns {Promise<{ requestPermission: boolean }>}
|
||||
*/
|
||||
@Cordova({ callbackOrder: 'reverse' })
|
||||
requestPermissionBtAdvertise(): Promise<{ requestPermission: boolean }> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name initializePeripheral
|
||||
* Initialize Bluetooth on the device. Must be called before anything else.
|
||||
|
||||
62
src/@awesome-cordova-plugins/plugins/brightness/index.ts
Normal file
62
src/@awesome-cordova-plugins/plugins/brightness/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name Brightness
|
||||
* @description
|
||||
* The Brightness plugin let you control the display brightness of your device.
|
||||
*
|
||||
* Requires Cordova plugin: `cordova-plugin-brightness`. For more info, please see the [Brightness plugin docs](https://github.com/mgcrea/cordova-plugin-brightness).
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Brightness } from '@awesome-cordova-plugins/brightness/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private brightness: Brightness) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* let brightnessValue = 0.8;
|
||||
* this.brightness.setBrightness(brightnessValue);
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Brightness',
|
||||
plugin: 'cordova-plugin-brightness',
|
||||
pluginRef: 'cordova.plugins.brightness',
|
||||
repo: 'https://github.com/mgcrea/cordova-plugin-brightness',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Brightness extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Sets the brightness of the display.
|
||||
* @param value {number} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness.
|
||||
* @returns {Promise<any>} Returns a Promise that resolves if setting brightness was successful.
|
||||
*/
|
||||
@Cordova()
|
||||
setBrightness(value: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the current brightness of the device display.
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with the
|
||||
* brightness value of the device display (floating number between 0 and 1).
|
||||
*/
|
||||
@Cordova()
|
||||
getBrightness(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Keeps the screen on. Prevents the device from setting the screen to sleep.
|
||||
* @param {boolean} value
|
||||
*/
|
||||
@Cordova()
|
||||
setKeepScreenOn(value: boolean): void {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -132,10 +132,10 @@ export enum Direction {
|
||||
* [Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add
|
||||
* ```xml
|
||||
* <config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
|
||||
* <string>You can take photos</string>
|
||||
* <string>You can take photos</string>
|
||||
* </config-file>
|
||||
* ```
|
||||
* inside of the <platform name='ios> section
|
||||
* inside of the `<platform name='ios>` section
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Camera, CameraOptions } from '@awesome-cordova-plugins/camera/ngx';
|
||||
|
||||
309
src/@awesome-cordova-plugins/plugins/cashfree-pg/index.ts
Normal file
309
src/@awesome-cordova-plugins/plugins/cashfree-pg/index.ts
Normal file
@@ -0,0 +1,309 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
export enum CFEnvironment {
|
||||
PRODUCTION = 'PRODUCTION',
|
||||
SANDBOX = 'SANDBOX',
|
||||
}
|
||||
|
||||
export class CFSession {
|
||||
payment_session_id: string;
|
||||
orderID: string;
|
||||
environment: string;
|
||||
|
||||
constructor(sessionID: string, orderID: string, environment: CFEnvironment) {
|
||||
if (sessionID === null || sessionID.trim() === '') {
|
||||
throw new Error('sessionID cannot be empty');
|
||||
}
|
||||
if (orderID === null || orderID.trim() === '') {
|
||||
throw new Error('orderID cannot be empty');
|
||||
}
|
||||
if (environment === null || environment.trim() === '') {
|
||||
throw new Error('environment cannot be empty');
|
||||
}
|
||||
this.payment_session_id = sessionID;
|
||||
this.orderID = orderID;
|
||||
this.environment = CFEnvironment[environment];
|
||||
}
|
||||
}
|
||||
|
||||
export enum CFPaymentModes {
|
||||
CARD = 'CARD',
|
||||
UPI = 'UPI',
|
||||
NB = 'NB',
|
||||
WALLET = 'WALLET',
|
||||
EMI = 'EMI',
|
||||
PAY_LATER = 'PAY_LATER',
|
||||
PAYPAL = 'PAYPAL',
|
||||
}
|
||||
|
||||
export interface CFPaymentComponent {
|
||||
hashset: Set<CFPaymentModes>;
|
||||
}
|
||||
|
||||
export class CFPaymentComponentBuilder {
|
||||
private hashset: Set<CFPaymentModes> = new Set<CFPaymentModes>();
|
||||
|
||||
private enableAllModes() {
|
||||
this.hashset.add(CFPaymentModes.CARD);
|
||||
this.hashset.add(CFPaymentModes.UPI);
|
||||
this.hashset.add(CFPaymentModes.NB);
|
||||
this.hashset.add(CFPaymentModes.WALLET);
|
||||
this.hashset.add(CFPaymentModes.EMI);
|
||||
this.hashset.add(CFPaymentModes.PAY_LATER);
|
||||
this.hashset.add(CFPaymentModes.PAYPAL);
|
||||
}
|
||||
|
||||
build(): CFPaymentComponent {
|
||||
if (this.hashset.size === 0) {
|
||||
this.enableAllModes();
|
||||
}
|
||||
return {
|
||||
hashset: this.hashset,
|
||||
};
|
||||
}
|
||||
|
||||
add(cfPaymentModes: CFPaymentModes) {
|
||||
this.hashset.add(cfPaymentModes);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
export interface CFTheme {
|
||||
navigationBarBackgroundColor: string;
|
||||
navigationBarTextColor: string;
|
||||
buttonBackgroundColor: string;
|
||||
buttonTextColor: string;
|
||||
backgroundColor: string;
|
||||
primaryTextColor: string;
|
||||
secondaryTextColor: string;
|
||||
}
|
||||
|
||||
export class CFThemeBuilder {
|
||||
private navigationBarBackgroundColor = '#6A3FD3';
|
||||
private navigationBarTextColor = '#FFFFFF';
|
||||
private buttonBackgroundColor = '#6A3FD3';
|
||||
private buttonTextColor = '#FFFFFF';
|
||||
private backgroundColor = '#FFFFFF';
|
||||
private primaryTextColor = '#11385b';
|
||||
private secondaryTextColor = '#808080';
|
||||
|
||||
setNavigationBarBackgroundColor(value: string) {
|
||||
this.navigationBarBackgroundColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setNavigationBarTextColor(value: string) {
|
||||
this.navigationBarTextColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setButtonBackgroundColor(value: string) {
|
||||
this.buttonBackgroundColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setButtonTextColor(value: string) {
|
||||
this.buttonTextColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setPrimaryTextColor(value: string) {
|
||||
this.primaryTextColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setSecondaryTextColor(value: string) {
|
||||
this.secondaryTextColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setBackgroundColor(value: string) {
|
||||
this.backgroundColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
build(): CFTheme {
|
||||
return {
|
||||
navigationBarBackgroundColor: this.navigationBarBackgroundColor,
|
||||
navigationBarTextColor: this.navigationBarTextColor,
|
||||
buttonBackgroundColor: this.buttonBackgroundColor,
|
||||
backgroundColor: this.backgroundColor,
|
||||
buttonTextColor: this.buttonTextColor,
|
||||
primaryTextColor: this.primaryTextColor,
|
||||
secondaryTextColor: this.secondaryTextColor,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export type CFWebTheme = CFTheme;
|
||||
|
||||
export class CFWebThemeBuilder {
|
||||
private navigationBarBackgroundColor = '#6A3FD3';
|
||||
private navigationBarTextColor = '#FFFFFF';
|
||||
|
||||
setNavigationBarBackgroundColor(value: string) {
|
||||
this.navigationBarBackgroundColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
setNavigationBarTextColor(value: string) {
|
||||
this.navigationBarTextColor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
build(): CFWebTheme {
|
||||
const cfTheme = new CFThemeBuilder().build();
|
||||
return {
|
||||
buttonBackgroundColor: cfTheme.buttonBackgroundColor,
|
||||
buttonTextColor: cfTheme.buttonTextColor,
|
||||
navigationBarBackgroundColor: this.navigationBarBackgroundColor,
|
||||
navigationBarTextColor: this.navigationBarBackgroundColor,
|
||||
secondaryTextColor: cfTheme.secondaryTextColor,
|
||||
backgroundColor: cfTheme.backgroundColor,
|
||||
primaryTextColor: cfTheme.buttonTextColor,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export interface CheckoutPayment {
|
||||
version: string;
|
||||
}
|
||||
|
||||
export class CFDropCheckoutPayment implements CheckoutPayment {
|
||||
private readonly session: CFSession;
|
||||
private readonly components: string[] = Array.from(new CFPaymentComponentBuilder().build().hashset);
|
||||
private readonly theme: CFTheme = new CFThemeBuilder().build();
|
||||
version: string;
|
||||
|
||||
constructor(session: CFSession, components: CFPaymentComponent | null, theme: CFTheme | null) {
|
||||
this.session = session;
|
||||
if (components !== null) {
|
||||
this.components = Array.from(components.hashset);
|
||||
}
|
||||
if (theme !== null) {
|
||||
this.theme = theme;
|
||||
}
|
||||
}
|
||||
|
||||
getSession() {
|
||||
return this.session;
|
||||
}
|
||||
|
||||
getComponents() {
|
||||
return this.components;
|
||||
}
|
||||
|
||||
getTheme() {
|
||||
return this.theme;
|
||||
}
|
||||
}
|
||||
|
||||
export class CFWebCheckoutPayment implements CheckoutPayment {
|
||||
private readonly session: CFSession;
|
||||
private readonly theme: CFWebTheme = new CFWebThemeBuilder().build();
|
||||
version: string;
|
||||
|
||||
constructor(session: CFSession, theme: CFWebTheme | null) {
|
||||
this.session = session;
|
||||
if (theme !== null) {
|
||||
this.theme = theme;
|
||||
}
|
||||
}
|
||||
|
||||
getSession() {
|
||||
return this.session;
|
||||
}
|
||||
|
||||
getTheme() {
|
||||
return this.theme;
|
||||
}
|
||||
}
|
||||
|
||||
export class CFUPIIntentCheckoutPayment implements CheckoutPayment {
|
||||
private readonly session: CFSession;
|
||||
private readonly theme: CFTheme = new CFThemeBuilder().build();
|
||||
version: string;
|
||||
|
||||
constructor(
|
||||
session: CFSession,
|
||||
theme: CFTheme | null
|
||||
) {
|
||||
this.session = session;
|
||||
if (theme !== null) {
|
||||
this.theme = theme;
|
||||
}
|
||||
}
|
||||
|
||||
getSession() {
|
||||
return this.session;
|
||||
}
|
||||
|
||||
getTheme() {
|
||||
return this.theme;
|
||||
}
|
||||
}
|
||||
|
||||
interface CFResult {
|
||||
orderID: string;
|
||||
}
|
||||
|
||||
interface CFError {
|
||||
orderID: string;
|
||||
status: string;
|
||||
message: string;
|
||||
code: string;
|
||||
type: string;
|
||||
}
|
||||
interface CFResult {
|
||||
orderID: string;
|
||||
}
|
||||
export interface CFCallback {
|
||||
onVerify: (result: CFResult) => void;
|
||||
onError: (error: CFError) => void;
|
||||
}
|
||||
|
||||
@Plugin({
|
||||
pluginName: 'CFPaymentGateway',
|
||||
plugin: 'cordova-plugin-cashfree-pg',
|
||||
pluginRef: 'CFPaymentGateway',
|
||||
repo: 'https://github.com/cashfree/cordova-plugin-cashfree',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class CFPaymentGateway extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Initiate Drop Payment.
|
||||
* @param {CFDropCheckoutPayment} [dropObject] dropPaymentObject information
|
||||
*/
|
||||
@Cordova()
|
||||
doDropPayment(dropObject: CFDropCheckoutPayment) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiate Web Checkout Payment.
|
||||
* @param {CFWebCheckoutPayment} [webCheckoutPayment] webCheckoutPaymentObject information
|
||||
*/
|
||||
@Cordova()
|
||||
doWebCheckoutPayment(webCheckoutPayment: CFWebCheckoutPayment) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiate UPI Checkout Payment.
|
||||
* @param {CFUPIIntentCheckoutPayment} [upiCheckoutPayment] webCheckoutPaymentObject information
|
||||
*/
|
||||
@Cordova()
|
||||
doUPIPayment(upiCheckoutPayment: CFUPIIntentCheckoutPayment) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Callback.
|
||||
* @param {CFCallback} [cfCallback] callbacks for payment.
|
||||
*/
|
||||
@Cordova()
|
||||
setCallback(cfCallback: CFCallback) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,24 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface ChooserOptions {
|
||||
mimeTypes?: string;
|
||||
maxFileSize?: number;
|
||||
}
|
||||
|
||||
export interface ChooserResult {
|
||||
data?: Uint8Array;
|
||||
dataURI?: string;
|
||||
mediaType: string;
|
||||
path: string;
|
||||
/**
|
||||
* without extension
|
||||
*/
|
||||
name: string;
|
||||
uri: string;
|
||||
/**
|
||||
* with extension
|
||||
*/
|
||||
displayName: string;
|
||||
mimeType: string;
|
||||
extension: string;
|
||||
size: number;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,32 +59,23 @@ export interface ChooserResult {
|
||||
pluginName: 'Chooser',
|
||||
plugin: 'cordova-plugin-chooser',
|
||||
pluginRef: 'chooser',
|
||||
repo: 'https://github.com/cyph/cordova-plugin-chooser',
|
||||
repo: 'https://github.com/MaximBelov/cordova-plugin-chooser',
|
||||
platforms: ['Android', 'iOS'],
|
||||
install: 'ionic cordova plugin add http://github.com/MaximBelov/cordova-plugin-chooser.git',
|
||||
})
|
||||
@Injectable()
|
||||
export class Chooser extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Displays native prompt for user to select a file.
|
||||
*
|
||||
* @param {string} [accept] Optional MIME type filter (e.g. 'image/gif,video/*').
|
||||
* @returns {Promise<any>} Promise containing selected file's raw binary data,
|
||||
* base64-encoded data: URI, MIME type, display name, and original URI.
|
||||
* @param {Object} options
|
||||
* @param {string} options.mimeTypes Optional MIME type filter (e.g. 'image/gif,video/*').
|
||||
* @param {string} options.maxFileSize Optional Max file size.
|
||||
* @returns {Promise<any>} Promise containing selected file's
|
||||
* data: MIME type, display name, and original URI.
|
||||
*/
|
||||
@Cordova()
|
||||
getFile(accept?: string): Promise<ChooserResult | undefined> {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Displays native prompt for user to select a file.
|
||||
*
|
||||
* @param {string} [accept] Optional MIME type filter (e.g. 'image/gif,video/*').
|
||||
* @returns {Promise<any>} Promise containing selected file's MIME type, display name, and original URI.
|
||||
* If user cancels, promise will be resolved as undefined.
|
||||
* If error occurs, promise will be rejected.
|
||||
*/
|
||||
@Cordova()
|
||||
getFileMetadata(accept?: string): Promise<ChooserResult | undefined> {
|
||||
getFile(options?: ChooserOptions): Promise<ChooserResult | undefined> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,6 +95,16 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this method to set a custom locale for the clevertap instance.
|
||||
* @param locale {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
setLocale(locale: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/*******************
|
||||
* Push
|
||||
******************/
|
||||
@@ -120,17 +130,6 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the device's Xiaomi push token
|
||||
*
|
||||
* @param token {string}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
setPushXiaomiToken(token: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the device's Baidu push token
|
||||
*
|
||||
@@ -342,6 +341,60 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the details of a specific event
|
||||
*
|
||||
* @param eventName {string} - The name of the event
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getUserEventLog(eventName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the count of times an event occurred
|
||||
*
|
||||
* @param eventName {string} - The name of the event
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getUserEventLogCount(eventName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get timestamp of user's last app visit
|
||||
*
|
||||
* @returns {Promise<any>} - Returns epoch seconds or -1
|
||||
*/
|
||||
@Cordova()
|
||||
getUserLastVisitTs(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total number of times the user has launched the app
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getUserAppLaunchCount(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get full event history for the current user
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getUserEventLogHistory(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserEventLog() instead
|
||||
* Get Event First Time
|
||||
*
|
||||
* @param eventName {string}
|
||||
@@ -354,6 +407,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserEventLog() instead
|
||||
* Get Event Last Time
|
||||
*
|
||||
* @param eventName {string}
|
||||
@@ -366,6 +420,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserEventLogCount() instead
|
||||
* Get Event Number of Occurrences
|
||||
*
|
||||
* @param eventName {string}
|
||||
@@ -378,6 +433,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* * @deprecated - Use getUserEventLog() instead
|
||||
* Get Event Details
|
||||
*
|
||||
* @param eventName {string}
|
||||
@@ -390,6 +446,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserEventLogHistory() instead
|
||||
* Get Event History
|
||||
* calls back with object {"eventName1":<event1 details object>, "eventName2":<event2 details object>}
|
||||
*
|
||||
@@ -652,6 +709,39 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all images and gifs which are preloaded for inapps in cs mode.
|
||||
*
|
||||
* @param expiredOnly {boolean} - to clear only assets which will not be needed further for inapps
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
clearInAppResources(expiredOnly: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all types of files which are preloaded for SDK features like custom in-app templates, app functions and variables etc.
|
||||
*
|
||||
* @param expiredOnly {boolean} - to clear only assets which will not be needed further for inapps
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
clearFileResources(expiredOnly: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches In Apps from server.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
fetchInApps(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/*******************
|
||||
* Session
|
||||
******************/
|
||||
@@ -668,6 +758,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserAppLaunchCount() instead
|
||||
* Get Session Total Visits
|
||||
* calls back with with int or -1
|
||||
*
|
||||
@@ -690,6 +781,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Use getUserLastVisitTs() instead
|
||||
* Get Session Previous Visit Time
|
||||
* calls back with with epoch seconds or -1
|
||||
*
|
||||
@@ -804,6 +896,17 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this method to delete bulk Inbox Messages for Given Message Ids
|
||||
*
|
||||
* @param messageIds {any} array of strings
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
deleteInboxMessagesForIds(messageIds: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to Mark Read Inbox Message For Id
|
||||
*
|
||||
@@ -815,6 +918,27 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to Mark Read Inbox Messages For Ids in bulk
|
||||
*
|
||||
* @param messageIds {any} array of strings
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
markReadInboxMessagesForIds(messageIds: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to dismiss Inbox
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
dismissInbox(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to Mark Push Inbox Notification Viewed Event for Id
|
||||
*
|
||||
@@ -881,6 +1005,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get Feature Flag for key
|
||||
*
|
||||
* @param key {string}
|
||||
@@ -893,6 +1018,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Set Defaults for Product Config
|
||||
*
|
||||
* @param defaults {any}
|
||||
@@ -904,6 +1030,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this for Product Config Fetch
|
||||
*
|
||||
* @param defaults {any}
|
||||
@@ -915,6 +1042,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this for Product Config Fetch with Min Interval
|
||||
*
|
||||
* @param timeInterval {number}
|
||||
@@ -926,6 +1054,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this for Product Config Activate
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
@@ -936,6 +1065,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this for Product Config Fetch and Activate
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
@@ -946,6 +1076,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to set Product Config Fetch with Min Interval
|
||||
*
|
||||
* @param timeInterval {number}
|
||||
@@ -957,6 +1088,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get Last Fetch Time Interval
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
@@ -967,6 +1099,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get String
|
||||
*
|
||||
* @param key {string}
|
||||
@@ -978,6 +1111,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get Boolean
|
||||
*
|
||||
* @param key {string}
|
||||
@@ -989,6 +1123,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get Long
|
||||
*
|
||||
* @param key {string}
|
||||
@@ -1000,6 +1135,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Get Double
|
||||
*
|
||||
* @param key {string}
|
||||
@@ -1011,6 +1147,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
|
||||
* Call this to Reset Product Config
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
@@ -1020,6 +1157,306 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* Product Experiences methods
|
||||
****************************/
|
||||
|
||||
/**
|
||||
*
|
||||
* Uploads variables to the server. Requires Development/Debug build/configuration.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
syncVariables(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uploads variables to the server.
|
||||
* @param {boolean} isProduction Provide `true` if variables must be sync in Productuon build/configuration.
|
||||
* @returns {Promise<any>}
|
||||
*
|
||||
*
|
||||
* Note: This is NO-OP in Android
|
||||
*/
|
||||
@Cordova()
|
||||
syncVariablesinProd(isProduction: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forces variables to update from the server.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
fetchVariables(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create variables.
|
||||
* @returns {Promise<any>}
|
||||
* @param {object} variables The JSON Object specifying the varibles to be created.
|
||||
*/
|
||||
@Cordova()
|
||||
defineVariables(variables: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create File Variable
|
||||
* @returns {Promise<any>}
|
||||
* @param {string} variable The String specifying the name of file varible to be created.
|
||||
*/
|
||||
@Cordova()
|
||||
defineFileVariable(variable: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a variable or a group for the specified name.
|
||||
* @param {string} name - name.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getVariable(name: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all variables via a JSON object.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
getVariables(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked when variables are initialised with server values. Will be called each time new values are fetched.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onVariablesChanged(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the value of the variable changes.
|
||||
* @param {name} string the name of the variable
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onValueChanged(name: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when the value of the file variable is downloaded and ready
|
||||
* @param {name} string the name of the variable
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onFileValueChanged(name: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked when variables are initialised with server values. Will be called only once on app start, or when added if server values are already received
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onOneTimeVariablesChanged(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked when no files need to be downloaded or all downloads have been completed. It is called each time new values are fetched and downloads are completed.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onVariablesChangedAndNoDownloadsPending(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked only once for when new values are fetched and downloaded
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
onceVariablesChangedAndNoDownloadsPending(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/****************************
|
||||
* Custom Templates methods
|
||||
****************************/
|
||||
|
||||
/**
|
||||
*
|
||||
* Uploads Custom in-app templates and app functions to the server. Requires Development/Debug build/configuration.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
syncCustomTemplates(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uploads Custom in-app templates and app functions to the server.
|
||||
* @param {boolean} isProduction Provide `true` if templates must be sync in Productuon build/configuration.
|
||||
* @returns {Promise<any>}
|
||||
*
|
||||
*
|
||||
* Note: This is NO-OP in Android
|
||||
*/
|
||||
@Cordova()
|
||||
syncCustomTemplatesInProd(isProduction: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify the SDK that an active custom template is dismissed. The active custom template is considered to be
|
||||
* visible to the user until this method is called. Since the SDK can show only one InApp message at a time, all
|
||||
* other messages will be queued until the current one is dismissed.
|
||||
* @param {string} templateName The name of the active template
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateSetDismissed(templateName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notify the SDK that an active custom template is presented to the user.
|
||||
* @param {string} templateName The name of the active template
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateSetPresented(templateName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger a custom template action argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the action is defined
|
||||
* @param {string} argName The action argument na
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateRunAction(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a string argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the argument is defined
|
||||
* @param {string} argName The action argument name
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateGetStringArg(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a number argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the argument is defined
|
||||
* @param {string} argName The action argument name
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateGetNumberArg(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a boolean argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the argument is defined
|
||||
* @param {string} argName The action argument name
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateGetBooleanArg(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a file argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the argument is defined
|
||||
* @param {string} argName The action argument name
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateGetFileArg(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve an object argument by name.
|
||||
*
|
||||
* @param {string} templateName The name of an active template for which the argument is defined
|
||||
* @param {string} argName The action argument name
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateGetObjectArg(templateName: string, argName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a string representation of an active's template context with information about all arguments.
|
||||
* @param {string} templateName The name of an active template
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
customTemplateContextToString(templateName: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* Android 13 Push Primer
|
||||
****************************/
|
||||
|
||||
/**
|
||||
* Method to prompt the push primer for android 13 onwards.
|
||||
* @param {object} value - key-value belongs to the localInApp properties. Refer documentation for details.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
promptPushPrimer(localInAppObject: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to prompt the hard permission dialog directly, if the push primer is not required.
|
||||
* @param {string} showFallbackSettings - If the value is true then SDK shows an alert dialog which routes to app's notification settings page.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
promptForPushPermission(showFallbackSettings: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true/false based on whether push permission is granted or denied.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
isPushPermissionGranted(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/*******************
|
||||
* Developer Options
|
||||
******************/
|
||||
|
||||
@@ -29,10 +29,11 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'CloudSettings',
|
||||
plugin: 'cordova-plugin-cloud-settings',
|
||||
plugin: '@marysuon/cordova-plugin-cloud-settings',
|
||||
pluginRef: 'cordova.plugin.cloudsettings',
|
||||
repo: 'https://github.com/dpa99c/cordova-plugin-cloud-settings',
|
||||
install: 'ionic cordova plugin add cordova-plugin-cloud-settings --variable ANDROID_BACKUP_SERVICE_KEY=myapikey',
|
||||
install:
|
||||
'ionic cordova plugin add @marysuon/cordova-plugin-cloud-settings --variable ANDROID_BACKUP_SERVICE_KEY=myapikey',
|
||||
installVariables: ['ANDROID_BACKUP_SERVICE_KEY'],
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
|
||||
403
src/@awesome-cordova-plugins/plugins/contacts/index.ts
Normal file
403
src/@awesome-cordova-plugins/plugins/contacts/index.ts
Normal file
@@ -0,0 +1,403 @@
|
||||
import {
|
||||
CordovaCheck,
|
||||
CordovaInstance,
|
||||
InstanceCheck,
|
||||
InstanceProperty,
|
||||
AwesomeCordovaNativePlugin,
|
||||
Plugin,
|
||||
checkAvailability,
|
||||
getPromise,
|
||||
} from '@awesome-cordova-plugins/core';
|
||||
|
||||
declare const window: any, navigator: any;
|
||||
|
||||
export type ContactFieldType =
|
||||
| '*'
|
||||
| 'addresses'
|
||||
| 'birthday'
|
||||
| 'categories'
|
||||
| 'country'
|
||||
| 'department'
|
||||
| 'displayName'
|
||||
| 'emails'
|
||||
| 'name.familyName'
|
||||
| 'name.formatted'
|
||||
| 'name.givenName'
|
||||
| 'name.honorificPrefix'
|
||||
| 'name.honorificSuffix'
|
||||
| 'id'
|
||||
| 'ims'
|
||||
| 'locality'
|
||||
| 'name.middleName'
|
||||
| 'name'
|
||||
| 'nickname'
|
||||
| 'note'
|
||||
| 'organizations'
|
||||
| 'phoneNumbers'
|
||||
| 'photos'
|
||||
| 'postalCode'
|
||||
| 'region'
|
||||
| 'streetAddress'
|
||||
| 'title'
|
||||
| 'urls';
|
||||
|
||||
export interface IContactProperties {
|
||||
/** A globally unique identifier. */
|
||||
id?: string;
|
||||
|
||||
/** A globally unique identifier on Android. */
|
||||
rawId?: string;
|
||||
|
||||
/** The name of this Contact, suitable for display to end users. */
|
||||
displayName?: string;
|
||||
|
||||
/** An object containing all components of a persons name. */
|
||||
name?: IContactName;
|
||||
|
||||
/** A casual name by which to address the contact. */
|
||||
nickname?: string;
|
||||
|
||||
/** An array of all the contact's phone numbers. */
|
||||
phoneNumbers?: IContactField[];
|
||||
|
||||
/** An array of all the contact's email addresses. */
|
||||
emails?: IContactField[];
|
||||
|
||||
/** An array of all the contact's addresses. */
|
||||
addresses?: IContactAddress[];
|
||||
|
||||
/** An array of all the contact's IM addresses. */
|
||||
ims?: IContactField[];
|
||||
|
||||
/** An array of all the contact's organizations. */
|
||||
organizations?: IContactOrganization[];
|
||||
|
||||
/** The birthday of the contact. */
|
||||
birthday?: Date;
|
||||
|
||||
/** A note about the contact. */
|
||||
note?: string;
|
||||
|
||||
/** An array of the contact's photos. */
|
||||
photos?: IContactField[];
|
||||
|
||||
/** An array of all the user-defined categories associated with the contact. */
|
||||
categories?: IContactField[];
|
||||
|
||||
/** An array of web pages associated with the contact. */
|
||||
urls?: IContactField[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class Contact implements IContactProperties {
|
||||
@InstanceProperty() id: string;
|
||||
@InstanceProperty() displayName: string;
|
||||
@InstanceProperty() name: IContactName;
|
||||
@InstanceProperty() nickname: string;
|
||||
@InstanceProperty() phoneNumbers: IContactField[];
|
||||
@InstanceProperty() emails: IContactField[];
|
||||
@InstanceProperty() addresses: IContactAddress[];
|
||||
@InstanceProperty() ims: IContactField[];
|
||||
@InstanceProperty() organizations: IContactOrganization[];
|
||||
@InstanceProperty() birthday: Date;
|
||||
@InstanceProperty() note: string;
|
||||
@InstanceProperty() photos: IContactField[];
|
||||
@InstanceProperty() categories: IContactField[];
|
||||
@InstanceProperty() urls: IContactField[];
|
||||
private _objectInstance: any;
|
||||
|
||||
[key: string]: any;
|
||||
|
||||
constructor() {
|
||||
if (checkAvailability('navigator.contacts', 'create', 'Contacts') === true) {
|
||||
this._objectInstance = navigator.contacts.create();
|
||||
}
|
||||
}
|
||||
|
||||
@InstanceCheck()
|
||||
clone(): Contact {
|
||||
const newContact: any = new Contact();
|
||||
for (const prop in this) {
|
||||
if (prop === 'id') return;
|
||||
newContact[prop] = this[prop];
|
||||
}
|
||||
return newContact;
|
||||
}
|
||||
|
||||
@CordovaInstance()
|
||||
remove(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@InstanceCheck()
|
||||
save(): Promise<any> {
|
||||
return getPromise((resolve: Function, reject: Function) => {
|
||||
this._objectInstance.save((contact: any) => {
|
||||
this._objectInstance = contact;
|
||||
resolve(this);
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface IContactError {
|
||||
/** Error code */
|
||||
code: number;
|
||||
/** Error message */
|
||||
message: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export declare const ContactError: {
|
||||
new (code: number): IContactError;
|
||||
UNKNOWN_ERROR: number;
|
||||
INVALID_ARGUMENT_ERROR: number;
|
||||
TIMEOUT_ERROR: number;
|
||||
PENDING_OPERATION_ERROR: number;
|
||||
IO_ERROR: number;
|
||||
NOT_SUPPORTED_ERROR: number;
|
||||
PERMISSION_DENIED_ERROR: number;
|
||||
};
|
||||
|
||||
export interface IContactName {
|
||||
/** The complete name of the contact. */
|
||||
formatted?: string;
|
||||
/** The contact's family name. */
|
||||
familyName?: string;
|
||||
/** The contact's given name. */
|
||||
givenName?: string;
|
||||
/** The contact's middle name. */
|
||||
middleName?: string;
|
||||
/** The contact's prefix (example Mr. or Dr.) */
|
||||
honorificPrefix?: string;
|
||||
/** The contact's suffix (example Esq.). */
|
||||
honorificSuffix?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class ContactName implements IContactName {
|
||||
constructor(
|
||||
public formatted?: string,
|
||||
public familyName?: string,
|
||||
public givenName?: string,
|
||||
public middleName?: string,
|
||||
public honorificPrefix?: string,
|
||||
public honorificSuffix?: string
|
||||
) {}
|
||||
}
|
||||
|
||||
export interface IContactField {
|
||||
/** A string that indicates what type of field this is, home for example. */
|
||||
type?: string;
|
||||
/** The value of the field, such as a phone number or email address. */
|
||||
value?: string;
|
||||
/** Set to true if this ContactField contains the user's preferred value. */
|
||||
pref?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class ContactField implements IContactField {
|
||||
constructor(public type?: string, public value?: string, public pref?: boolean) {}
|
||||
}
|
||||
|
||||
export interface IContactAddress {
|
||||
/** Set to true if this ContactAddress contains the user's preferred value. */
|
||||
pref?: boolean;
|
||||
/** A string indicating what type of field this is, home for example. */
|
||||
type?: string;
|
||||
/** The full address formatted for display. */
|
||||
formatted?: string;
|
||||
/** The full street address. */
|
||||
streetAddress?: string;
|
||||
/** The city or locality. */
|
||||
locality?: string;
|
||||
/** The state or region. */
|
||||
region?: string;
|
||||
/** The zip code or postal code. */
|
||||
postalCode?: string;
|
||||
/** The country name. */
|
||||
country?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class ContactAddress implements IContactAddress {
|
||||
constructor(
|
||||
public pref?: boolean,
|
||||
public type?: string,
|
||||
public formatted?: string,
|
||||
public streetAddress?: string,
|
||||
public locality?: string,
|
||||
public region?: string,
|
||||
public postalCode?: string,
|
||||
public country?: string
|
||||
) {}
|
||||
}
|
||||
|
||||
export interface IContactOrganization {
|
||||
/** Set to true if this ContactOrganization contains the user's preferred value. */
|
||||
pref?: boolean;
|
||||
/** A string that indicates what type of field this is, home for example. */
|
||||
type?: string;
|
||||
/** The name of the organization. */
|
||||
name?: string;
|
||||
/** The department the contract works for. */
|
||||
department?: string;
|
||||
/** The contact's title at the organization. */
|
||||
title?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class ContactOrganization implements IContactOrganization {
|
||||
constructor(
|
||||
public type?: string,
|
||||
public name?: string,
|
||||
public department?: string,
|
||||
public title?: string,
|
||||
public pref?: boolean
|
||||
) {}
|
||||
}
|
||||
|
||||
/** Search options to filter navigator.contacts. */
|
||||
export interface IContactFindOptions {
|
||||
/** The search string used to find navigator.contacts. */
|
||||
filter?: string;
|
||||
/** Determines if the find operation returns multiple navigator.contacts. Defaults to false. */
|
||||
multiple?: boolean;
|
||||
/** Contact fields to be returned back. If specified, the resulting Contact object only features values for these fields. */
|
||||
desiredFields?: string[];
|
||||
/**
|
||||
* (Android only): Filters the search to only return contacts with a phone number informed.
|
||||
*/
|
||||
hasPhoneNumber?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export class ContactFindOptions implements IContactFindOptions {
|
||||
constructor(
|
||||
public filter?: string,
|
||||
public multiple?: boolean,
|
||||
public desiredFields?: string[],
|
||||
public hasPhoneNumber?: boolean
|
||||
) {}
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Contacts
|
||||
* @premier contacts
|
||||
* @description
|
||||
* Access and manage Contacts on the device.
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
* ```typescript
|
||||
* import { Contacts, Contact, ContactField, ContactName } from '@ionic-native/contacts/ngx';
|
||||
*
|
||||
* constructor(private contacts: Contacts) { }
|
||||
*
|
||||
* let contact: Contact = this.contacts.create();
|
||||
*
|
||||
* contact.name = new ContactName(null, 'Smith', 'John');
|
||||
* contact.phoneNumbers = [new ContactField('mobile', '6471234567')];
|
||||
* contact.save().then(
|
||||
* () => console.log('Contact saved!', contact),
|
||||
* (error: any) => console.error('Error saving contact.', error)
|
||||
* );
|
||||
*
|
||||
* ```
|
||||
* @classes
|
||||
* Contact
|
||||
* @interfaces
|
||||
* IContactProperties
|
||||
* IContactError
|
||||
* IContactName
|
||||
* IContactField
|
||||
* IContactAddress
|
||||
* IContactOrganization
|
||||
* IContactFindOptions
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Contacts',
|
||||
plugin: 'cordova-plugin-contacts',
|
||||
pluginRef: 'navigator.contacts',
|
||||
repo: 'https://github.com/herdwatch-apps/cordova-plugin-contacts',
|
||||
platforms: [
|
||||
'Android',
|
||||
'BlackBerry 10',
|
||||
'Browser',
|
||||
'Firefox OS',
|
||||
'iOS',
|
||||
'Ubuntu',
|
||||
'Windows',
|
||||
'Windows 8',
|
||||
'Windows Phone',
|
||||
],
|
||||
})
|
||||
export class Contacts extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Create a single contact.
|
||||
* @returns {Contact} Returns a Contact object
|
||||
*/
|
||||
create(): Contact {
|
||||
return new Contact();
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for contacts in the Contacts list.
|
||||
* @param {ContactFieldType[]} fields Contact fields to be used as a search qualifier
|
||||
* @param {IContactFindOptions} [options] Optional options for the query
|
||||
* @returns {Promise<Contact[]>} Returns a Promise that resolves with the search results (an array of Contact objects)
|
||||
*/
|
||||
@CordovaCheck()
|
||||
find(fields: ContactFieldType[], options?: IContactFindOptions): Promise<Contact[]> {
|
||||
return getPromise((resolve: Function, reject: Function) => {
|
||||
navigator.contacts.find(
|
||||
fields,
|
||||
(contacts: any[]) => {
|
||||
resolve(contacts.map(processContact));
|
||||
},
|
||||
reject,
|
||||
options
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Select a single Contact.
|
||||
* @returns {Promise<Contact>} Returns a Promise that resolves with the selected Contact
|
||||
*/
|
||||
@CordovaCheck()
|
||||
pickContact(): Promise<Contact> {
|
||||
return getPromise((resolve: Function, reject: Function) => {
|
||||
navigator.contacts.pickContact((contact: any) => resolve(processContact(contact)), reject);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function processContact(contact: any) {
|
||||
const newContact = new Contact();
|
||||
for (const prop in contact) {
|
||||
if (typeof contact[prop] === 'function') continue;
|
||||
newContact[prop] = contact[prop];
|
||||
}
|
||||
return newContact;
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface CropOption {
|
||||
/** The resulting JPEG quality (ignored on Android). default: 100 */
|
||||
quality?: number;
|
||||
|
||||
/** The resulting JPEG picture width. default: -1 */
|
||||
targetWidth?: number;
|
||||
|
||||
/** The resulting JPEG picture height. default: -1 */
|
||||
targetHeight?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Crop Plugin Privacy
|
||||
* @description
|
||||
* This plugin does something
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { CropPluginPrivacy } from '@awesome-cordova-plugins/crop-plugin-privacy/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private cropPluginPrivacy: CropPluginPrivacy) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.cropPluginPrivacy.functionName('/path/to/image', { quality: 100, targetWidth: 1, targetHeight: 1 })
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'CropPluginPrivacy',
|
||||
plugin: 'cordova-plugin-crop-privacy',
|
||||
pluginRef: 'crop',
|
||||
repo: 'https://github.com/BaraAksayeth25/cordova-plugin-crop-privacy',
|
||||
platforms: ['Android']
|
||||
})
|
||||
@Injectable()
|
||||
export class CropPluginPrivacy extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* This function does something
|
||||
* @param arg1 {string} path destination
|
||||
* @param arg2 {object} Cropping configuration
|
||||
* @return {Promise<any>} return the file path
|
||||
*/
|
||||
@Cordova()
|
||||
cropImage(arg1: string, arg2: CropOption): Promise<any> {
|
||||
return; // We add return; here to avoid any IDE / Compiler errors
|
||||
}
|
||||
|
||||
}
|
||||
@@ -62,4 +62,12 @@ export class Device extends AwesomeCordovaNativePlugin {
|
||||
/** Get the device hardware serial number. */
|
||||
@CordovaProperty()
|
||||
serial: string;
|
||||
|
||||
/** Get the Android device's SDK version. (Android-only) */
|
||||
@CordovaProperty()
|
||||
sdkVersion?: string;
|
||||
|
||||
/** Detect if app is running on a macOS desktop with Apple Silicon. */
|
||||
@CordovaProperty()
|
||||
isiOSAppOnMac: string;
|
||||
}
|
||||
|
||||
@@ -42,30 +42,46 @@ import { Cordova, CordovaProperty, AwesomeCordovaNativePlugin, Plugin } from '@a
|
||||
@Injectable()
|
||||
export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
permission = {
|
||||
READ_CALENDAR: 'READ_CALENDAR',
|
||||
WRITE_CALENDAR: 'WRITE_CALENDAR',
|
||||
CAMERA: 'CAMERA',
|
||||
READ_CONTACTS: 'READ_CONTACTS',
|
||||
WRITE_CONTACTS: 'WRITE_CONTACTS',
|
||||
GET_ACCOUNTS: 'GET_ACCOUNTS',
|
||||
ACCESS_FINE_LOCATION: 'ACCESS_FINE_LOCATION',
|
||||
ACCEPT_HANDOVER: 'ACCEPT_HANDOVER',
|
||||
ACCESS_BACKGROUND_LOCATION: 'ACCESS_BACKGROUND_LOCATION',
|
||||
ACCESS_COARSE_LOCATION: 'ACCESS_COARSE_LOCATION',
|
||||
RECORD_AUDIO: 'RECORD_AUDIO',
|
||||
READ_PHONE_STATE: 'READ_PHONE_STATE',
|
||||
CALL_PHONE: 'CALL_PHONE',
|
||||
ACCESS_FINE_LOCATION: 'ACCESS_FINE_LOCATION',
|
||||
ACCESS_MEDIA_LOCATION: 'ACCESS_MEDIA_LOCATION',
|
||||
ACTIVITY_RECOGNITION: 'ACTIVITY_RECOGNITION',
|
||||
ADD_VOICEMAIL: 'ADD_VOICEMAIL',
|
||||
USE_SIP: 'USE_SIP',
|
||||
PROCESS_OUTGOING_CALLS: 'PROCESS_OUTGOING_CALLS',
|
||||
READ_CALL_LOG: 'READ_CALL_LOG',
|
||||
WRITE_CALL_LOG: 'WRITE_CALL_LOG',
|
||||
SEND_SMS: 'SEND_SMS',
|
||||
RECEIVE_SMS: 'RECEIVE_SMS',
|
||||
READ_SMS: 'READ_SMS',
|
||||
RECEIVE_WAP_PUSH: 'RECEIVE_WAP_PUSH',
|
||||
RECEIVE_MMS: 'RECEIVE_MMS',
|
||||
WRITE_EXTERNAL_STORAGE: 'WRITE_EXTERNAL_STORAGE',
|
||||
READ_EXTERNAL_STORAGE: 'READ_EXTERNAL_STORAGE',
|
||||
ANSWER_PHONE_CALLS: 'ANSWER_PHONE_CALLS',
|
||||
BLUETOOTH_ADVERTISE: 'BLUETOOTH_ADVERTISE',
|
||||
BLUETOOTH_CONNECT: 'BLUETOOTH_CONNECT',
|
||||
BLUETOOTH_SCAN: 'BLUETOOTH_SCAN',
|
||||
BODY_SENSORS: 'BODY_SENSORS',
|
||||
BODY_SENSORS_BACKGROUND: 'BODY_SENSORS_BACKGROUND',
|
||||
CALL_PHONE: 'CALL_PHONE',
|
||||
CAMERA: 'CAMERA',
|
||||
GET_ACCOUNTS: 'GET_ACCOUNTS',
|
||||
NEARBY_WIFI_DEVICES: 'NEARBY_WIFI_DEVICES',
|
||||
POST_NOTIFICATIONS: 'POST_NOTIFICATIONS',
|
||||
PROCESS_OUTGOING_CALLS: 'PROCESS_OUTGOING_CALLS',
|
||||
READ_CALENDAR: 'READ_CALENDAR',
|
||||
READ_CALL_LOG: 'READ_CALL_LOG',
|
||||
READ_CONTACTS: 'READ_CONTACTS',
|
||||
READ_EXTERNAL_STORAGE: 'READ_EXTERNAL_STORAGE',
|
||||
READ_MEDIA_AUDIO: 'READ_MEDIA_AUDIO',
|
||||
READ_MEDIA_IMAGES: 'READ_MEDIA_IMAGES',
|
||||
READ_MEDIA_VIDEO: 'READ_MEDIA_VIDEO',
|
||||
READ_PHONE_NUMBERS: 'READ_PHONE_NUMBERS',
|
||||
READ_PHONE_STATE: 'READ_PHONE_STATE',
|
||||
READ_SMS: 'READ_SMS',
|
||||
RECEIVE_MMS: 'RECEIVE_MMS',
|
||||
RECEIVE_SMS: 'RECEIVE_SMS',
|
||||
RECEIVE_WAP_PUSH: 'RECEIVE_WAP_PUSH',
|
||||
RECORD_AUDIO: 'RECORD_AUDIO',
|
||||
SEND_SMS: 'SEND_SMS',
|
||||
USE_SIP: 'USE_SIP',
|
||||
UWB_RANGING: 'UWB_RANGING',
|
||||
WRITE_CALENDAR: 'WRITE_CALENDAR',
|
||||
WRITE_CALL_LOG: 'WRITE_CALL_LOG',
|
||||
WRITE_CONTACTS: 'WRITE_CONTACTS',
|
||||
WRITE_EXTERNAL_STORAGE: 'WRITE_EXTERNAL_STORAGE',
|
||||
};
|
||||
|
||||
@CordovaProperty()
|
||||
@@ -80,6 +96,9 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
DENIED_ALWAYS: string;
|
||||
RESTRICTED: string;
|
||||
GRANTED_WHEN_IN_USE: string;
|
||||
EPHEMERAL: string;
|
||||
PROVISIONAL: string;
|
||||
LIMITED: string;
|
||||
};
|
||||
|
||||
locationAuthorizationMode = {
|
||||
@@ -88,12 +107,11 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
};
|
||||
|
||||
/**
|
||||
* iOS ONLY
|
||||
* Location accuracy authorization
|
||||
*/
|
||||
locationAccuracyAuthorization: {
|
||||
FULL: 'full';
|
||||
REDUCED: 'reduced';
|
||||
locationAccuracyAuthorization = {
|
||||
FULL: 'full',
|
||||
REDUCED: 'reduced',
|
||||
};
|
||||
|
||||
permissionGroups = {
|
||||
@@ -114,6 +132,7 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
SENSORS: ['BODY_SENSORS'],
|
||||
SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'],
|
||||
STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'],
|
||||
NEARBY_DEVICES: ["BLUETOOTH_ADVERTISE", "BLUETOOTH_SCAN", "BLUETOOTH_CONNECT"],
|
||||
};
|
||||
|
||||
locationMode = {
|
||||
@@ -143,6 +162,25 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
POWERING_OFF: string;
|
||||
};
|
||||
|
||||
@CordovaProperty()
|
||||
cpuArchitecture: {
|
||||
MIPS: string;
|
||||
MIPS_64: string;
|
||||
UNKNOWN: string;
|
||||
ARMv6: string;
|
||||
ARMv7: string;
|
||||
ARMv8: string;
|
||||
X86: string;
|
||||
X86_64: string;
|
||||
};
|
||||
|
||||
@CordovaProperty()
|
||||
remoteNotificationType: {
|
||||
ALERT: string;
|
||||
SOUND: string;
|
||||
BADGE: string;
|
||||
};
|
||||
|
||||
@CordovaProperty()
|
||||
motionStatus: {
|
||||
NOT_REQUESTED: string;
|
||||
@@ -154,6 +192,18 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
UNKNOWN: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Access to the photo library (iOS 14+)
|
||||
*
|
||||
* ADD_ONLY - can add to but not read from Photo Library
|
||||
* READ_WRITE - can both add to and read from Photo Library
|
||||
*
|
||||
*/
|
||||
photoLibraryAccessLevel = {
|
||||
ADD_ONLY: 'add_only',
|
||||
READ_WRITE: 'read_write',
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if app is able to access device location.
|
||||
*
|
||||
@@ -257,8 +307,18 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// ANDROID AND IOS ONLY
|
||||
|
||||
/**
|
||||
* Enables debug mode, which logs native plugin debug messages to the native and JS consoles.
|
||||
* Debug mode is initially disabled on plugin initialisation.
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'] })
|
||||
enableDebug(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the device setting for location is on. On Android this returns true if Location Mode is switched on. On iOS this returns true if Location Services is switched on.
|
||||
*
|
||||
@@ -290,15 +350,27 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the individual location authorization status for each type of location access (FINE, COARSE and BACKGROUND).
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'] })
|
||||
getLocationAuthorizationStatuses(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the location authorization status for the application.
|
||||
* Note for Android: this is intended for Android 6 / API 23 and above. Calling on Android 5 / API 22 and below will always return GRANTED status as permissions are already granted at installation time.
|
||||
*
|
||||
* @param {string} [mode] iOS only: location authorization mode: "always" or "when_in_use". If not specified, defaults to "when_in_use".
|
||||
* @param {string} [mode] location authorization mode: "always" or "when_in_use". If not specified, defaults to "when_in_use". (this.locationAuthorizationMode)
|
||||
* @param {string} [accuracy] requested location accuracy: "full" or "reduced". If not specified, defaults to "full". (this.locationAccuracyAuthorization)
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' })
|
||||
requestLocationAuthorization(mode?: string): Promise<any> {
|
||||
requestLocationAuthorization(mode?: string, accuracy?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -498,8 +570,42 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
@Cordova({ platforms: ['Android', 'iOS'], sync: true })
|
||||
registerLocationStateChangeHandler(handler: Function): void {}
|
||||
|
||||
/**
|
||||
* Returns CPU architecture of the current device.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'] })
|
||||
getArchitecture(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current battery level of the device as a percentage.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'] })
|
||||
getCurrentBatteryLevel(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
// ANDROID ONLY
|
||||
|
||||
/**
|
||||
* Restarts the application.
|
||||
* By default, a "warm" restart will be performed in which the main Cordova activity is immediately restarted, causing the Webview instance to be recreated.
|
||||
* However, if the `cold` parameter is set to true, then the application will be "cold" restarted, meaning a system exit will be performed, causing the entire application to be restarted.
|
||||
* This is useful if you want to fully reset the native application state but will cause the application to briefly disappear and re-appear..
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'], callbackOrder: 'reverse' })
|
||||
restart(cold: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks if high-accuracy locations are available to the app from GPS hardware.
|
||||
* Returns true if Location mode is enabled and is set to "Device only" or "High accuracy" AND if the app is authorized to use location.
|
||||
@@ -548,6 +654,26 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if airplane mode is enabled on device.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'] })
|
||||
isAirplaneModeEnabled(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if mobile data is enabled on device.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'] })
|
||||
isMobileDataEnabled(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current location mode setting for the device.
|
||||
*
|
||||
@@ -558,6 +684,26 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns details of the OS of the device on which the app is currently running
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'] })
|
||||
getDeviceOSVersion(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns details of the SDK levels used to build the app.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'] })
|
||||
getBuildOSVersion(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current authorization status for a given permission.
|
||||
* Note: this is intended for Android 6 / API 23 and above. Calling on Android 5 / API 22 and below will always return GRANTED status as permissions are already granted at installation time.
|
||||
@@ -671,6 +817,27 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Bluetooth authorization status of the application on the device.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'] })
|
||||
getBluetoothAuthorizationStatus(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the individual authorization status for each Bluetooth run-time permission on Android 12+ / API 31+
|
||||
* On Android 11 / API 30 and below, all will be returned as GRANTED if the manifest has BLUETOOTH since they are implicitly granted at build-time.
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android'] })
|
||||
getBluetoothAuthorizationStatuses(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the application is authorized to use external storage.
|
||||
*
|
||||
@@ -814,20 +981,34 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Checks if the application is authorized to use the Camera Roll in Photos app.
|
||||
*
|
||||
* @param accessLevel - (optional) On iOS 14+, specifies the level of access to the photo library to query as a constant in cordova.plugins.diagnostic.photoLibraryAccessLevel`
|
||||
* Possible values are:
|
||||
* ADD_ONLY - can add to but not read from Photo Library
|
||||
* READ_WRITE - can both add to and read from Photo Library
|
||||
* Defaults to ADD_ONLY if not specified
|
||||
* Has no effect on iOS 13 or below
|
||||
*
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
isCameraRollAuthorized(): Promise<boolean> {
|
||||
@Cordova({ platforms: ['iOS'], callbackOrder: 'reverse' })
|
||||
isCameraRollAuthorized(accessLevel?: string): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the authorization status for the application to use the Camera Roll in Photos app.
|
||||
*
|
||||
* @param accessLevel - (optional) On iOS 14+, specifies the level of access to the photo library to query as a constant in cordova.plugins.diagnostic.photoLibraryAccessLevel`
|
||||
* Possible values are:
|
||||
* ADD_ONLY - can add to but not read from Photo Library
|
||||
* READ_WRITE - can both add to and read from Photo Library
|
||||
* Defaults to ADD_ONLY if not specified
|
||||
* Has no effect on iOS 13 or below
|
||||
*
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
getCameraRollAuthorizationStatus(): Promise<string> {
|
||||
@Cordova({ platforms: ['iOS'], callbackOrder: 'reverse' })
|
||||
getCameraRollAuthorizationStatus(accessLevel?: string): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -836,10 +1017,27 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
* Should only be called if authorization status is NOT_REQUESTED.
|
||||
* Calling it when in any other state will have no effect.
|
||||
*
|
||||
* @param accessLevel - (optional) On iOS 14+, specifies the level of access to the photo library to query as a constant in cordova.plugins.diagnostic.photoLibraryAccessLevel`
|
||||
* Possible values are:
|
||||
* ADD_ONLY - can add to but not read from Photo Library
|
||||
* READ_WRITE - can both add to and read from Photo Library
|
||||
* Defaults to ADD_ONLY if not specified
|
||||
* Has no effect on iOS 13 or below
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'], callbackOrder: 'reverse' })
|
||||
requestCameraRollAuthorization(accessLevel?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Presents limited library picker UI on iOS 14+
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
requestCameraRollAuthorization(): Promise<any> {
|
||||
presentLimitedLibraryPicker(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1006,13 +1204,13 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the location accuracy authorization for the application on iOS 14+. Note: calling on iOS <14 will result in the Promise being rejected.
|
||||
* Returns the location accuracy authorization for the application on iOS 14+ and Android 12+. Note: calling on iOS <14 or Android <12 will always return cordova.plugins.diagnostic.locationAccuracyAuthorization.FULL
|
||||
*
|
||||
* Learn more about this method [here](https://github.com/dpa99c/cordova-diagnostic-plugin#getlocationaccuracyauthorization)
|
||||
*
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@Cordova({ platform: ['iOS'] })
|
||||
@Cordova({ platforms: ['iOS', 'Android'] })
|
||||
getLocationAccuracyAuthorization(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export interface DocumentScannerOptions {
|
||||
* This plugin processes images of documents, compensating for perspective.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { DocumentScanner, DocumentScannerOptions } from '@awesome-cordova-plugins/document-scanner';
|
||||
* import { DocumentScanner, DocumentScannerOptions } from '@awesome-cordova-plugins/document-scanner/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private documentScanner: DocumentScanner) { }
|
||||
|
||||
115
src/@awesome-cordova-plugins/plugins/downloader/index.ts
Normal file
115
src/@awesome-cordova-plugins/plugins/downloader/index.ts
Normal file
@@ -0,0 +1,115 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export enum NotificationVisibility {
|
||||
Visible = 0,
|
||||
VisibleNotifyCompleted = 1,
|
||||
VisibilityHidden = 2,
|
||||
VisibleNotifyOnlyCompletion = 3
|
||||
}
|
||||
|
||||
export interface DownloadHttpHeader {
|
||||
header: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface DestinationDirectory {
|
||||
dirType: string;
|
||||
subPath: string;
|
||||
}
|
||||
|
||||
export interface DownloadRequest {
|
||||
/**
|
||||
* Location of the resource to download
|
||||
*/
|
||||
uri: string;
|
||||
|
||||
/**
|
||||
* Set the title of this download, to be displayed in notifications (if enabled).
|
||||
* If no title is given, a default one will be assigned based on the download filename, once the download starts.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Set a description of this download, to be displayed in notifications (if enabled)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Set the MIME content type of this download. This will override the content type declared in the server's response.
|
||||
*/
|
||||
mimeType?: string;
|
||||
/**
|
||||
* Set whether this download should be displayed in the system's Downloads UI. True by default.
|
||||
*/
|
||||
visibleInDownloadsUi?: boolean;
|
||||
/**
|
||||
* Control whether a system notification is posted by the download manager while this download is running or when it is completed.
|
||||
*/
|
||||
notificationVisibility?: NotificationVisibility;
|
||||
/**
|
||||
* Set the local destination for the downloaded file to a path within the application's external files directory
|
||||
*/
|
||||
destinationInExternalFilesDir?: DestinationDirectory;
|
||||
/**
|
||||
* Set the local destination for the downloaded file to a path within the public external storage directory
|
||||
*/
|
||||
destinationInExternalPublicDir?: DestinationDirectory;
|
||||
/**
|
||||
* Set the local destination for the downloaded file.
|
||||
* Must be a file URI to a path on external storage, and the calling application must have the WRITE_EXTERNAL_STORAGE permission.
|
||||
*/
|
||||
destinationUri?: string;
|
||||
/**
|
||||
* Add an HTTP header to be included with the download request. The header will be added to the end of the list.
|
||||
*/
|
||||
headers?: DownloadHttpHeader[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Document Downloader
|
||||
* @description
|
||||
* This plugin is designed to support downloading files using Android DownloadManager.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* var request: DownloadRequest = {
|
||||
* uri: YOUR_URI,
|
||||
* title: 'MyDownload',
|
||||
* description: '',
|
||||
* mimeType: '',
|
||||
* visibleInDownloadsUi: true,
|
||||
* notificationVisibility: NotificationVisibility.VisibleNotifyCompleted,
|
||||
* destinationInExternalFilesDir: {
|
||||
* dirType: 'Downloads',
|
||||
* subPath: 'MyFile.apk'
|
||||
* }
|
||||
* };
|
||||
*
|
||||
*
|
||||
* this.downloader.download(request)
|
||||
* .then((location: string) => console.log('File downloaded at:'+location))
|
||||
* .catch((error: any) => console.error(error));
|
||||
* ```
|
||||
* @interfaces
|
||||
* Header
|
||||
* DestinationDirectory
|
||||
* DownloadHttpHeader
|
||||
* @enums
|
||||
* NotificationVisibility
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Downloader',
|
||||
plugin: 'integrator-cordova-plugin-downloader',
|
||||
pluginRef: 'cordova.plugins.Downloader',
|
||||
repo: 'https://github.com/Luka313/integrator-cordova-plugin-downloader.git',
|
||||
platforms: ['Android'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Downloader extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Starts a new download and returns location of the downloaded file on completion
|
||||
* @param request {DownloadRequest}
|
||||
*/
|
||||
@Cordova()
|
||||
download(request: DownloadRequest): Promise<string> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -9,15 +9,28 @@ import {
|
||||
} from '@awesome-cordova-plugins/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
/**
|
||||
* dceLicense: License of Dynamsoft Camera Enhancer
|
||||
* resolution: use EnumResolution
|
||||
* rotate: convert frame to bitmap and rotate it
|
||||
*/
|
||||
export interface ScanOptions {
|
||||
dceLicense?: string;
|
||||
resolution?: number;
|
||||
rotate?: boolean;
|
||||
}
|
||||
|
||||
export interface FrameResult {
|
||||
frameWidth: number;
|
||||
frameHeight: number;
|
||||
frameRotation: number;
|
||||
results: BarcodeResult[];
|
||||
}
|
||||
|
||||
export interface BarcodeResult {
|
||||
barcodeText: string;
|
||||
barcodeFormat: string;
|
||||
barcodeBytesBase64?: string;
|
||||
x1: number;
|
||||
x2: number;
|
||||
x3: number;
|
||||
@@ -28,6 +41,15 @@ export interface BarcodeResult {
|
||||
y4: number;
|
||||
}
|
||||
|
||||
export enum EnumResolution {
|
||||
RESOLUTION_AUTO = 0,
|
||||
RESOLUTION_480P = 1,
|
||||
RESOLUTION_720P = 2,
|
||||
RESOLUTION_1080P = 3,
|
||||
RESOLUTION_2K = 4,
|
||||
RESOLUTION_4K = 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @name dynamsoft-barcode-scanner
|
||||
* @description
|
||||
@@ -107,7 +129,7 @@ export class BarcodeScanner extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* start the camera to scan barcodes
|
||||
* @param dceLicense {string} License of Dynamsoft Camera Enhancer
|
||||
* @param options {ScanOptions}
|
||||
* @return {Observable<FrameResult>}
|
||||
*/
|
||||
@Cordova({
|
||||
@@ -115,7 +137,7 @@ export class BarcodeScanner extends AwesomeCordovaNativePlugin {
|
||||
errorIndex: 2,
|
||||
observable: true,
|
||||
})
|
||||
startScanning(dceLicense?: string): Observable<FrameResult> {
|
||||
startScanning(options?: ScanOptions): Observable<FrameResult> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -164,4 +186,24 @@ export class BarcodeScanner extends AwesomeCordovaNativePlugin {
|
||||
switchTorch(desiredStatus: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* set zoom
|
||||
* @param factor {number} zoom factor
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
setZoom(factor: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* set focus
|
||||
* @param point focus point
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
setFocus(point: { x: number; y: number }): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,18 @@ export interface FacebookLoginResponse {
|
||||
};
|
||||
}
|
||||
|
||||
export interface FacebookLimitedLoginResponse {
|
||||
status: string;
|
||||
|
||||
authResponse: {
|
||||
authenticationToken: string;
|
||||
|
||||
nonce: string;
|
||||
|
||||
userID: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Facebook
|
||||
* @description
|
||||
@@ -49,7 +61,7 @@ export interface FacebookLoginResponse {
|
||||
* At this point you'll need to open your project's [`config.xml`](https://cordova.apache.org/docs/en/latest/config_ref/index.html) file, found in the root directory of your project.
|
||||
*
|
||||
* Take note of the `id` for the next step:
|
||||
* ```
|
||||
* ```xml
|
||||
* <widget id="com.mycompany.testapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
* ```
|
||||
*
|
||||
@@ -226,10 +238,11 @@ export class Facebook extends AwesomeCordovaNativePlugin {
|
||||
* ```
|
||||
*
|
||||
* @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/limited-login/permissions) this app has upon logging in.
|
||||
* @returns {Promise<FacebookLoginResponse>} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails.
|
||||
* @param {string} nonce Nonce to create the configuration with.
|
||||
* @returns {Promise<FacebookLimitedLoginResponse>} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails.
|
||||
*/
|
||||
@Cordova()
|
||||
loginWithLimitedTracking(permissions: string[]): Promise<FacebookLoginResponse> {
|
||||
loginWithLimitedTracking(permissions: string[], nonce: string): Promise<FacebookLimitedLoginResponse> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
497
src/@awesome-cordova-plugins/plugins/fbsdk/index.ts
Normal file
497
src/@awesome-cordova-plugins/plugins/fbsdk/index.ts
Normal file
@@ -0,0 +1,497 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface FbSdkLoginResponse {
|
||||
status: string;
|
||||
|
||||
authResponse: {
|
||||
accessToken: string;
|
||||
|
||||
data_access_expiration_time: string;
|
||||
|
||||
expiresIn: number;
|
||||
|
||||
userID: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface FbSdkLimitedLoginResponse {
|
||||
status: string;
|
||||
|
||||
authResponse: {
|
||||
authenticationToken: string;
|
||||
|
||||
nonce: string;
|
||||
|
||||
userID: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @name FbSdk
|
||||
* @description
|
||||
* Use the Facebook SDK plugin to obtain access to the native FB application on iOS and Android.
|
||||
*
|
||||
* Requires Cordova plugin: `cordova-plugin-fbsdk`. For more info, please see the [Facebook SDK](https://github.com/MaximBelov/cordova-plugin-fbsdk).
|
||||
*
|
||||
* #### Installation
|
||||
*
|
||||
* To use the FB plugin, you first have to create a new Facebook App inside of the Facebook developer portal at [https://developers.facebook.com/apps](https://developers.facebook.com/apps).
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
* Retrieve the `App ID` and `App Name`.
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
* Then type in the following command in your Terminal, where APP_ID and APP_NAME are the values from the Facebook Developer portal.
|
||||
*
|
||||
* ```bash
|
||||
* ionic cordova plugin add cordova-plugin-fbsdk --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable CLIENT_TOKEN="abcd1234"
|
||||
* ```
|
||||
*
|
||||
* After, you'll need to add the native platforms you'll be using to your app in the Facebook Developer portal under your app's Settings:
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
* Click `'Add Platform'`.
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
* At this point you'll need to open your project's [`config.xml`](https://cordova.apache.org/docs/en/latest/config_ref/index.html) file, found in the root directory of your project.
|
||||
*
|
||||
* Take note of the `id` for the next step:
|
||||
* ```
|
||||
* <widget id="com.mycompany.testapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
* ```
|
||||
*
|
||||
* You can also edit the `id` to whatever you'd like it to be.
|
||||
*
|
||||
* #### Client Access Tokens
|
||||
*
|
||||
* [](https://developers.facebook.com/docs/facebook-login/guides/access-tokens#clienttokens)
|
||||
*
|
||||
*
|
||||
* #### iOS Install
|
||||
* Under 'Bundle ID', add the `id` from your `config.xml` file:
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
*
|
||||
* #### Android Install
|
||||
* Under 'Google Play Package Name', add the `id` from your `config.xml` file:
|
||||
*
|
||||
* [](https://developers.facebook.com/apps/)
|
||||
*
|
||||
*
|
||||
* And that's it! You can now make calls to Facebook using the plugin.
|
||||
*
|
||||
* ## Events
|
||||
*
|
||||
* App events allow you to understand the makeup of users engaging with your app, measure the performance of your Facebook mobile app ads, and reach specific sets of your users with Facebook mobile app ads.
|
||||
*
|
||||
* - [iOS] [https://developers.facebook.com/docs/ios/app-events](https://developers.facebook.com/docs/ios/app-events)
|
||||
* - [Android] [https://developers.facebook.com/docs/android/app-events](https://developers.facebook.com/docs/android/app-events)
|
||||
* - [JS] Does not have an Events API, so the plugin functions are empty and will return an automatic success
|
||||
*
|
||||
* Activation events are automatically tracked for you in the plugin.
|
||||
*
|
||||
* Events are listed on the [insights page](https://www.facebook.com/insights/).
|
||||
*
|
||||
* For tracking events, see `logEvent` and `logPurchase`.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { FbSdk, FbSdkLoginResponse } from '@awesome-cordova-plugins/fbsdk/ngx';
|
||||
*
|
||||
* constructor(private fbSdk: FbSdk) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* this.fbSdk.login(['public_profile', 'user_friends', 'email'])
|
||||
* .then((res: FbSdkLoginResponse) => console.log('Logged into Facebook!', res))
|
||||
* .catch(e => console.log('Error logging into Facebook', e));
|
||||
*
|
||||
*
|
||||
* this.fb.logEvent(this.fb.EVENTS.EVENT_NAME_ADDED_TO_CART);
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'Facebook',
|
||||
plugin: 'cordova-plugin-fbsdk',
|
||||
pluginRef: 'facebookConnectPlugin',
|
||||
repo: 'https://github.com/MaximBelov/cordova-plugin-fbsdk',
|
||||
install:
|
||||
'ionic cordova plugin add cordova-plugin-fbsdk --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable CLIENT_TOKEN="abcd1234"',
|
||||
installVariables: ['APP_ID', 'APP_NAME', 'CLIENT_TOKEN'],
|
||||
platforms: ['Android', 'iOS', 'Browser'],
|
||||
})
|
||||
@Injectable()
|
||||
export class FbSdk extends AwesomeCordovaNativePlugin {
|
||||
EVENTS = {
|
||||
EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app',
|
||||
EVENT_NAME_DEACTIVATED_APP: 'fb_mobile_deactivate_app',
|
||||
EVENT_NAME_SESSION_INTERRUPTIONS: 'fb_mobile_app_interruptions',
|
||||
EVENT_NAME_TIME_BETWEEN_SESSIONS: 'fb_mobile_time_between_sessions',
|
||||
EVENT_NAME_COMPLETED_REGISTRATION: 'fb_mobile_complete_registration',
|
||||
EVENT_NAME_VIEWED_CONTENT: 'fb_mobile_content_view',
|
||||
EVENT_NAME_SEARCHED: 'fb_mobile_search',
|
||||
EVENT_NAME_RATED: 'fb_mobile_rate',
|
||||
EVENT_NAME_COMPLETED_TUTORIAL: 'fb_mobile_tutorial_completion',
|
||||
EVENT_NAME_PUSH_TOKEN_OBTAINED: 'fb_mobile_obtain_push_token',
|
||||
EVENT_NAME_ADDED_TO_CART: 'fb_mobile_add_to_cart',
|
||||
EVENT_NAME_ADDED_TO_WISHLIST: 'fb_mobile_add_to_wishlist',
|
||||
EVENT_NAME_INITIATED_CHECKOUT: 'fb_mobile_initiated_checkout',
|
||||
EVENT_NAME_ADDED_PAYMENT_INFO: 'fb_mobile_add_payment_info',
|
||||
EVENT_NAME_PURCHASED: 'fb_mobile_purchase',
|
||||
EVENT_NAME_ACHIEVED_LEVEL: 'fb_mobile_level_achieved',
|
||||
EVENT_NAME_UNLOCKED_ACHIEVEMENT: 'fb_mobile_achievement_unlocked',
|
||||
EVENT_NAME_SPENT_CREDITS: 'fb_mobile_spent_credits',
|
||||
EVENT_PARAM_CURRENCY: 'fb_currency',
|
||||
EVENT_PARAM_REGISTRATION_METHOD: 'fb_registration_method',
|
||||
EVENT_PARAM_CONTENT_TYPE: 'fb_content_type',
|
||||
EVENT_PARAM_CONTENT_ID: 'fb_content_id',
|
||||
EVENT_PARAM_SEARCH_STRING: 'fb_search_string',
|
||||
EVENT_PARAM_SUCCESS: 'fb_success',
|
||||
EVENT_PARAM_MAX_RATING_VALUE: 'fb_max_rating_value',
|
||||
EVENT_PARAM_PAYMENT_INFO_AVAILABLE: 'fb_payment_info_available',
|
||||
EVENT_PARAM_NUM_ITEMS: 'fb_num_items',
|
||||
EVENT_PARAM_LEVEL: 'fb_level',
|
||||
EVENT_PARAM_DESCRIPTION: 'fb_description',
|
||||
EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source',
|
||||
EVENT_PARAM_VALUE_YES: '1',
|
||||
EVENT_PARAM_VALUE_NO: '0',
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current application ID
|
||||
*
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with the current application ID
|
||||
*/
|
||||
@Cordova()
|
||||
getApplicationId(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the application ID
|
||||
*
|
||||
* @param {string} id application ID
|
||||
*/
|
||||
@Cordova()
|
||||
setApplicationId(id: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current application name
|
||||
*
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with the current application name
|
||||
*/
|
||||
@Cordova()
|
||||
getApplicationName(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the application name
|
||||
*
|
||||
* @param {string} name application name
|
||||
*/
|
||||
@Cordova()
|
||||
setApplicationName(name: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to Facebook to authenticate this app.
|
||||
*
|
||||
* ```typescript
|
||||
* {
|
||||
* status: 'connected',
|
||||
* authResponse: {
|
||||
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
||||
* data_access_expiration_time: '1623680244',
|
||||
* expiresIn: 5183979,
|
||||
* userID: '634565435'
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/permissions) this app has upon logging in.
|
||||
* @returns {Promise<FbSdkLoginResponse>} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails.
|
||||
*/
|
||||
@Cordova()
|
||||
login(permissions: string[]): Promise<FbSdkLoginResponse> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to Facebook using Limited Login (iOS Only)
|
||||
*
|
||||
* ```typescript
|
||||
* {
|
||||
* status: 'connected',
|
||||
* authResponse: {
|
||||
* authenticationToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
||||
* nonce: 'foo',
|
||||
* userID: '634565435'
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/limited-login/permissions) this app has upon logging in.
|
||||
* @param {string} nonce Nonce to create the configuration with.
|
||||
* @returns {Promise<FbSdkLimitedLoginResponse>} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails.
|
||||
*/
|
||||
@Cordova()
|
||||
loginWithLimitedTracking(permissions: string[], nonce: string): Promise<FbSdkLimitedLoginResponse> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user has approved all necessary permissions
|
||||
*
|
||||
* @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/permissions) to check for
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with a success string if all passed permissions are granted, or an error string if any permissions are not granted
|
||||
*/
|
||||
@Cordova()
|
||||
checkHasCorrectPermissions(permissions: string[]): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if data access has expired for the user
|
||||
*
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with a success string if data access is expired, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
isDataAccessExpired(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reauthorize data access after it has expired
|
||||
*
|
||||
* @returns {Promise<FbSdkLoginResponse>} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails.
|
||||
*/
|
||||
@Cordova()
|
||||
reauthorizeDataAccess(): Promise<FbSdkLoginResponse> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logout of Facebook.
|
||||
*
|
||||
* For more info see the [Facebook docs](https://developers.facebook.com/docs/reference/javascript/FB.logout)
|
||||
*
|
||||
* @returns {Promise<any>} Returns a Promise that resolves on a successful logout, and rejects if logout fails.
|
||||
*/
|
||||
@Cordova()
|
||||
logout(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a user is logged in to Facebook and has authenticated your app. There are three possible states for a user:
|
||||
*
|
||||
* 1) the user is logged into Facebook and has authenticated your application (connected)
|
||||
* 2) the user is logged into Facebook but has not authenticated your application (not_authorized)
|
||||
* 3) the user is either not logged into Facebook or explicitly logged out of your application so it doesn't attempt to connect to Facebook and thus, we don't know if they've authenticated your application or not (unknown)
|
||||
*
|
||||
* Resolves with a response like:
|
||||
*
|
||||
* ```
|
||||
* {
|
||||
* authResponse: {
|
||||
* userID: '12345678912345',
|
||||
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
||||
* data_access_expiration_time: '1623680244',
|
||||
* expiresIn: '5183738'
|
||||
* },
|
||||
* status: 'connected'
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* For more information see the [Facebook docs](https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus)
|
||||
*
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with a status, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
getLoginStatus(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a Facebook access token for using Facebook services.
|
||||
*
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with an access token, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
getAccessToken(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get profile information for the currently logged in user
|
||||
*
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with success data, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
getCurrentProfile(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show one of various Facebook dialogs. Example of options for a Share dialog:
|
||||
*
|
||||
* ```
|
||||
* {
|
||||
* method: 'share',
|
||||
* href: 'http://example.com'
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* For more options see the [Cordova plugin docs](https://github.com/MaximBelov/cordova-plugin-fbsdk#show-a-dialog) and the [Facebook docs](https://developers.facebook.com/docs/javascript/reference/FB.ui)
|
||||
*
|
||||
* @param {Object} options The dialog options
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with success data, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
showDialog(options: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a call to Facebook Graph API. Can take additional permissions beyond those granted on login.
|
||||
*
|
||||
* For more information see:
|
||||
*
|
||||
* Calling the Graph API - https://developers.facebook.com/docs/javascript/reference/FB.api
|
||||
* Graph Explorer - https://developers.facebook.com/tools/explorer
|
||||
* Graph API - https://developers.facebook.com/docs/graph-api
|
||||
*
|
||||
* @param {string} requestPath Graph API endpoint you want to call
|
||||
* @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/permissions) for this request.
|
||||
* @param {string} httpMethod HTTP method for the request, one of "GET", "POST", or "DELETE" (default is "GET")
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with the result of the request, or rejects with an error
|
||||
*/
|
||||
@Cordova()
|
||||
api(requestPath: string, permissions: string[], httpMethod?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Data Processing Options for App events. For more information see [Facebook docs](https://developers.facebook.com/docs/app-events/guides/ccpa)
|
||||
*
|
||||
* @param {string[]} options List of options, i.e. ["LDU"]
|
||||
* @param {number} country The numeric identifier for the country
|
||||
* @param {number} state The numeric identifier for the state
|
||||
*/
|
||||
@Cordova()
|
||||
setDataProcessingOptions(options: string[], country?: number, state?: number): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set user data for Advanced Matching. For more information see [Facebook docs](https://developers.facebook.com/docs/app-events/advanced-matching/)
|
||||
*
|
||||
* @param {Object} userData An object containing data about the user
|
||||
*/
|
||||
@Cordova()
|
||||
setUserData(userData: Object): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear user data. For more information see [Facebook docs](https://developers.facebook.com/docs/app-events/advanced-matching/)
|
||||
*/
|
||||
@Cordova()
|
||||
clearUserData(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log an event. For more information see the Events section above.
|
||||
*
|
||||
* @param {string} name Name of the event
|
||||
* @param {Object} [params] An object containing extra data to log with the event
|
||||
* @param {number} [valueToSum] any value to be added to added to a sum on each event
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 3,
|
||||
errorIndex: 4,
|
||||
})
|
||||
logEvent(name: string, params?: Object, valueToSum?: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disable the auto log app event feature - https://developers.facebook.com/docs/app-events/gdpr-compliance/
|
||||
*
|
||||
* @param {boolean} enabled value to be set
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
setAutoLogAppEventsEnabled(enabled: boolean): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disable collection of advertiser-id
|
||||
*
|
||||
* @param {boolean} enabled value to be set
|
||||
*/
|
||||
@Cordova()
|
||||
setAdvertiserIDCollectionEnabled(enabled: boolean): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disable advertiser tracking (iOS Only)
|
||||
*
|
||||
* @param {boolean} enabled value to be set
|
||||
*/
|
||||
@Cordova()
|
||||
setAdvertiserTrackingEnabled(enabled: boolean): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a purchase. For more information see the Events section above.
|
||||
*
|
||||
* @param {number} value Value of the purchase.
|
||||
* @param {string} currency The currency, as an [ISO 4217 currency code](http://en.wikipedia.org/wiki/ISO_4217)
|
||||
* @param {Object} params An object containing extra data to log with the event
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
logPurchase(value: number, currency: string, params?: Object): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the deferred app link
|
||||
*
|
||||
* @returns {Promise<string>} Returns a Promise that resolves with the deep link
|
||||
*/
|
||||
@Cordova()
|
||||
getDeferredApplink(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Manually log activation events
|
||||
*
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
activateApp(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
74
src/@awesome-cordova-plugins/plugins/ffmpeg/index.ts
Normal file
74
src/@awesome-cordova-plugins/plugins/ffmpeg/index.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface VideoInformation {
|
||||
format: {
|
||||
bit_rate: string;
|
||||
duration: string;
|
||||
filename: string;
|
||||
format_name: string;
|
||||
nb_programs: string;
|
||||
nb_streams: string;
|
||||
probe_score: string;
|
||||
size: string;
|
||||
start_time: string;
|
||||
};
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name FFMpeg
|
||||
* @description
|
||||
* Simple plugin that binds mobile ffmpeg to execute ffmpeg commands
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { FFMpeg } from '@awesome-cordova-plugins/ffmpeg/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private ffMpeg: FFMpeg) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.fFMpeg.exec('-i someinput.mp4 -vn -c:a copy out.mp3')
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
*
|
||||
* this.fFMpeg.probe('somefile.mp4"')
|
||||
* .then((res: VideoInformation) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'FFMpeg',
|
||||
plugin: 'cordova-plugin-ffmpeg',
|
||||
pluginRef: 'ffmpeg',
|
||||
repo: 'https://github.com/MaximBelov/cordova-plugin-ffmpeg',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class FFMpeg extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Execute ffmpeg command
|
||||
* @param cmd {string} command
|
||||
* @return {Promise<any>} Returns a promise that resolves when execute finished
|
||||
*/
|
||||
@Cordova()
|
||||
exec(cmd: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts media information for the file specified with path
|
||||
* @param filePath {string} file path
|
||||
* @return {Promise<VideoInformation>} Returns a promise that resolves when media information received
|
||||
*/
|
||||
@Cordova()
|
||||
probe(filePath: string): Promise<VideoInformation> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
47
src/@awesome-cordova-plugins/plugins/file-chooser/index.ts
Normal file
47
src/@awesome-cordova-plugins/plugins/file-chooser/index.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
/* eslint-disable jsdoc/require-returns-check */
|
||||
/* eslint-disable jsdoc/check-tag-names */
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name FileChooser Plugin
|
||||
* @description
|
||||
* Cordova FileChooser Plugin
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { FileChooser } from '@awesome-cordova-plugins/file-chooser/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private fileChooser: FileChooser) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.fileChooser.open()
|
||||
* .then(() => console.log('Success'))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'FileChooser',
|
||||
plugin: 'cordova-plugin-filechooser',
|
||||
pluginRef: 'fileChooser',
|
||||
repo: 'https://github.com/ihadeed/cordova-filechooser',
|
||||
platforms: ['Android'],
|
||||
})
|
||||
@Injectable()
|
||||
export class FileChooser extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Launches a chooser dialog. The filter param allows filtering a the mime type
|
||||
* { "mime": "application/pdf" }
|
||||
*
|
||||
* @param {string} [filter] Filter allowing filter by a mime type (text/plain, image/png, image/jpeg, audio/wav etc.)
|
||||
* @returns {Promise<string>} URI of the selected file
|
||||
*/
|
||||
@Cordova()
|
||||
open(filter?: string): Promise<string> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
43
src/@awesome-cordova-plugins/plugins/file-md5/index.ts
Normal file
43
src/@awesome-cordova-plugins/plugins/file-md5/index.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
/**
|
||||
* @name File MD5
|
||||
* @description
|
||||
* This plugin reads large files in chunks and build the md5sum incrementally.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { FileMD5 } from '@awesome-cordova-plugins/file-md5/nx';
|
||||
*
|
||||
*
|
||||
* constructor(private fileMD5: FileMD5) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.fileMD5.file(fileEntry)
|
||||
* .then((md5sum: string) => console.log(md5sum))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'FileMD5',
|
||||
plugin: 'cordova-plugin-file-md5',
|
||||
pluginRef: 'md5chksum',
|
||||
repo: 'https://github.com/mramonlopez/cordova-plugin-file-md5',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class FileMD5 extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Get MD5 checksum from a file
|
||||
*
|
||||
* @param fileEntry {FileEntry} File entry is a org.apache.cordova.file.FileEntry
|
||||
* @returns {Promise<any>} Promise with md5sum
|
||||
*/
|
||||
@Cordova()
|
||||
file(fileEntry: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,96 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
// Biometric type
|
||||
export type BIOMETRIC_TYPE = 'finger' | 'face' | 'biometric';
|
||||
|
||||
export enum BIOMETRIC_ERRORS {
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_UNKNOWN_ERROR = -100,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_UNAVAILABLE = -101,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_AUTHENTICATION_FAILED = -102,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SDK_NOT_SUPPORTED = -103,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_HARDWARE_NOT_SUPPORTED = -104,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_PERMISSION_NOT_GRANTED = -105,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_NOT_ENROLLED = -106,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_INTERNAL_PLUGIN_ERROR = -107,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_DISMISSED = -108,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_PIN_OR_PATTERN_DISMISSED = -109,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SCREEN_GUARD_UNSECURED = -110,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_LOCKED_OUT = -111,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_LOCKED_OUT_PERMANENT = -112,
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SECRET_NOT_FOUND = -113
|
||||
}
|
||||
|
||||
export interface FingerprintOptions {
|
||||
/**
|
||||
* Title in biometric prompt (android only)
|
||||
@@ -43,6 +133,14 @@ export interface FingerprintOptions {
|
||||
* @default false
|
||||
*/
|
||||
disableBackup?: boolean;
|
||||
|
||||
/**
|
||||
* (Android): If false user confirmation is NOT required after a biometric has been authenticated.
|
||||
*
|
||||
* @default true.
|
||||
* See https://developer.android.com/training/sign-in/biometric-auth#no-explicit-user-action
|
||||
*/
|
||||
confirmationRequired?: boolean;
|
||||
}
|
||||
|
||||
export interface FingerprintSecretOptions extends FingerprintOptions {
|
||||
@@ -59,6 +157,22 @@ export interface FingerprintSecretOptions extends FingerprintOptions {
|
||||
invalidateOnEnrollment?: boolean;
|
||||
}
|
||||
|
||||
export interface FingerprintAvailableOptions {
|
||||
/**
|
||||
* (Android): If true will only return success if Class 3 (BIOMETRIC_STRONG) Biometrics are enrolled on the device.
|
||||
* It is reccomended you use this if planning on using the registerBiometricSecret and loadBiometricSecret methods.
|
||||
*/
|
||||
requireStrongBiometrics: boolean;
|
||||
|
||||
/**
|
||||
* (iOS): If true checks if backup authentication option is available, e.g. passcode.
|
||||
* Default: false, which means check for biometrics only.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
allowBackup?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name Fingerprint AIO
|
||||
* @description
|
||||
@@ -111,6 +225,7 @@ export interface FingerprintSecretOptions extends FingerprintOptions {
|
||||
* @interfaces
|
||||
* FingerprintOptions
|
||||
* FingerprintSecretOptions
|
||||
* FingerprintAvailableOptions
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'FingerprintAIO',
|
||||
@@ -121,98 +236,18 @@ export interface FingerprintSecretOptions extends FingerprintOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class FingerprintAIO extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_UNKNOWN_ERROR = -100;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_UNAVAILABLE = -101;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_AUTHENTICATION_FAILED = -102;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SDK_NOT_SUPPORTED = -103;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_HARDWARE_NOT_SUPPORTED = -104;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_PERMISSION_NOT_GRANTED = -105;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_NOT_ENROLLED = -106;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_INTERNAL_PLUGIN_ERROR = -107;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_DISMISSED = -108;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_PIN_OR_PATTERN_DISMISSED = -109;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SCREEN_GUARD_UNSECURED = -110;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_LOCKED_OUT = -111;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_LOCKED_OUT_PERMANENT = -112;
|
||||
/**
|
||||
* Convenience constant
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
BIOMETRIC_SECRET_NOT_FOUND = -113;
|
||||
|
||||
/**
|
||||
* Check if fingerprint authentication is available
|
||||
*
|
||||
* @returns {Promise<any>} Returns a promise with result
|
||||
* @param {FingerprintAvailableOptions} options Options for platform specific fingerprint API
|
||||
* @returns {Promise<BIOMETRIC_TYPE>} Returns a promise with result which depends on device and os.
|
||||
* iPhone X will return 'face' other Android or iOS devices will return 'finger' Android P+ will return 'biometric'
|
||||
*/
|
||||
@Cordova()
|
||||
isAvailable(): Promise<any> {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
isAvailable(options: FingerprintAvailableOptions): Promise<BIOMETRIC_TYPE> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -220,10 +255,10 @@ export class FingerprintAIO extends AwesomeCordovaNativePlugin {
|
||||
* Show authentication dialogue and register secret
|
||||
*
|
||||
* @param {FingerprintSecretOptions} options Options for platform specific fingerprint API
|
||||
* @returns {Promise<any>} Returns a promise that resolves when authentication was successful
|
||||
* @returns {Promise<void>} Returns a promise that resolves when authentication was successful
|
||||
*/
|
||||
@Cordova()
|
||||
registerBiometricSecret(options: FingerprintSecretOptions): Promise<any> {
|
||||
registerBiometricSecret(options: FingerprintSecretOptions): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -231,7 +266,7 @@ export class FingerprintAIO extends AwesomeCordovaNativePlugin {
|
||||
* Show authentication dialogue and load secret
|
||||
*
|
||||
* @param {FingerprintOptions} options Options for platform specific fingerprint API
|
||||
* @returns {Promise<any>} Returns a promise that resolves when authentication was successful
|
||||
* @returns {Promise<string>} Returns a promise that resolves when authentication was successful
|
||||
*/
|
||||
@Cordova()
|
||||
loadBiometricSecret(options: FingerprintOptions): Promise<string> {
|
||||
@@ -242,10 +277,10 @@ export class FingerprintAIO extends AwesomeCordovaNativePlugin {
|
||||
* Show authentication dialogue
|
||||
*
|
||||
* @param {FingerprintOptions} options Options for platform specific fingerprint API
|
||||
* @returns {Promise<any>} Returns a promise that resolves when authentication was successful
|
||||
* @returns {Promise<void>} Returns a promise that resolves when authentication was successful
|
||||
*/
|
||||
@Cordova()
|
||||
show(options: FingerprintOptions): Promise<any> {
|
||||
show(options: FingerprintOptions): Promise<void> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user