Skip to content

Commit 8165fac

Browse files
committed
fix: firestore references and macos plugin
1 parent f68ed14 commit 8165fac

File tree

7 files changed

+12
-34
lines changed

7 files changed

+12
-34
lines changed

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTDocumentSnapshotStreamHandler.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// found in the LICENSE file.
44

55
@import FirebaseFirestore;
6-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
7-
#import <firebase_core/FLTFirebasePluginRegistry.h>
8-
#else
9-
#import <FLTFirebasePluginRegistry.h>
10-
#endif
6+
@import firebase_core;
117

128
#import "include/cloud_firestore/Private/FLTDocumentSnapshotStreamHandler.h"
139
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTFirebaseFirestorePlugin.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// found in the LICENSE file.
44

55
@import FirebaseFirestore;
6-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
7-
#import <firebase_core/FLTFirebasePluginRegistry.h>
8-
#else
9-
#import <FLTFirebasePluginRegistry.h>
10-
#endif
6+
@import firebase_core;
117

128
#import <TargetConditionals.h>
139
#import "FirebaseFirestoreInternal/FIRPersistentCacheIndexManager.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTLoadBundleStreamHandler.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
//
1111

1212
@import FirebaseFirestore;
13-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
14-
#import <firebase_core/FLTFirebasePluginRegistry.h>
15-
#else
16-
#import <FLTFirebasePluginRegistry.h>
17-
#endif
13+
@import firebase_core;
1814

1915
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
2016
#import "include/cloud_firestore/Private/FLTLoadBundleStreamHandler.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTQuerySnapshotStreamHandler.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// found in the LICENSE file.
44

55
@import FirebaseFirestore;
6-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
7-
#import <firebase_core/FLTFirebasePluginRegistry.h>
8-
#else
9-
#import <FLTFirebasePluginRegistry.h>
10-
#endif
6+
@import firebase_core;
117

128
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
139
#import "include/cloud_firestore/Private/FLTQuerySnapshotStreamHandler.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTTransactionStreamHandler.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// found in the LICENSE file.
44

55
@import FirebaseFirestore;
6-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
7-
#import <firebase_core/FLTFirebasePluginRegistry.h>
8-
#else
9-
#import <FLTFirebasePluginRegistry.h>
10-
#endif
6+
@import firebase_core;
117

128
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
139
#import "include/cloud_firestore/Private/FLTTransactionStreamHandler.h"

packages/firebase_core/firebase_core/ios/firebase_core/Sources/firebase_core/FLTFirebaseCorePlugin.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ import Foundation
2020

2121
@objc public static func register(with registrar: FlutterPluginRegistrar) {
2222
let instance = sharedInstance()
23-
#if !os(macOS)
23+
#if os(macOS)
24+
let messenger = registrar.messenger
25+
#else
2426
registrar.publish(instance)
27+
let messenger = registrar.messenger()
2528
#endif
26-
FirebaseCoreHostApiSetup.setUp(binaryMessenger: registrar.messenger(), api: instance)
27-
FirebaseAppHostApiSetup.setUp(binaryMessenger: registrar.messenger(), api: instance)
29+
FirebaseCoreHostApiSetup.setUp(binaryMessenger: messenger, api: instance)
30+
FirebaseAppHostApiSetup.setUp(binaryMessenger: messenger, api: instance)
2831
}
2932

3033
// Returns a singleton instance of the Firebase Core plugin.

packages/firebase_in_app_messaging/firebase_in_app_messaging/ios/firebase_in_app_messaging/Sources/firebase_in_app_messaging/FirebaseInAppMessagingPlugin.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
#import "FirebaseInAppMessagingPlugin.h"
66

77
@import FirebaseInAppMessaging;
8-
9-
#if __has_include(<firebase_core/FLTFirebasePluginRegistry.h>)
10-
#import <firebase_core/FLTFirebasePluginRegistry.h>
11-
#else
12-
#import <FLTFirebasePluginRegistry.h>
13-
#endif
8+
@import firebase_core;
149

1510
NSString *const kFLTFirebaseInAppMessagingChannelName =
1611
@"plugins.flutter.io/firebase_in_app_messaging";

0 commit comments

Comments
 (0)