From 1c8073828c5c2c39058e88c7af494e018b3b6638 Mon Sep 17 00:00:00 2001 From: Ming-Chuan Date: Mon, 14 Feb 2022 15:43:30 +0800 Subject: [PATCH] Always define GPR_SUPPORT_BINDER_TRANSPORT on Android (#28822) We previously have this restriction because some code does not compile with older NDK version. Now the binder transport implementation loads the library and resolves symbols at runtime so we don't need the compile time restriction anymore (and in some case it is overly restrictive) Later we might consider remove the GPR_SUPPORT_BINDER_TRANSPORT symbol and simply use GPR_ANDROID, once we become sure that binder transport will always be available on Android at compile time. --- include/grpc/impl/codegen/port_platform.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index fe7d58b6b51..3227f5115bd 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -134,9 +134,7 @@ #if __ANDROID_API__ < 21 #error "Requires Android API v21 and above" #endif -#if (__ANDROID_API__) >= 23 #define GPR_SUPPORT_BINDER_TRANSPORT 1 -#endif // TODO(apolcyn): re-evaluate support for c-ares // on android after upgrading our c-ares dependency. // See https://github.com/grpc/grpc/issues/18038.