mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Fix analytics recorder's version string type
PiperOrigin-RevId: 401125543
This commit is contained in:
@@ -28,6 +28,10 @@ namespace location {
|
||||
namespace nearby {
|
||||
namespace analytics {
|
||||
|
||||
namespace {
|
||||
const char kVersion[] = "v1.0.0";
|
||||
} // namespace
|
||||
|
||||
using ::location::nearby::analytics::proto::ConnectionsLog;
|
||||
using ::location::nearby::proto::connections::ACCEPTED;
|
||||
using ::location::nearby::proto::connections::ADVERTISER;
|
||||
@@ -76,9 +80,6 @@ using ::location::nearby::proto::connections::UPGRADE_SUCCESS;
|
||||
using ::location::nearby::proto::connections::UPGRADE_UNFINISHED;
|
||||
using ::location::nearby::proto::connections::UPGRADED;
|
||||
|
||||
// These definitions are necessary before C++17.
|
||||
constexpr absl::string_view AnalyticsRecorder::kVersion;
|
||||
|
||||
AnalyticsRecorder::AnalyticsRecorder(EventLogger *event_logger)
|
||||
: event_logger_(event_logger) {
|
||||
started_client_session_time_ = SystemClock::ElapsedRealtime();
|
||||
|
||||
@@ -34,8 +34,6 @@ namespace analytics {
|
||||
|
||||
class AnalyticsRecorder {
|
||||
public:
|
||||
static constexpr absl::string_view kVersion = "v1.0.0";
|
||||
|
||||
explicit AnalyticsRecorder(EventLogger *event_logger);
|
||||
virtual ~AnalyticsRecorder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user