Skip to content

Commit 377a83c

Browse files
committed
Address review comments and add missing copyright notices.
1 parent 1e23573 commit 377a83c

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

analytics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ set_property(TARGET firebase_analytics PROPERTY FOLDER "Firebase Cpp")
105105
target_link_libraries(firebase_analytics
106106
PUBLIC firebase_app)
107107
if(WIN32)
108-
target_link_libraries(firebase_analytics PUBLIC Crypt32.lib)
108+
target_link_libraries(firebase_analytics PRIVATE Crypt32.lib)
109109
endif()
110110
# Public headers all refer to each other relative to the src/include directory,
111111
# while private headers are relative to the entire C++ SDK directory.

analytics/generate_windows_stubs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def generate_function_pointers(dll_file_path, header_file_path, output_h_path, o
7777
current_dll_hex_hash = dll_hash.hex()
7878
if current_dll_hex_hash not in known_hex_hashes:
7979
known_hex_hashes.append(current_dll_hex_hash)
80-
# Sort for consistency, although not strictly required by the prompt
81-
# known_hex_hashes.sort() # Decided against sorting to maintain order of addition for now
8280

8381
with open(hash_file_path, 'w') as f:
8482
for hex_hash in known_hex_hashes:

analytics/src/analytics_desktop.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ namespace analytics {
3939
#define ANALYTICS_DLL_FILENAME L"analytics_win.dll"
4040

4141
static HMODULE g_analytics_module = 0;
42-
// It's generally safer to use local std::string copies within Initialize
43-
// for app_id and package_name to ensure their lifetime if Initialize
44-
// could theoretically be called multiple times with different App objects,
45-
// or if AppOptions getters returned temporaries.
46-
// Given AppOptions structure, direct use of app.options().app_id() etc.
47-
// within the Initialize call *should* be safe as App outlives the call,
48-
// but local copies are more robust.
4942
#endif // defined(_WIN32)
5043

5144
// Future data for analytics.
@@ -57,8 +50,6 @@ static bool g_analytics_collection_enabled = true;
5750
// Initializes the Analytics desktop API.
5851
// This function must be called before any other Analytics methods.
5952
void Initialize(const App& app) {
60-
// app parameter is now used to retrieve AppOptions.
61-
6253
g_initialized = true;
6354
internal::RegisterTerminateOnDefaultAppDestroy();
6455
internal::FutureData::Create();

analytics/windows/include/public/analytics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2025 Google LLC
2+
13
#ifndef ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_ANALYTICS_H_
24
#define ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_ANALYTICS_H_
35

analytics/windows/include/public/c/analytics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2025 Google LLC
2+
13
#ifndef ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_C_ANALYTICS_H_
24
#define ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_C_ANALYTICS_H_
35

analytics/windows/include/public/event_names.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2025 Google LLC
2+
13
#ifndef ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_EVENT_NAMES_H_
24
#define ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_EVENT_NAMES_H_
35

analytics/windows/include/public/parameter_names.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2025 Google LLC
2+
13
#ifndef ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_PARAMETER_NAMES_H_
24
#define ANALYTICS_MOBILE_CONSOLE_MEASUREMENT_PUBLIC_PARAMETER_NAMES_H_
35

0 commit comments

Comments
 (0)