Skip to content

Commit 0d698e8

Browse files
author
Claude Mamo
committed
Added pom.xml; created Maven directory structure; minor changes
1 parent dd38454 commit 0d698e8

47 files changed

Lines changed: 31 additions & 339 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.classpath

Lines changed: 0 additions & 10 deletions
This file was deleted.

.project

Lines changed: 0 additions & 17 deletions
This file was deleted.

CodeFormatterProfile.xml

Lines changed: 0 additions & 279 deletions
This file was deleted.

assets/www/websocket/websocket.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949

5050
self = this
5151

52-
self.id = PhoneGap.exec(null,
52+
self.id = Cordova.exec(null,
5353
null,
5454
'WebSocket',
5555
'create',
5656
[ url ]);
5757

5858
WebSocket.store[self.id] = this
5959

60-
PhoneGap.exec(null,
60+
Cordova.exec(null,
6161
null,
6262
'WebSocket',
6363
'connect',
@@ -87,15 +87,15 @@
8787

8888
// instance event methods
8989
WebSocket.prototype.send = function (data) {
90-
PhoneGap.exec(null,
90+
Cordova.exec(null,
9191
null,
9292
'WebSocket',
9393
'send',
9494
[ self.id, data ]);
9595
}
9696

9797
WebSocket.prototype.close = function () {
98-
PhoneGap.exec(null,
98+
Cordova.exec(null,
9999
null,
100100
'WebSocket',
101101
'close',
@@ -104,7 +104,7 @@
104104
}
105105

106106
WebSocket.prototype.getReadyState = function () {
107-
return PhoneGap.exec(null,
107+
return Cordova.exec(null,
108108
null,
109109
'WebSocket',
110110
'getReadyState',

build.xml

Lines changed: 0 additions & 28 deletions
This file was deleted.

dist/WebSocket.jar

-67.4 KB
Binary file not shown.

lib/android-4.0.1.2.jar

-12.2 MB
Binary file not shown.

lib/json-20080701.jar

-37 KB
Binary file not shown.

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.apache.cordova</groupId>
6+
<artifactId>websocket-cordova-plugin</artifactId>
7+
<packaging>jar</packaging>
8+
<name>WebSocket Cordova Plugin</name>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.google.android</groupId>
14+
<artifactId>android</artifactId>
15+
<version>4.0.1.2</version>
16+
<scope>provided</scope>
17+
</dependency>
18+
<dependency>
19+
<groupId>org.apache</groupId>
20+
<artifactId>cordova</artifactId>
21+
<version>1.9.0</version>
22+
<scope>system</scope>
23+
<systemPath>${basedir}/lib/cordova-1.9.0.jar</systemPath>
24+
</dependency>
25+
</dependencies>
26+
</project>

src/org/apache/cordova/CordovaWebSocketClient.java renamed to src/main/java/org/apache/cordova/CordovaWebSocketClient.java

File renamed without changes.

0 commit comments

Comments
 (0)