From c48033c67633af8b2a859ae5404147121b19d647 Mon Sep 17 00:00:00 2001 From: Aashish Patil Date: Wed, 18 Sep 2024 17:12:42 -0700 Subject: [PATCH] Change GrpcClient to private set --- Sources/DataConnect.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/DataConnect.swift b/Sources/DataConnect.swift index 6a1b4ab..4688380 100644 --- a/Sources/DataConnect.swift +++ b/Sources/DataConnect.swift @@ -24,7 +24,7 @@ public class DataConnect { private var app: FirebaseApp private var settings: DataConnectSettings - var grpcClient: GrpcClient + private(set) var grpcClient: GrpcClient private var operationsManager: OperationsManager private static var instanceStore = InstanceStore() @@ -57,7 +57,7 @@ public class DataConnect { // self.grpcClient.close // self.operations.close - guard let projectID = app.options.projectID else { + guard app.options.projectID != nil else { fatalError("Firebase DataConnect requires the projectID to be set in the app options") }