Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(all, apple): use modular headers to import #13400

Merged
merged 6 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "Private/FLTDocumentSnapshotStreamHandler.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseFirestore;

#import "Private/FLTFirebaseFirestoreExtension.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import <TargetConditionals.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePlugin.h>

#import "Private/FLTFirebaseFirestoreReader.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
@import FirebaseCore;

#import "Private/FLTFirebaseFirestoreUtils.h"
#import "Private/FLTFirebaseFirestoreExtension.h"
#import "Private/FLTFirebaseFirestoreReader.h"
#import "Private/FLTFirebaseFirestoreUtils.h"
#import "Private/FLTFirebaseFirestoreWriter.h"

@implementation FLTFirebaseFirestoreReaderWriter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePlugin.h>

#import "Private/FLTFirebaseFirestoreUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Created by Russell Wheatley on 05/05/2021.
//

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "Private/FLTFirebaseFirestoreUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "Private/FLTFirebaseFirestoreUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "Private/FLTFirebaseFirestoreUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "Private/FLTFirebaseFirestoreUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <Foundation/Foundation.h>
#import "FLTFirebaseFirestoreExtension.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseFirestore;

#import <Foundation/Foundation.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import "FirestoreMessages.g.h"

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BSD-style license that can be found in the LICENSE file.
*/

#import <Firebase/Firebase.h>
@import FirebaseFirestore;
#import <Foundation/Foundation.h>
#import "FirestoreMessages.g.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import "FLTFirebaseFunctionsPlugin.h"

#import <Firebase/Firebase.h>
@import FirebaseFunctions;
#import <firebase_core/FLTFirebasePluginRegistry.h>

NSString *const kFLTFirebaseFunctionsChannelName = @"plugins.flutter.io/firebase_functions";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import "FLTFirebaseAnalyticsPlugin.h"

#import <Firebase/Firebase.h>
@import FirebaseAnalytics;

#import <firebase_core/FLTFirebasePluginRegistry.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
#import <FirebaseAppCheck/FIRAppCheck.h>
@import FirebaseAppCheck;

@interface FLTAppCheckProvider : NSObject <FIRAppCheckProvider>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

#import <FirebaseAppCheck/FIRAppCheck.h>

#import <Firebase/Firebase.h>
#import <FirebaseAppCheck/FIRAppCheck.h>
@import FirebaseAppCheck;
@import FirebaseCore;

#import "FLTAppCheckProviderFactory.h"

#import "FLTAppCheckProvider.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#import "FLTFirebaseAppCheckPlugin.h"
#import "FLTTokenRefreshStreamHandler.h"

#import <Firebase/Firebase.h>
@import FirebaseAppCheck;

#import <firebase_core/FLTFirebasePluginRegistry.h>
#import "FLTAppCheckProviderFactory.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseAuth;
#import <TargetConditionals.h>
#import <firebase_core/FLTFirebasePluginRegistry.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseAuth;

#import <Foundation/Foundation.h>
#import "CustomPigeonHeader.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseAuth;
#import "CustomPigeonHeader.h"
#import "PigeonParser.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseAuth;
#import "firebase_auth_messages.g.h"

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BSD-style license that can be found in the LICENSE file.
*/

#import <Firebase/Firebase.h>
@import FirebaseAuth;
#import <Foundation/Foundation.h>
#import "firebase_auth_messages.g.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import <TargetConditionals.h>

#import <Firebase/Firebase.h>
@import FirebaseAuth;
#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// Crashlytics
//

#import <Firebase/Firebase.h>
@import FirebaseCrashlytics;

@interface FIRCrashlytics (Platform)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// Crashlytics
//

#import <Firebase/Firebase.h>
@import FirebaseCrashlytics;

@interface FIRExceptionModel (Platform)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseDatabase;
#import <TargetConditionals.h>

#if TARGET_OS_OSX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseDatabase;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "FLTFirebaseDatabaseObserveStreamHandler.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseDatabase;
#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseDatabase;
#import <Foundation/Foundation.h>

@interface FLTFirebaseDatabaseUtils : NSObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseDynamicLinks;
#import <Flutter/Flutter.h>
#import <firebase_core/FLTFirebasePlugin.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
@import FirebaseDynamicLinks;
#import <TargetConditionals.h>
#import <firebase_core/FLTFirebasePluginRegistry.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseMessaging;

#import <Foundation/Foundation.h>
#import <UserNotifications/UserNotifications.h>
#import <firebase_core/FLTFirebasePlugin.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

#import "FLTFirebaseMessagingPlugin.h"

#if __has_include(<FirebaseAuth/FirebaseAuth.h>)
@import FirebaseAuth;
#endif

NSString *const kFLTFirebaseMessagingChannelName = @"plugins.flutter.io/firebase_messaging";

NSString *const kMessagingArgumentCode = @"code";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebasePerformance;
#import <Flutter/Flutter.h>
#import <TargetConditionals.h>
#import <firebase_core/FLTFirebasePlugin.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#import "FLTFirebasePerformancePlugin.h"

#import <Firebase/Firebase.h>

#import <firebase_core/FLTFirebasePluginRegistry.h>

NSString *const kFLTFirebasePerformanceChannelName = @"plugins.flutter.io/firebase_performance";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseRemoteConfig;
#import <firebase_core/FLTFirebasePluginRegistry.h>

#import "FLTFirebaseRemoteConfigPlugin.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Firebase/Firebase.h>
@import FirebaseRemoteConfig;

#import "FLTFirebaseRemoteConfigUtils.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
#import <TargetConditionals.h>

#import <Firebase/Firebase.h>
@import FirebaseStorage;
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import "FLTFirebaseStoragePlugin.h"
#import "FLTTaskStateChannelStreamHandler.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <Flutter/Flutter.h>
#endif

#import <Firebase/Firebase.h>
@import FirebaseStorage;

#import <Foundation/Foundation.h>

Expand Down
Loading