Skip to content

Commit 2b0175f

Browse files
committed
minSdk 16, small refactoring
1 parent d1f2506 commit 2b0175f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.idea/modules.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
buildToolsVersion "23.0.3"
77

88
defaultConfig {
9-
minSdkVersion 17
9+
minSdkVersion 16
1010
targetSdkVersion 23
1111
versionCode 1
1212
versionName "1.0"

lib/src/main/java/ua/naiksoftware/stomp/Stomp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package ua.naiksoftware.stomp;
22

3-
import org.java_websocket.client.WebSocketClient;
3+
import org.java_websocket.WebSocket;
44

55
import ua.naiksoftware.stomp.client.StompClient;
66

77
/**
88
* Supported overlays:
9-
* - org.java_websocket.client.WebSocketClient ('org.java-websocket:Java-WebSocket:1.3.0')
9+
* - org.java_websocket.WebSocket ('org.java-websocket:Java-WebSocket:1.3.0')
1010
*
1111
* You can add own relay, just implement ConnectionProvider for you stomp transport,
1212
* such as web socket.
@@ -16,7 +16,7 @@
1616
public class Stomp {
1717

1818
public static StompClient over(Class claszz, String uri) {
19-
if (claszz == WebSocketClient.class) {
19+
if (claszz == WebSocket.class) {
2020
return createStompClient(new WebSocketsConnectionProvider(uri));
2121
}
2222

0 commit comments

Comments
 (0)