Skip to content

Commit

Permalink
[Infra] Only compile core extension headers once (#13993)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Oct 29, 2024
1 parent 0ac8bbb commit 00674c8
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRAppInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRAPPINTERNAL_H
#define FIREBASECORE_FIRAPPINTERNAL_H

#import <FirebaseCore/FIRApp.h>

@class FIRComponentContainer;
Expand Down Expand Up @@ -175,3 +178,5 @@ extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey;
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRAPPINTERNAL_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRCOMPONENT_H
#define FIREBASECORE_FIRCOMPONENT_H

#import <Foundation/Foundation.h>

@class FIRApp;
Expand Down Expand Up @@ -82,3 +85,5 @@ NS_SWIFT_NAME(init(_:instantiationTiming:creationBlock:));
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRCOMPONENT_H
6 changes: 6 additions & 0 deletions FirebaseCore/Extension/FIRComponentContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRCOMPONENTCONTAINER_H
#define FIREBASECORE_FIRCOMPONENTCONTAINER_H

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -43,3 +47,5 @@ NS_SWIFT_NAME(FirebaseComponentContainer)
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRCOMPONENTCONTAINER_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRComponentType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRCOMPONENTTYPE_H
#define FIREBASECORE_FIRCOMPONENTTYPE_H

#import <Foundation/Foundation.h>

@class FIRComponentContainer;
Expand All @@ -33,3 +36,5 @@ NS_SWIFT_NAME(ComponentType)
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRCOMPONENTTYPE_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRHeartbeatLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASECORE_FIRHEARTBEATLOGGER_H
#define FIREBASECORE_FIRHEARTBEATLOGGER_H

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -102,3 +105,5 @@ NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *he
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRHEARTBEATLOGGER_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRLIBRARY_H
#define FIREBASECORE_FIRLIBRARY_H

#ifndef FIRLibrary_h
#define FIRLibrary_h

Expand All @@ -37,3 +40,5 @@ NS_SWIFT_NAME(Library)
NS_ASSUME_NONNULL_END

#endif /* FIRLibrary_h */

#endif // FIREBASECORE_FIRLIBRARY_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FIRLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

#ifndef FIREBASECORE_FIRLOGGER_H
#define FIREBASECORE_FIRLOGGER_H

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, FIRLoggerLevel);
Expand Down Expand Up @@ -191,3 +194,5 @@ NS_SWIFT_NAME(FirebaseLogger)
@end

NS_ASSUME_NONNULL_END

#endif // FIREBASECORE_FIRLOGGER_H
5 changes: 5 additions & 0 deletions FirebaseCore/Extension/FirebaseCoreInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASECORE_FIREBASECOREINTERNAL_H
#define FIREBASECORE_FIREBASECOREINTERNAL_H

@import FirebaseCore;

#import "FIRAppInternal.h"
Expand All @@ -21,3 +24,5 @@
#import "FIRHeartbeatLogger.h"
#import "FIRLibrary.h"
#import "FIRLogger.h"

#endif // FIREBASECORE_FIREBASECOREINTERNAL_H

0 comments on commit 00674c8

Please sign in to comment.