Skip to content

Commit aee0188

Browse files
committed
fix: swift integ
1 parent 7bbc321 commit aee0188

File tree

22 files changed

+88
-0
lines changed

22 files changed

+88
-0
lines changed

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

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

55
@import FirebaseFirestore;
6+
#if __has_include(<firebase_core/firebase_core.h>)
67
@import firebase_core;
8+
#else
9+
@import firebase_core_shared;
10+
#endif
711

812
#import "include/cloud_firestore/Private/FLTDocumentSnapshotStreamHandler.h"
913
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

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

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

55
@import FirebaseFirestore;
6+
#if __has_include(<firebase_core/firebase_core.h>)
67
@import firebase_core;
8+
#else
9+
@import firebase_core_shared;
10+
#endif
711
@import FirebaseCore;
812

913
#import "include/cloud_firestore/Public/FLTFirebaseFirestorePlugin.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTFirebaseFirestoreReader.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
@import FirebaseFirestore;
66
@import FirebaseCore;
7+
#if __has_include(<firebase_core/firebase_core.h>)
78
@import firebase_core;
9+
#else
10+
@import firebase_core_shared;
11+
#endif
812

913
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreReader.h"
1014
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/FLTFirebaseFirestoreWriter.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
@import FirebaseFirestore;
66
@import FirebaseCore;
7+
#if __has_include(<firebase_core/firebase_core.h>)
78
@import firebase_core;
9+
#else
10+
@import firebase_core_shared;
11+
#endif
812

913
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreWriter.h"
1014
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
//
1111

1212
@import FirebaseFirestore;
13+
#if __has_include(<firebase_core/firebase_core.h>)
1314
@import firebase_core;
15+
#else
16+
@import firebase_core_shared;
17+
#endif
1418

1519
#import "include/cloud_firestore/Private/FLTLoadBundleStreamHandler.h"
1620
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

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

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

55
@import FirebaseFirestore;
6+
#if __has_include(<firebase_core/firebase_core.h>)
67
@import firebase_core;
8+
#else
9+
@import firebase_core_shared;
10+
#endif
711

812
#import "include/cloud_firestore/Private/FLTQuerySnapshotStreamHandler.h"
913
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"

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

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

55
@import FirebaseFirestore;
6+
#if __has_include(<firebase_core/firebase_core.h>)
67
@import firebase_core;
8+
#else
9+
@import firebase_core_shared;
10+
#endif
711
@import FirebaseCore;
812

913
#import "include/cloud_firestore/Private/FLTTransactionStreamHandler.h"

packages/cloud_firestore/cloud_firestore/ios/cloud_firestore/Sources/cloud_firestore/include/cloud_firestore/Public/FLTFirebaseFirestorePlugin.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#endif
1111

1212
#import <Foundation/Foundation.h>
13+
#if __has_include(<firebase_core/firebase_core.h>)
1314
@import firebase_core;
15+
#else
16+
@import firebase_core_shared;
17+
#endif
1418
#import "FirestoreMessages.g.h"
1519

1620
@interface FLTFirebaseFirestorePlugin

packages/firebase_app_check/firebase_app_check/ios/firebase_app_check/Sources/firebase_app_check/FLTFirebaseAppCheckPlugin.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
#import "FLTTokenRefreshStreamHandler.h"
77

88
@import FirebaseAppCheck;
9+
#if __has_include(<firebase_core/firebase_core.h>)
910
@import firebase_core;
11+
#else
12+
@import firebase_core_shared;
13+
#endif
1014
@import FirebaseCore;
1115

1216
#import "FLTAppCheckProviderFactory.h"

packages/firebase_app_check/firebase_app_check/ios/firebase_app_check/Sources/firebase_app_check/include/FLTFirebaseAppCheckPlugin.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#endif
1111

1212
#import <Foundation/Foundation.h>
13+
#if __has_include(<firebase_core/firebase_core.h>)
1314
@import firebase_core;
15+
#else
16+
@import firebase_core_shared;
17+
#endif
1418
#import "FLTAppCheckProviderFactory.h"
1519

1620
@interface FLTFirebaseAppCheckPlugin : NSObject <FlutterPlugin, FLTFirebasePlugin>

0 commit comments

Comments
 (0)