Skip to content

Commit 6c05665

Browse files
authored
[Crashlytics]Fix crashlytics unit test directory (#10634)
* [Crashlytics]Fix crashlytics unit test directory change to copy for all resources to maintain teh directory structure. * test 5.6 all good, switch back to 5.3
1 parent 96e30e6 commit 6c05665

File tree

16 files changed

+9
-5
lines changed

16 files changed

+9
-5
lines changed

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSMachOBinaryTests.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ @implementation FIRCLSMachOBinaryTests
2121
- (NSString*)resourcePath {
2222
#if SWIFT_PACKAGE
2323
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
24+
return [bundle.resourcePath stringByAppendingPathComponent:@"machO_data"];
2425
#else
2526
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
26-
#endif
2727
return bundle.resourcePath;
28+
#endif
2829
}
2930

3031
- (NSURL*)URLForResource:(NSString*)resource {

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSMachOTests.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ @implementation FIRCLSMachOTests
2525
- (NSString*)resourcePath {
2626
#if SWIFT_PACKAGE
2727
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
28+
return [bundle.resourcePath stringByAppendingPathComponent:@"machO_data"];
2829
#else
2930
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
30-
#endif
3131
return bundle.resourcePath;
32+
#endif
3233
}
3334

3435
- (NSArray*)sortedArchitectures:(id)obj {

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSdSYMTests.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ @implementation FIRCLSdSYMTests
2121
- (NSString*)resourcePath {
2222
#if SWIFT_PACKAGE
2323
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
24+
return [bundle.resourcePath stringByAppendingPathComponent:@"machO_data"];
2425
#else
2526
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
26-
#endif
2727
return bundle.resourcePath;
28+
29+
#endif
2830
}
2931

3032
- (void)testBundleIdAndExecutablePath {

0 commit comments

Comments
 (0)