Skip to content

Commit 96d07fe

Browse files
authored
[Infra] Favor SWIFTPM_MODULE_BUNDLE macro over C function across repo (#10625)
* [Infra] Favor SWIFTPM_MODULE_BUNDLE in RC unit tests * Favor across repo
1 parent 21ecaf3 commit 96d07fe

File tree

16 files changed

+17
-17
lines changed

16 files changed

+17
-17
lines changed

Crashlytics/UnitTests/FIRCLSCompactUnwindTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (void)tearDown {
4343

4444
- (NSString*)resourcePath {
4545
#if SWIFT_PACKAGE
46-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
46+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
4747
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
4848
#else
4949
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSDwarfTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (void)tearDown {
4343

4444
- (NSString*)resourcePath {
4545
#if SWIFT_PACKAGE
46-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
46+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
4747
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
4848
#else
4949
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSInternalReportTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ @implementation FIRCLSInternalReportTests
2424

2525
- (NSString *)resourcePath {
2626
#if SWIFT_PACKAGE
27-
NSBundle *bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
27+
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
2828
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
2929
#else
3030
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSMachOBinaryTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ @implementation FIRCLSMachOBinaryTests
2020

2121
- (NSString*)resourcePath {
2222
#if SWIFT_PACKAGE
23-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
23+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
2424
#else
2525
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
2626
#endif

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSMachOTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ @implementation FIRCLSMachOTests
2424

2525
- (NSString*)resourcePath {
2626
#if SWIFT_PACKAGE
27-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
27+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
2828
#else
2929
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
3030
#endif

Crashlytics/UnitTests/FIRCLSMachO/FIRCLSdSYMTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ @implementation FIRCLSdSYMTests
2020

2121
- (NSString*)resourcePath {
2222
#if SWIFT_PACKAGE
23-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
23+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
2424
#else
2525
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
2626
#endif

Crashlytics/UnitTests/FIRCLSProcessReportOperationTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (void)tearDown {
4343

4444
- (NSString *)resourcePath {
4545
#if SWIFT_PACKAGE
46-
NSBundle *bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
46+
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
4747
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
4848
#else
4949
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSReportAdapterTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ - (FIRCLSReportAdapter *)adapterForValidMetadata {
169169

170170
+ (NSString *)resourcePath {
171171
#if SWIFT_PACKAGE
172-
NSBundle *bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
172+
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
173173
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
174174
#else
175175
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSReportManagerTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ - (void)tearDown {
131131
#pragma mark - Path Helpers
132132
- (NSString *)resourcePath {
133133
#if SWIFT_PACKAGE
134-
NSBundle *bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
134+
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
135135
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
136136
#else
137137
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

Crashlytics/UnitTests/FIRCLSSymbolResolverTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ - (void)tearDown {
3232

3333
- (NSString*)resourcePath {
3434
#if SWIFT_PACKAGE
35-
NSBundle* bundle = Firebase_FirebaseCrashlyticsUnit_SWIFTPM_MODULE_BUNDLE();
35+
NSBundle* bundle = SWIFTPM_MODULE_BUNDLE;
3636
return [bundle.resourcePath stringByAppendingPathComponent:@"Data"];
3737
#else
3838
NSBundle* bundle = [NSBundle bundleForClass:[self class]];

0 commit comments

Comments
 (0)