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

Commit

Permalink
chore(plugin.xml): ✨ declare the opentok file in the js-module
Browse files Browse the repository at this point in the history
It makes the opentok file show up in the cordova_plugin.js file.
It enables the `cordova-plugin-injectview` plugin to properly detect and inject the opentok files.
  • Loading branch information
cadesalaberry committed Jan 11, 2021
1 parent ada8289 commit 7a37d39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 7a37d39

Please sign in to comment.