Skip to content

Commit 00674c8

Browse files
authored
[Infra] Only compile core extension headers once (#13993)
1 parent 0ac8bbb commit 00674c8

File tree

8 files changed

+41
-0
lines changed

8 files changed

+41
-0
lines changed

FirebaseCore/Extension/FIRAppInternal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef FIREBASECORE_FIRAPPINTERNAL_H
18+
#define FIREBASECORE_FIRAPPINTERNAL_H
19+
1720
#import <FirebaseCore/FIRApp.h>
1821

1922
@class FIRComponentContainer;
@@ -175,3 +178,5 @@ extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey;
175178
@end
176179

177180
NS_ASSUME_NONNULL_END
181+
182+
#endif // FIREBASECORE_FIRAPPINTERNAL_H

FirebaseCore/Extension/FIRComponent.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef FIREBASECORE_FIRCOMPONENT_H
18+
#define FIREBASECORE_FIRCOMPONENT_H
19+
1720
#import <Foundation/Foundation.h>
1821

1922
@class FIRApp;
@@ -82,3 +85,5 @@ NS_SWIFT_NAME(init(_:instantiationTiming:creationBlock:));
8285
@end
8386

8487
NS_ASSUME_NONNULL_END
88+
89+
#endif // FIREBASECORE_FIRCOMPONENT_H

FirebaseCore/Extension/FIRComponentContainer.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#ifndef FIREBASECORE_FIRCOMPONENTCONTAINER_H
18+
#define FIREBASECORE_FIRCOMPONENTCONTAINER_H
19+
1620
#import <Foundation/Foundation.h>
1721

1822
NS_ASSUME_NONNULL_BEGIN
@@ -43,3 +47,5 @@ NS_SWIFT_NAME(FirebaseComponentContainer)
4347
@end
4448

4549
NS_ASSUME_NONNULL_END
50+
51+
#endif // FIREBASECORE_FIRCOMPONENTCONTAINER_H

FirebaseCore/Extension/FIRComponentType.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef FIREBASECORE_FIRCOMPONENTTYPE_H
18+
#define FIREBASECORE_FIRCOMPONENTTYPE_H
19+
1720
#import <Foundation/Foundation.h>
1821

1922
@class FIRComponentContainer;
@@ -33,3 +36,5 @@ NS_SWIFT_NAME(ComponentType)
3336
@end
3437

3538
NS_ASSUME_NONNULL_END
39+
40+
#endif // FIREBASECORE_FIRCOMPONENTTYPE_H

FirebaseCore/Extension/FIRHeartbeatLogger.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#ifndef FIREBASECORE_FIRHEARTBEATLOGGER_H
16+
#define FIREBASECORE_FIRHEARTBEATLOGGER_H
17+
1518
#import <Foundation/Foundation.h>
1619

1720
NS_ASSUME_NONNULL_BEGIN
@@ -102,3 +105,5 @@ NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *he
102105
@end
103106

104107
NS_ASSUME_NONNULL_END
108+
109+
#endif // FIREBASECORE_FIRHEARTBEATLOGGER_H

FirebaseCore/Extension/FIRLibrary.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef FIREBASECORE_FIRLIBRARY_H
18+
#define FIREBASECORE_FIRLIBRARY_H
19+
1720
#ifndef FIRLibrary_h
1821
#define FIRLibrary_h
1922

@@ -37,3 +40,5 @@ NS_SWIFT_NAME(Library)
3740
NS_ASSUME_NONNULL_END
3841

3942
#endif /* FIRLibrary_h */
43+
44+
#endif // FIREBASECORE_FIRLIBRARY_H

FirebaseCore/Extension/FIRLogger.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef FIREBASECORE_FIRLOGGER_H
18+
#define FIREBASECORE_FIRLOGGER_H
19+
1720
#import <Foundation/Foundation.h>
1821

1922
typedef NS_ENUM(NSInteger, FIRLoggerLevel);
@@ -191,3 +194,5 @@ NS_SWIFT_NAME(FirebaseLogger)
191194
@end
192195

193196
NS_ASSUME_NONNULL_END
197+
198+
#endif // FIREBASECORE_FIRLOGGER_H

FirebaseCore/Extension/FirebaseCoreInternal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#ifndef FIREBASECORE_FIREBASECOREINTERNAL_H
16+
#define FIREBASECORE_FIREBASECOREINTERNAL_H
17+
1518
@import FirebaseCore;
1619

1720
#import "FIRAppInternal.h"
@@ -21,3 +24,5 @@
2124
#import "FIRHeartbeatLogger.h"
2225
#import "FIRLibrary.h"
2326
#import "FIRLogger.h"
27+
28+
#endif // FIREBASECORE_FIREBASECOREINTERNAL_H

0 commit comments

Comments
 (0)