diff options
author | 2018-04-16 09:26:04 -0700 | |
---|---|---|
committer | 2018-04-16 09:26:04 -0700 | |
commit | 67bfead4f06b6cb8670752ebf0ed1b669643eb61 (patch) | |
tree | 760be9d234185c8230a2e31885e7c2521bd70a2b /src/android/test/interop/README.md | |
parent | 082ddc563ea71a6b7a700070ec60095bfb65d88f (diff) | |
parent | 6f6b83e6b45714814ce3a079c6949cfaaa6ee393 (diff) |
Merge pull request #14951 from ericgribkoff/android_interop
Android C++ Interop App
Diffstat (limited to 'src/android/test/interop/README.md')
-rw-r--r-- | src/android/test/interop/README.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/android/test/interop/README.md b/src/android/test/interop/README.md new file mode 100644 index 0000000000..95262307eb --- /dev/null +++ b/src/android/test/interop/README.md @@ -0,0 +1,37 @@ +gRPC on Android +============== + +Note: Building the protobuf dependency for Android requires +https://github.com/google/protobuf/pull/3878. This fix will be in the next +protobuf release, but until then must be manually patched in to +`third_party/protobuf` to build gRPC for Android. + +PREREQUISITES +------------- + +- Android SDK +- Android NDK +- `protoc` and `grpc_cpp_plugin` binaries on the host system + +INSTALL +------- + +The example application can be built via Android Studio or on the command line +using `gradle`: + + ```sh + $ ./gradlew installDebug + ``` + +INSTRUMENTATION TESTS +--------------------- + +The instrumentation tests can be run via the following `gradle` command. This +requires an emulator already running on your computer. + +``` +$ ./gradlew connectedAndroidTest \ + -Pandroid.testInstrumentationRunnerArguments.server_host=grpc-test.sandbox.googleapis.com \ + -Pandroid.testInstrumentationRunnerArguments.server_port=443 \ + -Pandroid.testInstrumentationRunnerArguments.use_tls=true +``` |