Skip to content

Commit 996ea2f

Browse files
author
Xudong Ma
committed
Give dependency example for android clients.
1 parent d42a09b commit 996ea2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ Or for Gradle, add to your dependencies:
3636
compile 'io.grpc:grpc-all:0.9.0'
3737
```
3838

39+
For Android client, you only need to depend on the needed sub-projects, such as:
40+
```gradle
41+
compile 'io.grpc:grpc-okhttp:0.9.0'
42+
compile 'io.grpc:grpc-protobuf-nano:0.9.0'
43+
compile 'io.grpc:grpc-stub:0.9.0'
44+
```
45+
3946
[the JAR]: https://search.maven.org/remote_content?g=io.grpc&a=grpc-all&v=0.9.0
4047

4148
Development snapshots are available in [Sonatypes's snapshot

android-interop-testing/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ dependencies {
6464
compile 'com.squareup.okhttp:okhttp:2.2.0'
6565
testCompile 'junit:junit:4.12'
6666
// You need to build grpc-java to obtain these libraries below.
67-
compile 'io.grpc:grpc-core:0.10.0-SNAPSHOT'
6867
compile 'io.grpc:grpc-protobuf-nano:0.10.0-SNAPSHOT'
6968
compile 'io.grpc:grpc-okhttp:0.10.0-SNAPSHOT'
7069
compile 'io.grpc:grpc-stub:0.10.0-SNAPSHOT'

examples/android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ dependencies {
6060

6161
// You need to build the https://github.com/grpc/grpc-java
6262
// to obtain these libraries below.
63-
compile 'io.grpc:grpc-core:0.9.0'
6463
compile 'io.grpc:grpc-protobuf-nano:0.9.0'
6564
compile 'io.grpc:grpc-okhttp:0.9.0'
6665
compile 'io.grpc:grpc-stub:0.9.0'

0 commit comments

Comments
 (0)