Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Capacitor support #186

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-extras.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ allprojects {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.opentok.android:opentok-android-sdk:2.15.3'
implementation 'com.opentok.android:opentok-android-sdk:2.17.0'
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-opentok",
"version": "3.4.3",
"version": "3.4.4",
"description": "Add live video streaming to your Cordova Application",
"cordova": {
"id": "cordova-plugin-opentok",
Expand All @@ -11,7 +11,7 @@
]
},
"dependencies": {
"@opentok/client": "2.15.5",
"@opentok/client": "2.17.2",
"exec": "^0.2.0",
"tar": "^2.0.0"
},
Expand Down
5 changes: 2 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-opentok"
version="3.4.3">
version="3.4.4">

<name>OpenTokCordovaPlugin</name>
<description>Add live video streaming to your Cordova Application</description>
Expand Down Expand Up @@ -40,7 +40,6 @@

<!-- ios -->
<platform name="ios">
<hook type="before_plugin_install" src="scripts/downloadiOSSDK.js" />
<asset src="www/opentok.js" target="opentok.js" />

<header-file src="src/ios/UIView+Category.h" />
Expand All @@ -54,7 +53,7 @@
<framework src="libsqlite3.dylib" />
<framework src="libpthread.dylib" />
<framework src="VideoToolbox.framework" />
<framework src="src/ios/OpenTok.framework" custom="true" />
<framework src="OpenTok" type="podspec" spec="~> 2.17.0" />
<framework src="AudioToolbox.framework" />
<framework src="CoreData.framework" />
<framework src="AVFoundation.framework" />
Expand Down
2 changes: 1 addition & 1 deletion src/android/OpenTokAndroidPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ protected Map<String, String> getParams()
params.put("partner_id", apiKey);
params.put("payload", payload.toString());
params.put("source", "https://github.com/opentok/cordova-plugin-opentok");
params.put("build", "2.15.3");
params.put("build", "2.17.0");
params.put("session_id", sessionId);
if (connectionId != null) {
params.put("action", "cp_on_connect");
Expand Down
4 changes: 2 additions & 2 deletions src/ios/OpenTokPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ -(void)logOT:(NSString*)connectionId{

NSMutableDictionary *payload = [[NSMutableDictionary alloc]init];
[payload setObject:@"iOS" forKey:@"platform"];
[payload setObject:@"3.4.3" forKey:@"cp_version"];
[payload setObject:@"3.4.4" forKey:@"cp_version"];
NSMutableDictionary *logData = [[NSMutableDictionary alloc]init];
[logData setObject:apiKey forKey:@"partner_id"];
[logData setObject:@"2.15.3" forKey:@"build"];
[logData setObject:@"2.17.0" forKey:@"build"];
[logData setObject:@"https://github.com/opentok/cordova-plugin-opentok" forKey:@"source"];
[logData setObject:@"info" forKey:@"payload_type"];
[logData setObject:payload forKey:@"payload"];
Expand Down