Add flag to switch between native and app notifications.

PiperOrigin-RevId: 836352152
This commit is contained in:
Francis Tsui
2025-11-24 13:54:20 -08:00
committed by Copybara-Service
parent 007724c18f
commit 6b570ead96
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -113,7 +113,6 @@ cc_library(
"transfer_metadata.h",
"transfer_metadata_builder.h",
],
compatible_with = ["//buildenv/target:non_prod"],
visibility = [
"//location/nearby/apps/better_together/windows/nearby_share:__subpackages__",
"//location/nearby/cpp/sharing:__subpackages__",
@@ -104,6 +104,9 @@ constexpr auto kEnableFlutterHooks =
// When true, enables the mini pulse animation.
constexpr auto kEnableMiniPulse =
flags::Flag<bool>(kConfigPackage, "45724244", false);
// When true, enables notifications implemented in native code.
constexpr auto kEnableNativeNotifications =
flags::Flag<bool>(kConfigPackage, "45743135", false);
// When true, enables responsive UI.
constexpr auto kEnableResponsiveUi =
flags::Flag<bool>(kConfigPackage, "45727212", false);
@@ -128,6 +131,7 @@ inline absl::btree_map<int, const flags::Flag<bool>&> GetBoolFlags() {
{45661130, kEnableConflictBanner},
{45720206, kEnableFlutterHooks},
{45724244, kEnableMiniPulse},
{45743135, kEnableNativeNotifications},
{45727212, kEnableResponsiveUi},
};
}