@capgo/capacitor-twilio-voice 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapgoCapacitorTwilioVoice.podspec +19 -0
- package/Package.swift +35 -0
- package/README.md +280 -0
- package/android/build.gradle +65 -0
- package/android/src/main/AndroidManifest.xml +43 -0
- package/android/src/main/java/ee/forgr/capacitor_twilio_voice/CapacitorTwilioVoicePlugin.java +1230 -0
- package/android/src/main/java/ee/forgr/capacitor_twilio_voice/NotificationActionReceiver.java +64 -0
- package/android/src/main/java/ee/forgr/capacitor_twilio_voice/VoiceCallService.java +503 -0
- package/android/src/main/java/ee/forgr/capacitor_twilio_voice/VoiceFirebaseMessagingService.java +81 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/android/src/main/res/drawable/ic_notification_call.xml +11 -0
- package/android/src/main/res/drawable/ic_phone_accept.xml +11 -0
- package/android/src/main/res/drawable/ic_phone_reject.xml +11 -0
- package/dist/docs.json +411 -0
- package/dist/esm/definitions.d.ts +95 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +62 -0
- package/dist/esm/web.js +45 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +59 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +62 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/CapacitorTwilioVoicePlugin/CapacitorTwilioVoice.swift +8 -0
- package/ios/Sources/CapacitorTwilioVoicePlugin/CapacitorTwilioVoicePlugin.swift +922 -0
- package/ios/Tests/CapacitorTwilioVoicePluginTests/CapacitorTwilioVoicePluginTests.swift +15 -0
- package/package.json +81 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@capacitor/core');
|
|
4
|
+
|
|
5
|
+
const CapacitorTwilioVoice = core.registerPlugin('CapacitorTwilioVoice', {
|
|
6
|
+
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorTwilioVoiceWeb()),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
class CapacitorTwilioVoiceWeb extends core.WebPlugin {
|
|
10
|
+
// Authentication
|
|
11
|
+
async login(_options) {
|
|
12
|
+
throw this.unimplemented('Not implemented on web.');
|
|
13
|
+
}
|
|
14
|
+
async logout() {
|
|
15
|
+
throw this.unimplemented('Not implemented on web.');
|
|
16
|
+
}
|
|
17
|
+
async isLoggedIn() {
|
|
18
|
+
throw this.unimplemented('Not implemented on web.');
|
|
19
|
+
}
|
|
20
|
+
// Call Management
|
|
21
|
+
async makeCall(_options) {
|
|
22
|
+
throw this.unimplemented('Not implemented on web.');
|
|
23
|
+
}
|
|
24
|
+
async acceptCall(_options) {
|
|
25
|
+
throw this.unimplemented('Not implemented on web.');
|
|
26
|
+
}
|
|
27
|
+
async rejectCall(_options) {
|
|
28
|
+
throw this.unimplemented('Not implemented on web.');
|
|
29
|
+
}
|
|
30
|
+
async endCall(_options) {
|
|
31
|
+
throw this.unimplemented('Not implemented on web.');
|
|
32
|
+
}
|
|
33
|
+
// Call Controls
|
|
34
|
+
async muteCall(_options) {
|
|
35
|
+
throw this.unimplemented('Not implemented on web.');
|
|
36
|
+
}
|
|
37
|
+
async setSpeaker(_options) {
|
|
38
|
+
throw this.unimplemented('Not implemented on web.');
|
|
39
|
+
}
|
|
40
|
+
// Call Status
|
|
41
|
+
async getCallStatus() {
|
|
42
|
+
throw this.unimplemented('Not implemented on web.');
|
|
43
|
+
}
|
|
44
|
+
// Audio Permissions
|
|
45
|
+
async checkMicrophonePermission() {
|
|
46
|
+
throw this.unimplemented('Not implemented on web.');
|
|
47
|
+
}
|
|
48
|
+
async requestMicrophonePermission() {
|
|
49
|
+
throw this.unimplemented('Not implemented on web.');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
54
|
+
__proto__: null,
|
|
55
|
+
CapacitorTwilioVoiceWeb: CapacitorTwilioVoiceWeb
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.CapacitorTwilioVoice = CapacitorTwilioVoice;
|
|
59
|
+
//# sourceMappingURL=plugin.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,oBAAoB,GAAGA,mBAAc,C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M,aAAa,GAAG;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;AACA,IAAI,MAAM,yBAAyB,GAAG;AACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,2BAA2B,GAAG;AACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var capacitorCapacitorTwilioVoice = (function (exports, core) {
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const CapacitorTwilioVoice = core.registerPlugin('CapacitorTwilioVoice', {
|
|
5
|
+
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorTwilioVoiceWeb()),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
class CapacitorTwilioVoiceWeb extends core.WebPlugin {
|
|
9
|
+
// Authentication
|
|
10
|
+
async login(_options) {
|
|
11
|
+
throw this.unimplemented('Not implemented on web.');
|
|
12
|
+
}
|
|
13
|
+
async logout() {
|
|
14
|
+
throw this.unimplemented('Not implemented on web.');
|
|
15
|
+
}
|
|
16
|
+
async isLoggedIn() {
|
|
17
|
+
throw this.unimplemented('Not implemented on web.');
|
|
18
|
+
}
|
|
19
|
+
// Call Management
|
|
20
|
+
async makeCall(_options) {
|
|
21
|
+
throw this.unimplemented('Not implemented on web.');
|
|
22
|
+
}
|
|
23
|
+
async acceptCall(_options) {
|
|
24
|
+
throw this.unimplemented('Not implemented on web.');
|
|
25
|
+
}
|
|
26
|
+
async rejectCall(_options) {
|
|
27
|
+
throw this.unimplemented('Not implemented on web.');
|
|
28
|
+
}
|
|
29
|
+
async endCall(_options) {
|
|
30
|
+
throw this.unimplemented('Not implemented on web.');
|
|
31
|
+
}
|
|
32
|
+
// Call Controls
|
|
33
|
+
async muteCall(_options) {
|
|
34
|
+
throw this.unimplemented('Not implemented on web.');
|
|
35
|
+
}
|
|
36
|
+
async setSpeaker(_options) {
|
|
37
|
+
throw this.unimplemented('Not implemented on web.');
|
|
38
|
+
}
|
|
39
|
+
// Call Status
|
|
40
|
+
async getCallStatus() {
|
|
41
|
+
throw this.unimplemented('Not implemented on web.');
|
|
42
|
+
}
|
|
43
|
+
// Audio Permissions
|
|
44
|
+
async checkMicrophonePermission() {
|
|
45
|
+
throw this.unimplemented('Not implemented on web.');
|
|
46
|
+
}
|
|
47
|
+
async requestMicrophonePermission() {
|
|
48
|
+
throw this.unimplemented('Not implemented on web.');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
53
|
+
__proto__: null,
|
|
54
|
+
CapacitorTwilioVoiceWeb: CapacitorTwilioVoiceWeb
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
exports.CapacitorTwilioVoice = CapacitorTwilioVoice;
|
|
58
|
+
|
|
59
|
+
return exports;
|
|
60
|
+
|
|
61
|
+
})({}, capacitorExports);
|
|
62
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,oBAAoB,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;IACpE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;IAC3E,CAAC;;ICFM,MAAM,uBAAuB,SAASC,cAAS,CAAC;IACvD;IACA,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI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