grpc/src/android/test/interop
Craig Tiller 2b97208ff3
[android] Fix android interop build (#32737)
<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
2023-03-28 11:53:25 -07:00
..
app [android] Fix android interop build (#32737) 2023-03-28 11:53:25 -07:00
gradle/wrapper Update all Debian:9 to Debian:10 (#31917) 2023-01-23 10:50:41 -08:00
.gitignore gRPC C++ Interop App 2018-04-05 11:39:54 -07:00
README.md Pointing the protobuf submodule to the new URL (#26811) 2021-07-29 10:19:16 -07:00
build.gradle Update all Debian:9 to Debian:10 (#31917) 2023-01-23 10:50:41 -08:00
gradle.properties gRPC C++ Interop App 2018-04-05 11:39:54 -07:00
gradlew gRPC C++ Interop App 2018-04-05 11:39:54 -07:00
gradlew.bat gRPC C++ Interop App 2018-04-05 11:39:54 -07:00
settings.gradle gRPC C++ Interop App 2018-04-05 11:39:54 -07:00

README.md

gRPC on Android

Note: Building the protobuf dependency for Android requires https://github.com/protocolbuffers/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:

$ ./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