Skip to content

Commit

Permalink
working version of firestore and core
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Oct 22, 2024
1 parent d83fd50 commit eee275f
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ let package = Package(
// .package(name:"flutterfire", path: "../../../../.."),
// TODO - this needs a version instead
// This isn't working
.package(url:"https://github.com/russellwheatley/test-flutterfire", exact: "0.0.19"),
.package(url:"https://github.com/russellwheatley/test-flutterfire", exact: "0.0.24"),
],
targets: [
.target(
name: "cloud_firestore",
dependencies: [
.product(name: "FirebaseFirestore", package: "firebase-ios-sdk"),
// Wrapper dependency
.product(name: "firebase-core-wrapper", package: "test-flutterfire")
.product(name: "firebase-core-shared", package: "test-flutterfire")
],
resources: [
.process("Resources"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

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

#import "include/cloud_firestore/Private/FLTDocumentSnapshotStreamHandler.h"
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.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 FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import <FLTFirebasePluginRegistry.h>

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

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

#import <FLTFirebasePlugin.h>
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreReader.h"
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.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 FirebaseFirestore;
#import <firebase_core/FLTFirebasePlugin.h>
@import FirebaseCore;

#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
#import "include/cloud_firestore/Private/FLTFirebaseFirestoreWriter.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//

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

#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
#import "include/cloud_firestore/Private/FLTLoadBundleStreamHandler.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 FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import <FLTFirebasePluginRegistry.h>

#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
#import "include/cloud_firestore/Private/FLTQuerySnapshotStreamHandler.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 FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import <FLTFirebasePluginRegistry.h>

#import "include/cloud_firestore/Private/FLTFirebaseFirestoreUtils.h"
#import "include/cloud_firestore/Private/FLTSnapshotsInSyncStreamHandler.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 FirebaseFirestore;
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import <FLTFirebasePluginRegistry.h>

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

#import <Foundation/Foundation.h>
#import <firebase_core/FLTFirebasePlugin.h>
#import <FLTFirebasePlugin.h>
#import "FirestoreMessages.g.h"

@interface FLTFirebaseFirestorePlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,22 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: firebase_sdk_version),
.package(url:"https://github.com/russellwheatley/test-flutterfire", exact: "0.0.24"),
],
targets: [
.target(
name: "firebase_core",
dependencies: [
// No product for firebase-core so we pull in the smallest one
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
.product(name: "firebase-core-shared", package: "test-flutterfire")
],
exclude: [
// These are now pulled in as a remote dependency from FlutterFire repo
"FLTFirebasePlugin.m",
"FLTFirebasePluginRegistry.m",
"include/firebase_core/FLTFirebasePlugin.h",
"include/firebase_core/FLTFirebasePluginRegistry.h"
],
resources: [
.process("Resources"),
Expand Down

0 comments on commit eee275f

Please sign in to comment.