Skip to content

Commit 51fa0a3

Browse files
committed
fix: ios firestore refs
1 parent 8165fac commit 51fa0a3

File tree

8 files changed

+11
-19
lines changed

8 files changed

+11
-19
lines changed

Package.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ let package = Package(
3636
dependencies: [
3737
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
3838
],
39-
path: "packages/firebase_core/firebase_core/ios/firebase_core/Sources/firebase_core",
40-
swiftSettings: [
41-
.define("LIBRARY_VERSION", to: firebase_core_version),
42-
.define("LIBRARY_NAME", to: "flutter-fire-core"),
43-
]
39+
path: "packages/firebase_core/firebase_core/ios/firebase_core/Sources/firebase_core"
4440
),
4541
]
4642
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ - (FlutterError *_Nullable)onListenWithArguments:(id _Nullable)arguments
4747
events([FLTFirebasePluginHelper createFlutterErrorWithCode:code
4848
message:message
4949
optionalDetails:details
50-
andOptionalNSError:error]);
50+
andOptionalError:error]);
5151
});
5252
} else {
5353
dispatch_async(dispatch_get_main_queue(), ^{

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@import FirebaseFirestore;
66
@import FirebaseCore;
7+
@import firebase_core;
78

89
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreWriter.h"
910
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
@@ -39,7 +40,8 @@ - (void)writeValue:(id)value {
3940
} else if ([value isKindOfClass:[FIRDocumentReference class]]) {
4041
FIRDocumentReference *document = value;
4142
NSString *documentPath = [document path];
42-
NSString *appName = [FLTFirebasePlugin firebaseAppNameFromIosName:document.firestore.app.name];
43+
NSString *appName =
44+
[FLTFirebasePluginHelper firebaseAppNameFromIosName:document.firestore.app.name];
4345
[self writeByte:FirestoreDataTypeDocumentReference];
4446
[self writeValue:appName];
4547
[self writeValue:documentPath];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ - (FlutterError *_Nullable)onListenWithArguments:(id _Nullable)arguments
5151
events([FLTFirebasePluginHelper createFlutterErrorWithCode:code
5252
message:message
5353
optionalDetails:details
54-
andOptionalNSError:error]);
54+
andOptionalError:error]);
5555
});
5656
}
5757
}];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (FlutterError *_Nullable)onListenWithArguments:(id _Nullable)arguments
5757
events([FLTFirebasePluginHelper createFlutterErrorWithCode:code
5858
message:message
5959
optionalDetails:details
60-
andOptionalNSError:error]);
60+
andOptionalError:error]);
6161
});
6262
} else {
6363
dispatch_async(dispatch_get_main_queue(), ^{

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

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

55
@import FirebaseFirestore;
66
@import firebase_core;
7+
@import FirebaseCore;
78

89
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
910
#import "include/cloud_firestore/Private/FLTTransactionStreamHandler.h"
@@ -51,8 +52,9 @@ - (FlutterError *_Nullable)onListenWithArguments:(id _Nullable)arguments
5152
strongSelf.started(transaction);
5253

5354
dispatch_async(dispatch_get_main_queue(), ^{
54-
events(
55-
@{@"appName" : [FLTFirebasePlugin firebaseAppNameFromIosName:self.firestore.app.name]});
55+
events(@{
56+
@"appName" : [FLTFirebasePluginHelper firebaseAppNameFromIosName:self.firestore.app.name]
57+
});
5658
});
5759

5860
long timedOut = dispatch_semaphore_wait(

packages/firebase_core/firebase_core/ios/firebase_core/Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ let package = Package(
100100
],
101101
resources: [
102102
.process("Resources"),
103-
],
104-
swiftSettings: [
105-
.define("LIBRARY_VERSION", to: library_version_string),
106-
.define("LIBRARY_NAME", to: "flutter-fire-core"),
107103
]
108104
),
109105
]

packages/firebase_core/firebase_core/macos/firebase_core/Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ let package = Package(
102102
],
103103
resources: [
104104
.process("Resources"),
105-
],
106-
swiftSettings: [
107-
.define("LIBRARY_VERSION", to: library_version_string),
108-
.define("LIBRARY_NAME", to: "flutter-fire-core"),
109105
]
110106
),
111107
]

0 commit comments

Comments
 (0)