Skip to content

Commit b1c71a6

Browse files
committed
Needed plugins to support Crosswalk added to the "config.xml" file
1 parent 0ab3f3c commit b1c71a6

File tree

5 files changed

+47
-13
lines changed

5 files changed

+47
-13
lines changed

.gitignore

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
/hooks/
2-
/platforms/
3-
/plugins/
1+
# Cordova stuff
2+
output
3+
stdout
44

5+
# Logs and databases
6+
*.log
7+
dump.rdb
8+
output
9+
10+
# OS
11+
.DS_Store
12+
.DS_Store?
13+
._*
14+
.Spotlight-V100
15+
.Trashes
16+
Icon?
17+
ehthumbs.db
18+
Thumbs.db

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,28 @@ This project takes the [HTML5 version](https://github.com/webrtc/apprtc/tree/mas
1010

1111
## Building
1212

13-
Get the source code and add the Cordova iOS platform:
14-
13+
- Get the source code:
1514
```bash
16-
$ cordova platform add ios
15+
git clone https://github.com/eface2face/iOSRTCApp
16+
cd iOSRTCApp
1717
```
18-
19-
Then install the *cordova-plugin-iosrtc* (or add it into your Cordova app's `config.xml`):
20-
18+
- Change the Android WebView engine by the [Crosswalk](https://crosswalk-project.org/) one using [the proper plugin](https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview):
2119
```bash
22-
$ cordova plugin add com.eface2face.iosrtc
20+
cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview --save
21+
```
22+
- Then install this plugin:
23+
```bash
24+
cordova plugin add com.eface2face.iosrtc --save
25+
```
26+
- Add both platforms:
27+
```bash
28+
cordova platform add ios android
29+
```
30+
- Run as usual:
31+
```bash
32+
cordova run android --device
33+
cordova run ios --device
2334
```
24-
25-
And run as usual.
2635

2736

2837
## Usage

config.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<allow-intent href="itms:*" />
2727
<allow-intent href="itms-apps:*" />
2828
</platform>
29-
<plugin name="cordova-plugin-whitelist" version="1" />
3029
<plugin name="com.eface2face.iosrtc" spec="^1.2.8" />
30+
<plugin name="cordova-plugin-crosswalk-webview" spec="https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview" />
31+
<plugin name="cordova-plugin-device" spec="^1.0.1" />
3132
</widget>

platforms/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore everything in this directory
2+
*
3+
4+
# Except this file
5+
!.gitignore

plugins/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore everything in this directory
2+
*
3+
4+
# Except this file
5+
!.gitignore

0 commit comments

Comments
 (0)