File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,18 @@ This library provide support for STOMP protocol https://stomp.github.io/
66At now library works only as client for backend with support STOMP, such as
77NodeJS (stompjs or other) or Spring Boot (SockJS).
88
9+ Add library as gradle dependency
10+
11+ ```
12+ repositories {
13+ jcenter()
14+ maven { url "https://jitpack.io" }
15+ }
16+ dependencies {
17+ compile 'com.github.NaikSoftware:StompProtocolAndroid:{latest version}'
18+ }
19+ ```
20+
921## Example backend (Spring Boot)
1022
1123** WebSocketConfig.groovy**
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ buildscript {
77 dependencies {
88 classpath ' com.android.tools.build:gradle:2.1.0'
99 classpath ' me.tatarka:gradle-retrolambda:3.2.5'
10+ classpath ' com.github.dcendents:android-maven-gradle-plugin:1.3'
1011 // NOTE: Do not place your application dependencies here; they belong
1112 // in the individual module build.gradle files
1213 }
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' me.tatarka.retrolambda'
3+ apply plugin : ' com.github.dcendents.android-maven'
4+
5+ group= ' com.github.NaikSoftware'
36
47android {
58 compileSdkVersion 23
@@ -25,6 +28,7 @@ android {
2528 }
2629}
2730
31+
2832dependencies {
2933 compile fileTree(dir : ' libs' , include : [' *.jar' ])
3034 testCompile ' junit:junit:4.12'
@@ -33,3 +37,12 @@ dependencies {
3337 // Supported transports
3438 provided ' org.java-websocket:Java-WebSocket:1.3.0'
3539}
40+
41+ task sourcesJar (type : Jar ) {
42+ from android. sourceSets. main. java. srcDirs
43+ classifier = ' sources'
44+ }
45+
46+ artifacts {
47+ archives sourcesJar
48+ }
You can’t perform that action at this time.
0 commit comments