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

chore(plugin.xml): ✨ declare the opentok file in the js-module #200

Open
wants to merge 1 commit 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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ cordova plugin remove com.tokbox.cordova.opentok

All your editing will be done in your www folder.

To use the opentok library, make sure you include `opentok.js` file in your HTML document.
~~To use the opentok library, make sure you include `opentok.js` file in your HTML document.~~
The `opentok.js` file is now automatically included by cordova.

```HTML
<script type="text/javascript" charset="utf-8" src="opentok.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<license>Apache 2.0</license>
<keywords>opentok,tokbox</keywords>

<js-module src="www/opentok.js" name="opentok">
<runs />
</js-module>

<platform name="android">
<framework src="build-extras.gradle" custom="true" type="gradleReference" />
<framework src="com.android.support:appcompat-v7:23.1.0" />
Expand Down