Skip to content

Commit

Permalink
Fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-amisha-i authored Aug 15, 2024
1 parent 39da7b5 commit 263d361
Show file tree
Hide file tree
Showing 16 changed files with 344 additions and 145 deletions.
4 changes: 0 additions & 4 deletions Data/Data.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,6 @@
"-framework",
"\"CoreText\"",
"-framework",
"\"FBLPromises\"",
"-framework",
"\"FirebaseAppCheckInterop\"",
"-framework",
"\"FirebaseAuth\"",
Expand Down Expand Up @@ -804,8 +802,6 @@
"-framework",
"\"CoreText\"",
"-framework",
"\"FBLPromises\"",
"-framework",
"\"FirebaseAppCheckInterop\"",
"-framework",
"\"FirebaseAuth\"",
Expand Down
4 changes: 2 additions & 2 deletions Data/Data/DI/AppAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation
import Swinject
import FirebaseFirestoreInternal
import FirebaseFirestore

public class AppAssembly: Assembly {

Expand All @@ -26,7 +26,7 @@ public class AppAssembly: Assembly {
container.register(Firestore.self) { _ in
let db = Firestore.firestore()
let settings = FirestoreSettings()
settings.cacheSettings = MemoryCacheSettings(garbageCollectorSettings: MemoryLRUGCSettings())
settings.isPersistenceEnabled = false
db.settings = settings
return db
}.inObjectScope(.container)
Expand Down
2 changes: 1 addition & 1 deletion Data/Data/Extension/Timestamp+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import Foundation
import FirebaseFirestoreInternal
import FirebaseFirestore

extension Timestamp: Comparable {
public static func < (lhs: Timestamp, rhs: Timestamp) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion Data/Data/Store/GroupStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class GroupStore: ObservableObject {
func fetchLatestGroups(userId: String) -> AnyPublisher<[Groups], ServiceError> {
database.collection(COLLECTION_NAME)
.whereField("members", arrayContains: userId)
.limit(to: 20)
.limit(to: 10)
.snapshotPublisher(as: Groups.self)
}

Expand Down
Loading

0 comments on commit 263d361

Please sign in to comment.