Skip to content

Commit 64aedfc

Browse files
authored
[Infra] Sync messaging with recent 1P infra changes (#13793)
1 parent ba8623f commit 64aedfc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

FirebaseMessaging/Sources/FIRMessaging+ExtensionHelper.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ + (FIRMessagingExtensionHelper *)extensionHelper {
3030
return extensionHelper;
3131
}
3232

33+
#if SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
3334
/// Stub used to force the linker to include the categories in this file.
3435
void FIRInclude_FIRMessaging_ExtensionHelper_Category(void) {
3536
}
37+
#endif // SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
3638

3739
@end

FirebaseMessaging/Sources/FIRMessaging.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,9 @@ + (NSString *)FIRMessagingSDKCurrentLocale {
10201020
}
10211021

10221022
#pragma mark - Force Category Linking
1023-
1023+
#if SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
10241024
extern void FIRInclude_FIRMessaging_ExtensionHelper_Category(void);
1025+
#endif // SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
10251026
extern void FIRInclude_NSDictionary_FIRMessaging_Category(void);
10261027
extern void FIRInclude_NSError_FIRMessaging_Category(void);
10271028

@@ -1030,7 +1031,9 @@ + (NSString *)FIRMessagingSDKCurrentLocale {
10301031
/// This method forces the linker to include categories even if
10311032
/// users do not include the '-ObjC' linker flag in their project.
10321033
+ (void)noop {
1034+
#if SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
10331035
FIRInclude_FIRMessaging_ExtensionHelper_Category();
1036+
#endif // SWIFT_PACKAGE || COCOAPODS || FIREBASE_BUILD_CARTHAGE || FIREBASE_BUILD_ZIP_FILE
10341037
FIRInclude_NSDictionary_FIRMessaging_Category();
10351038
FIRInclude_NSError_FIRMessaging_Category();
10361039
}

0 commit comments

Comments
 (0)