|
37 | 37 |
|
38 | 38 | #ifdef FIREBASE_BUILD_ZIP_FILE
|
39 | 39 | static BOOL kUsingZipFile = YES;
|
40 |
| -#else // FIREBASE_BUILD_ZIP_FILE |
| 40 | +#else // FIREBASE_BUILD_ZIP_FILE |
41 | 41 | static BOOL kUsingZipFile = NO;
|
42 | 42 | #endif // FIREBASE_BUILD_ZIP_FILE
|
43 | 43 |
|
@@ -454,29 +454,6 @@ void FIRPopulateProtoWithInstalledServices(logs_proto_mobilesdk_ios_ICoreConfigu
|
454 | 454 | config->sdk_service_installed_count = (int32_t)sdkServiceInstalledArray.count;
|
455 | 455 | }
|
456 | 456 |
|
457 |
| -/** Populates the proto with the number of linked frameworks. |
458 |
| - * |
459 |
| - * @param config The proto to populate. |
460 |
| - */ |
461 |
| -void FIRPopulateProtoWithNumberOfLinkedFrameworks( |
462 |
| - logs_proto_mobilesdk_ios_ICoreConfiguration *config) { |
463 |
| - int numFrameworks = -1; // Subtract the app binary itself. |
464 |
| - unsigned int numImages; |
465 |
| - const char **imageNames = objc_copyImageNames(&numImages); |
466 |
| - for (unsigned int i = 0; i < numImages; i++) { |
467 |
| - NSString *imageName = [NSString stringWithUTF8String:imageNames[i]]; |
468 |
| - if ([imageName rangeOfString:@"System/Library"].length != 0 // Apple .frameworks |
469 |
| - || [imageName rangeOfString:@"Developer/Library"].length != 0 // Xcode debug .frameworks |
470 |
| - || [imageName rangeOfString:@"usr/lib"].length != 0) { // Public .dylibs |
471 |
| - continue; |
472 |
| - } |
473 |
| - numFrameworks++; |
474 |
| - } |
475 |
| - free(imageNames); |
476 |
| - config->dynamic_framework_count = numFrameworks; |
477 |
| - config->has_dynamic_framework_count = 1; |
478 |
| -} |
479 |
| - |
480 | 457 | /** Populates the proto with Info.plist values.
|
481 | 458 | *
|
482 | 459 | * @param config The proto to populate.
|
@@ -532,7 +509,6 @@ - (void)sendDiagnosticsData:(nonnull id<FIRCoreDiagnosticsData>)diagnosticsData
|
532 | 509 | FIRPopulateProtoWithInfoFromUserInfoParams(&icore_config, diagnosticObjects);
|
533 | 510 | FIRPopulateProtoWithCommonInfoFromApp(&icore_config, diagnosticObjects);
|
534 | 511 | FIRPopulateProtoWithInstalledServices(&icore_config);
|
535 |
| - FIRPopulateProtoWithNumberOfLinkedFrameworks(&icore_config); |
536 | 512 | FIRPopulateProtoWithInfoPlistValues(&icore_config);
|
537 | 513 | [self setHeartbeatFlagIfNeededToConfig:&icore_config];
|
538 | 514 |
|
|
0 commit comments