From 3ed4bfcfe1467da85849dc2d61df3035c8466ef7 Mon Sep 17 00:00:00 2001 From: jsobczak Date: Fri, 22 Jul 2022 17:01:11 -0700 Subject: [PATCH] Set non_prod compatibility PiperOrigin-RevId: 462733200 --- presence/BUILD | 12 ++---------- presence/encryption.cc | 5 ++--- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/presence/BUILD b/presence/BUILD index 5e00dc25..8db4ae9a 100644 --- a/presence/BUILD +++ b/presence/BUILD @@ -13,6 +13,8 @@ # limitations under the License. licenses(["notice"]) +package(default_visibility = ["//third_party/nearby:__subpackages__"]) + cc_library( name = "presence", srcs = [ @@ -22,9 +24,6 @@ cc_library( "presence_client.h", "presence_service.h", ], - visibility = [ - "//third_party/nearby:__subpackages__", - ], deps = [ ":types", "//third_party/nearby/presence/implementation:internal", # build_cleaner: keep @@ -56,9 +55,6 @@ cc_library( "presence_zone.h", "status.h", ], - visibility = [ - "//third_party/nearby/presence:__subpackages__", - ], deps = [ "//internal/platform:base", "@com_google_absl//absl/strings", @@ -84,13 +80,9 @@ cc_library( name = "encryption", srcs = ["encryption.cc"], hdrs = ["encryption.h"], - visibility = [ - "//third_party/nearby/presence:__subpackages__", - ], deps = [ "//internal/platform:logging", "//third_party/tink/cc/subtle", - "//util/random:ssl_bit_gen", "@boringssl//:crypto", "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", diff --git a/presence/encryption.cc b/presence/encryption.cc index bbb2bf8b..74851ec8 100644 --- a/presence/encryption.cc +++ b/presence/encryption.cc @@ -22,12 +22,11 @@ #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "internal/platform/logging.h" -#include "third_party/openssl/cipher.h" // NOLINT +#include "third_party/openssl/cipher.h" // NOLINT #include "third_party/openssl/crypto.h" -#include "third_party/openssl/evp.h" // NOLINT +#include "third_party/openssl/evp.h" // NOLINT #include "third_party/tink/cc/subtle/hkdf.h" #include "third_party/tink/cc/subtle/random.h" -#include "util/random/ssl_bit_gen.h" namespace nearby { namespace presence {