Skip to content

Commit faa96cc

Browse files
authored
Fix: remove the Vector SetDefaultEventParameters from being included (#1369)
* Fix: remove the Vector SetDefaultEventParameters from being included The documentation is referencing the C++ vector version and it should be removed * Fixup the comments
1 parent 6ec501e commit faa96cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

analytics/src/swig/analytics.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#endif
2222

2323
%include "std_map.i"
24+
%include "std_vector.i"
2425

2526
%pragma(csharp) moduleclassmodifiers="internal static class"
2627
%pragma(csharp) modulecode=%{
@@ -118,9 +119,15 @@ void SetConsentWithInts(const std::map<int, int>& settings) {
118119
// Ignore the LogEvent that takes a Parameter array, as we handle it
119120
// with a custom version instead.
120121
%ignore firebase::analytics::LogEvent(const char*, const Parameter*, size_t);
122+
// Ignore the LogEvent that takes a Parameter vector, as we handle it
123+
// with a custom version instead.
124+
%ignore firebase::analytics::LogEvent(const char*, const std::vector<Parameter>&);
121125
// Ignore the SetDefaultEventParameters that takes a Parameter array, as we
122126
// handle it with a custom version instead.
123127
%ignore firebase::analytics::SetDefaultEventParameters(const Parameter*, size_t);
128+
// Ignore the SetDefaultEventParameters that takes a Parameter vector, as we
129+
// handle it with a custom version instead.
130+
%ignore firebase::analytics::SetDefaultEventParameters(const std::vector<Parameter>&);
124131
// Ignore SetConsent, in order to convert the types with our own function.
125132
%ignore firebase::analytics::SetConsent;
126133
// Ignore the Parameter class, as we don't want to expose that to C# at all.

0 commit comments

Comments
 (0)