Skip to content

Commit 8ceb3b3

Browse files
authored
Restore Firebase.h to pre-6.28.0 style (#6367)
* Restore Firebase.h now that SPM supports same public header path as CocoaPods
1 parent 80e11b5 commit 8ceb3b3

File tree

2 files changed

+9
-34
lines changed

2 files changed

+9
-34
lines changed

CoreOnly/Sources/Firebase.h

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

15-
// The module qualified imports are for CocoaPods and the simple file names
16-
// for Swift Package Manager.
15+
#import <FirebaseCore/FirebaseCore.h>
1716

1817
#if !defined(__has_include)
1918
#error "Firebase.h won't import anything if your compiler doesn't support __has_include. Please \
2019
import the headers individually."
2120
#else
22-
#if __has_include(<FirebaseCore/FirebaseCore.h>)
23-
#import <FirebaseCore/FirebaseCore.h>
24-
#elif __has_include("FirebaseCore.h")
25-
#import "FirebaseCore.h"
26-
#endif
27-
2821
#if __has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
2922
#import <FirebaseAnalytics/FirebaseAnalytics.h>
3023
#endif
3124
32-
#if __has_include(<FirebaseAuth/FirebaseAuth.h>)
33-
#import <FirebaseAuth/FirebaseAuth.h>
34-
#elif __has_include("FirebaseAuth.h")
35-
#import "FirebaseAuth.h"
36-
#endif
37-
3825
#if __has_include(<FirebaseAppDistribution/FirebaseAppDistribution.h>)
3926
#import <FirebaseAppDistribution/FirebaseAppDistribution.h>
40-
#elif __has_include("FirebaseAppDistribution.h")
41-
#import "FirebaseAppDistribution.h"
27+
#endif
28+
29+
#if __has_include(<FirebaseAuth/FirebaseAuth.h>)
30+
#import <FirebaseAuth/FirebaseAuth.h>
4231
#endif
4332
4433
#if __has_include(<FirebaseCrashlytics/FirebaseCrashlytics.h>)
4534
#import <FirebaseCrashlytics/FirebaseCrashlytics.h>
46-
#elif __has_include("FirebaseCrashlytics.h")
47-
#import "FirebaseCrashlytics.h"
4835
#endif
4936
5037
#if __has_include(<FirebaseDatabase/FirebaseDatabase.h>)
5138
#import <FirebaseDatabase/FirebaseDatabase.h>
52-
#elif __has_include("FirebaseDatabase.h")
53-
#import "FirebaseDatabase.h"
5439
#endif
5540
5641
#if __has_include(<FirebaseDynamicLinks/FirebaseDynamicLinks.h>)
@@ -62,20 +47,14 @@
6247
Firebase Dynamic Links works as intended."
6348
#endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
6449
#endif
65-
#elif __has_include("FirebaseDynamicLinks.h")
66-
#import "FirebaseDynamicLinks.h"
6750
#endif
6851
6952
#if __has_include(<FirebaseFirestore/FirebaseFirestore.h>)
7053
#import <FirebaseFirestore/FirebaseFirestore.h>
71-
#elif __has_include("FirebaseFirestore.h")
72-
#import "FirebaseFirestore.h"
7354
#endif
7455
7556
#if __has_include(<FirebaseFunctions/FirebaseFunctions.h>)
7657
#import <FirebaseFunctions/FirebaseFunctions.h>
77-
#elif __has_include("FirebaseFunctions.h")
78-
#import "FirebaseFunctions.h"
7958
#endif
8059
8160
#if __has_include(<FirebaseInAppMessaging/FirebaseInAppMessaging.h>)
@@ -87,8 +66,6 @@ Firebase Dynamic Links works as intended."
8766
Firebase In App Messaging works as intended."
8867
#endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
8968
#endif
90-
#elif __has_include("FirebaseInAppMessaging.h")
91-
#import "FirebaseInAppMessaging.h"
9269
#endif
9370
9471
#if __has_include(<FirebaseInstanceID/FirebaseInstanceID.h>)
@@ -104,8 +81,6 @@ Firebase In App Messaging works as intended."
10481
Firebase Messaging works as intended."
10582
#endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
10683
#endif
107-
#elif __has_include("FirebaseMessaging.h")
108-
#import "FirebaseMessaging.h"
10984
#endif
11085
11186
#if __has_include(<FirebaseMLCommon/FirebaseMLCommon.h>)
@@ -180,14 +155,10 @@ Firebase Performance works as intended."
180155
Firebase Remote Config works as intended."
181156
#endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
182157
#endif
183-
#elif __has_include("FirebaseRemoteConfig.h")
184-
#import "FirebaseRemoteConfig.h"
185158
#endif
186159
187160
#if __has_include(<FirebaseStorage/FirebaseStorage.h>)
188161
#import <FirebaseStorage/FirebaseStorage.h>
189-
#elif __has_include("FirebaseStorage.h")
190-
#import "FirebaseStorage.h"
191162
#endif
192163
193164
#if __has_include(<GoogleMobileAds/GoogleMobileAds.h>)

FirebaseCore/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [fixed] Sporadic missing FirebaseApp symbol build issue introduced in Firebase 6.28.0. (#6341)
3+
4+
15
# v6.10.1 -- M78
26
- [added] Beta release of Swift Package Manager. Details
37
[here](https://github.com/firebase/firebase-ios-sdk/blob/master/SwiftPackageManager.md). (#3136)

0 commit comments

Comments
 (0)