@capgo/capacitor-twilio-voice 8.2.19 → 8.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
## Capacitor Twilio Voice Plugin
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Make and receive phone calls in your Capacitor app with the Twilio Voice SDK, using CallKit on iOS and native call notifications on Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_twilio_voice"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-twilio-voice" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_twilio_voice">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_twilio_voice">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-twilio-voice/main/assets/github-social-preview.png" alt="@capgo/capacitor-twilio-voice for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Calls**: `makeCall()`, `acceptCall()`, `rejectCall()` and `endCall()`.
|
|
21
|
+
- **In-call controls**: `muteCall()`, `setSpeaker()` and `getCallStatus()`.
|
|
22
|
+
- **Incoming calls**: push-based call invites with PushKit and CallKit on iOS and Firebase Messaging on Android.
|
|
23
|
+
- **Events**: invite, ringing, connected, disconnected, reconnecting and call quality warnings.
|
|
24
|
+
- **Session**: `login()` with a Twilio access token, `isLoggedIn()` and `logout()`.
|
|
25
|
+
- **Platforms**: iOS and Android. Not available on web. `login()`, `isLoggedIn()` and `getCallStatus()` throw on web.
|
|
10
26
|
|
|
11
27
|
## Documentation
|
|
12
28
|
|
package/android/src/main/java/ee/forgr/capacitor_twilio_voice/CapacitorTwilioVoicePlugin.java
CHANGED
|
@@ -75,7 +75,7 @@ import org.json.JSONObject;
|
|
|
75
75
|
)
|
|
76
76
|
public class CapacitorTwilioVoicePlugin extends Plugin {
|
|
77
77
|
|
|
78
|
-
private final String pluginVersion = "8.2.
|
|
78
|
+
private final String pluginVersion = "8.2.21";
|
|
79
79
|
|
|
80
80
|
private static final String TAG = "CapacitorTwilioVoice";
|
|
81
81
|
private static final String PREF_ACCESS_TOKEN = "twilio_access_token";
|
|
@@ -28,7 +28,7 @@ public protocol PushKitEventDelegate: AnyObject {
|
|
|
28
28
|
*/
|
|
29
29
|
@objc(CapacitorTwilioVoicePlugin)
|
|
30
30
|
public class CapacitorTwilioVoicePlugin: CAPPlugin, CAPBridgedPlugin, PushKitEventDelegate {
|
|
31
|
-
private let pluginVersion: String = "8.2.
|
|
31
|
+
private let pluginVersion: String = "8.2.21"
|
|
32
32
|
|
|
33
33
|
public let identifier = "CapacitorTwilioVoicePlugin"
|
|
34
34
|
public let jsName = "CapacitorTwilioVoice"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-twilio-voice",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.21",
|
|
4
4
|
"description": "Integrates the Twilio Voice SDK into Capacitor",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"verify:web": "npm run build",
|
|
44
44
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
45
45
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
46
|
-
"eslint": "eslint .
|
|
46
|
+
"eslint": "eslint .",
|
|
47
47
|
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
48
48
|
"swiftlint": "node-swiftlint",
|
|
49
49
|
"docgen": "docgen --api CapacitorTwilioVoicePlugin --output-readme README.md --output-json dist/docs.json",
|
|
@@ -63,11 +63,13 @@
|
|
|
63
63
|
"@capacitor/core": "^8.0.0",
|
|
64
64
|
"@capacitor/docgen": "^0.3.1",
|
|
65
65
|
"@capacitor/ios": "^8.0.0",
|
|
66
|
-
"@ionic/eslint-config": "^0.
|
|
66
|
+
"@ionic/eslint-config": "^0.5.0",
|
|
67
67
|
"@ionic/prettier-config": "^4.0.0",
|
|
68
68
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
69
69
|
"@types/node": "^24.10.1",
|
|
70
|
-
"eslint": "^8.
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
|
71
|
+
"@typescript-eslint/parser": "^8.70.0",
|
|
72
|
+
"eslint": "^10.0.0",
|
|
71
73
|
"eslint-plugin-import": "^2.31.0",
|
|
72
74
|
"prettier": "^3.6.2",
|
|
73
75
|
"prettier-plugin-java": "^2.7.7",
|
|
@@ -83,9 +85,6 @@
|
|
|
83
85
|
},
|
|
84
86
|
"prettier": "@ionic/prettier-config",
|
|
85
87
|
"swiftlint": "@ionic/swiftlint-config",
|
|
86
|
-
"eslintConfig": {
|
|
87
|
-
"extends": "@ionic/eslint-config/recommended"
|
|
88
|
-
},
|
|
89
88
|
"capacitor": {
|
|
90
89
|
"ios": {
|
|
91
90
|
"src": "ios"
|