Skip to content

Commit

Permalink
fix(all, apple): use modular headers to import (#13400)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley authored Sep 25, 2024
1 parent 40521d1 commit d7d2d4b
Show file tree
Hide file tree
Showing 41 changed files with 48 additions and 44 deletions.
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

0 comments on commit d7d2d4b

Please sign in to comment.