File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,17 @@ - (void)terminateInternalWithCompletion:(nullable void (^)(NSError *_Nullable er
545
545
_firestore->Terminate (MakeCallback (completion));
546
546
}
547
547
548
+ #pragma mark - Force Link Unreferenced Symbols
549
+
550
+ extern void FSTIncludeFSTFirestoreComponent (void );
551
+
552
+ // / This method forces the linker to include all the Analytics categories without requiring app
553
+ // / developers to include the '-ObjC' linker flag in their projects. DO NOT CALL THIS METHOD.
554
+ + (void )notCalled {
555
+ NSAssert (NO , @" +notCalled should never be called" );
556
+ FSTIncludeFSTFirestoreComponent ();
557
+ }
558
+
548
559
@end
549
560
550
561
NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change @@ -176,4 +176,9 @@ + (void)load {
176
176
177
177
@end
178
178
179
+ // / This function forces the linker to include `FSTFirestoreComponent`. See `+[FIRFirestore
180
+ // / notCalled]`.
181
+ void FSTIncludeFSTFirestoreComponent (void ) {
182
+ }
183
+
179
184
NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments