Skip to content

Commit 9788b8e

Browse files
authored
Add additional field in firebasecore.proto (#3273)
1 parent 8934d34 commit 9788b8e

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ - (void)sendDiagnosticsData:(nonnull id<FIRCoreDiagnosticsData>)diagnosticsData
620620
logs_proto_mobilesdk_ios_ICoreConfiguration icore_config =
621621
logs_proto_mobilesdk_ios_ICoreConfiguration_init_default;
622622

623+
icore_config.using_gdt = 1;
624+
icore_config.has_using_gdt = 1;
625+
623626
// Populate the proto with information.
624627
FIRPopulateProtoWithInfoFromUserInfoParams(&icore_config, diagnosticObjects);
625628
FIRPopulateProtoWithCommonInfoFromApp(&icore_config, diagnosticObjects);

Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828

29-
const pb_field_t logs_proto_mobilesdk_ios_ICoreConfiguration_fields[33] = {
29+
const pb_field_t logs_proto_mobilesdk_ios_ICoreConfiguration_fields[34] = {
3030
PB_FIELD( 1, UENUM , OPTIONAL, STATIC , FIRST, logs_proto_mobilesdk_ios_ICoreConfiguration, configuration_type, configuration_type, 0),
3131
PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, version_name, configuration_type, 0),
3232
PB_FIELD( 3, INT64 , OPTIONAL, STATIC , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, build_number, version_name, 0),
@@ -59,6 +59,7 @@ const pb_field_t logs_proto_mobilesdk_ios_ICoreConfiguration_fields[33] = {
5959
PB_FIELD( 33, BOOL , OPTIONAL, STATIC , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, swizzling_enabled, app_extensions, 0),
6060
PB_FIELD( 34, INT32 , OPTIONAL, STATIC , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, log_error_count, swizzling_enabled, 0),
6161
PB_FIELD( 35, INT32 , OPTIONAL, STATIC , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, log_warning_count, log_error_count, 0),
62+
PB_FIELD( 36, BOOL , OPTIONAL, STATIC , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, using_gdt, log_warning_count, 0),
6263
PB_LAST_FIELD
6364
};
6465

Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,16 @@ typedef struct _logs_proto_mobilesdk_ios_ICoreConfiguration {
159159
int32_t log_error_count;
160160
bool has_log_warning_count;
161161
int32_t log_warning_count;
162+
bool has_using_gdt;
163+
bool using_gdt;
162164
/* @@protoc_insertion_point(struct:logs_proto_mobilesdk_ios_ICoreConfiguration) */
163165
} logs_proto_mobilesdk_ios_ICoreConfiguration;
164166

165167
/* Default values for struct fields */
166168

167169
/* Initializer values for message structs */
168-
#define logs_proto_mobilesdk_ios_ICoreConfiguration_init_default {false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ConfigurationType_MIN, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_BuildType_MIN, NULL, 0, NULL, 0, NULL, NULL, NULL, false, 0, NULL, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_PodName_MIN, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ServiceType_MIN, false, 0, NULL, NULL, NULL, false, 0, false, 0, false, 0, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_DeploymentType_MIN, NULL, false, 0, false, 0, false, 0, false, 0}
169-
#define logs_proto_mobilesdk_ios_ICoreConfiguration_init_zero {false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ConfigurationType_MIN, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_BuildType_MIN, NULL, 0, NULL, 0, NULL, NULL, NULL, false, 0, NULL, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_PodName_MIN, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ServiceType_MIN, false, 0, NULL, NULL, NULL, false, 0, false, 0, false, 0, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_DeploymentType_MIN, NULL, false, 0, false, 0, false, 0, false, 0}
170+
#define logs_proto_mobilesdk_ios_ICoreConfiguration_init_default {false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ConfigurationType_MIN, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_BuildType_MIN, NULL, 0, NULL, 0, NULL, NULL, NULL, false, 0, NULL, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_PodName_MIN, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ServiceType_MIN, false, 0, NULL, NULL, NULL, false, 0, false, 0, false, 0, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_DeploymentType_MIN, NULL, false, 0, false, 0, false, 0, false, 0, false, 0}
171+
#define logs_proto_mobilesdk_ios_ICoreConfiguration_init_zero {false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ConfigurationType_MIN, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_BuildType_MIN, NULL, 0, NULL, 0, NULL, NULL, NULL, false, 0, NULL, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_PodName_MIN, NULL, NULL, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_ServiceType_MIN, false, 0, NULL, NULL, NULL, false, 0, false, 0, false, 0, NULL, false, 0, false, _logs_proto_mobilesdk_ios_ICoreConfiguration_DeploymentType_MIN, NULL, false, 0, false, 0, false, 0, false, 0, false, 0}
170172

171173
/* Field tags (for use in manual encoding/decoding) */
172174
#define logs_proto_mobilesdk_ios_ICoreConfiguration_pod_name_tag 16
@@ -201,9 +203,10 @@ typedef struct _logs_proto_mobilesdk_ios_ICoreConfiguration {
201203
#define logs_proto_mobilesdk_ios_ICoreConfiguration_swizzling_enabled_tag 33
202204
#define logs_proto_mobilesdk_ios_ICoreConfiguration_log_error_count_tag 34
203205
#define logs_proto_mobilesdk_ios_ICoreConfiguration_log_warning_count_tag 35
206+
#define logs_proto_mobilesdk_ios_ICoreConfiguration_using_gdt_tag 36
204207

205208
/* Struct field encoding specification for nanopb */
206-
extern const pb_field_t logs_proto_mobilesdk_ios_ICoreConfiguration_fields[33];
209+
extern const pb_field_t logs_proto_mobilesdk_ios_ICoreConfiguration_fields[34];
207210

208211
/* Maximum encoded size of messages (where known) */
209212
/* logs_proto_mobilesdk_ios_ICoreConfiguration_size depends on runtime parameters */

Firebase/CoreDiagnostics/ProtoSupport/Protos/firebasecore.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ message ICoreConfiguration {
9999
optional bool swizzling_enabled = 33;
100100
optional int32 log_error_count = 34;
101101
optional int32 log_warning_count = 35;
102+
optional bool using_gdt = 36;
102103
}

0 commit comments

Comments
 (0)