Skip to content

Commit 4db36a2

Browse files
author
Anya Zenkina
authored
Merge pull request #194 from pusher/readme-test-locally
change readme about testing locally
2 parents 1cf46f7 + f3c3f75 commit 4db36a2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ channel.isSubscribed(); // => `true`/`false`
492492
The JavaDocs can be found here: <http://pusher.github.com/pusher-websocket-java/>
493493

494494
## Library Development Environment
495+
If you'd like to tweak this library there are ways to use your local code rather than the official.
495496

496497
### Prerequisites
497498

@@ -504,6 +505,21 @@ The JavaDocs can be found here: <http://pusher.github.com/pusher-websocket-java/
504505
* Clone the project: `git clone https://github.com/pusher/pusher-java-client`
505506
* Change to the top level directory for the project: `cd pusher-java-client`
506507

508+
### Android Studio
509+
* In your app project's `settings.gradle` add the following lines:
510+
511+
```
512+
include ':pusher-websocket-java'
513+
project(':pusher-websocket-java').projectDir = new File('<PATH_TO_THIS_PROJECT>/pusher-websocket-java')
514+
```
515+
* Add the following line to your application's `build.gradle` where you would normally add the actual `pusher-websocket-java` SDK:
516+
517+
```
518+
dependencies {
519+
compile project(':pusher-websocket-java')
520+
}
521+
```
522+
507523
### Eclipse Project
508524

509525
Assuming you are using Eclipse, follow these steps:

0 commit comments

Comments
 (0)