grpc/examples
Ming-Chuan d6bb391449 [Build] Migrate Android NDK, android rules and platforms (#36116)
This commit does the following 3 things for Android bazel rules, which depends on each other

1. Update NDK to 26.2.11394342 (and a few other Android things)
2. Use rules_android_ndk instead of builtin `native.android_ndk_repository`
    * `third_party/android/android_configure.bzl` was a workaround for users who don't set `$ANDROID_NDK_HOME` env var. Now with rules_android_ndk, we can declare repo without registering the toolchain. Instead users who need NDK toolchain should use `--extra_toolchains` to manually register the toolchain, as shown in README.md.
3. Migrate to platforms. See https://bazel.build/concepts/platforms
    * Currently we declares android platforms that is needed for binder transport APK. Later gRPC repo can gradually migrate to platforms for other platforms.
    * The value of `crosstool_top` will still be `//external:android/crosstool` (which is the default value), so existings android `config_settings` will still work. We should migrate them to match with `@platforms//os:android` constraint later.

The platforms migration needs Bazel 7.0 to work so we also override bazel version in testing scripts.

Closes #36116

PiperOrigin-RevId: 617244655
2024-03-19 11:46:15 -07:00
..
android [Build] Migrate Android NDK, android rules and platforms (#36116) 2024-03-19 11:46:15 -07:00
cpp [examples] fix binary path in systemd socket activation test script (#36034) 2024-03-08 11:42:02 -08:00
node [examples] Replace Node example files with references to the new location (#33522) 2023-06-22 17:48:33 -07:00
objective-c [grpc] Move contents of objective_c to objective-c (#35361) 2023-12-21 09:19:55 -08:00
php Update min PHP testing version from PHP 7.4 to 8.1 (#35964) 2024-02-22 14:32:42 -08:00
protos [Example] Added gRPC C++ cancellation example (#34239) 2023-09-06 09:07:33 -07:00
python [Python O11y] Change public interface (#36094) 2024-03-14 09:37:19 -07:00
ruby Make the gem build on TruffleRuby (#27660) 2022-06-27 23:12:13 -07:00
README.md Remove C# implementation (individual packages will continue to be maintained through v2.46.x patches or moved to grpc-dotnet) (#29225) 2022-04-28 12:00:34 +02:00

README.md

Examples

This directory contains examples for all the C-based gRPC implementations. Each language subdirectory contains a Hello World example and more:

For a complete list of supported languages, see Supported languages.

For comprehensive documentation, including an Introduction to gRPC and tutorials that use this example code, visit grpc.io.