Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
app/ | H | 25-Apr-2025 | - | 620 | 478 | |
gradle/wrapper/ | H | 25-Apr-2025 | - | 7 | 6 | |
.gitignore | H A D | 25-Apr-2025 | 118 | 10 | 9 | |
README.md | H A D | 25-Apr-2025 | 1,006 | 38 | 28 | |
build.gradle | H A D | 25-Apr-2025 | 531 | 25 | 21 | |
gradle.properties | H A D | 25-Apr-2025 | 730 | 18 | 13 | |
gradlew | H A D | 25-Apr-2025 | 4.9 KiB | 161 | 120 | |
gradlew.bat | H A D | 25-Apr-2025 | 2.3 KiB | 91 | 66 | |
settings.gradle | H A D | 25-Apr-2025 | 15 | 2 | 1 |
README.md
1gRPC on Android 2============== 3 4Note: Building the protobuf dependency for Android requires 5https://github.com/protocolbuffers/protobuf/pull/3878. This fix will be in the next 6protobuf release, but until then must be manually patched in to 7`third_party/protobuf` to build gRPC for Android. 8 9PREREQUISITES 10------------- 11 12- Android SDK 13- Android NDK 14- `protoc` and `grpc_cpp_plugin` binaries on the host system 15 16INSTALL 17------- 18 19The example application can be built via Android Studio or on the command line 20using `gradle`: 21 22 ```sh 23 $ ./gradlew installDebug 24 ``` 25 26INSTRUMENTATION TESTS 27--------------------- 28 29The instrumentation tests can be run via the following `gradle` command. This 30requires an emulator already running on your computer. 31 32``` 33$ ./gradlew connectedAndroidTest \ 34 -Pandroid.testInstrumentationRunnerArguments.server_host=grpc-test.sandbox.googleapis.com \ 35 -Pandroid.testInstrumentationRunnerArguments.server_port=443 \ 36 -Pandroid.testInstrumentationRunnerArguments.use_tls=true 37``` 38