Skip to content

Commit 10aecdc

Browse files
committed
adding Firebase to new app
1 parent 98f6c7d commit 10aecdc

File tree

4 files changed

+107
-1
lines changed

4 files changed

+107
-1
lines changed

firestore/FirestoreExample.xcodeproj/project.pbxproj

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
10734773203159E4004A66D1 /* FirestoreExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10734772203159E4004A66D1 /* FirestoreExampleUITests.swift */; };
1111
17A59DABA36D9AC5023013DC /* Pods_FirestoreExampleTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F06EE677855DD5408318949 /* Pods_FirestoreExampleTests.framework */; };
12+
6BDB9736838DAD2C267630EC /* Pods_FirestoreSwiftUIExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B1197C1340BA7906456ECA9D /* Pods_FirestoreSwiftUIExample.framework */; };
1213
8D004D2D1EE879B5004DEF35 /* FiltersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D004D2C1EE879B5004DEF35 /* FiltersViewController.swift */; };
1314
8D5DF7021F7EF3BA00B0D24F /* NewReviewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D5DF7011F7EF3BA00B0D24F /* NewReviewViewController.swift */; };
1415
8D9BBC311EE2200900194E9A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D9BBC301EE2200900194E9A /* AppDelegate.swift */; };
@@ -28,6 +29,7 @@
2829
8E4C62D525E9CFE1001678A1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E4C62D425E9CFE1001678A1 /* Assets.xcassets */; };
2930
8E4C62D825E9CFE1001678A1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E4C62D725E9CFE1001678A1 /* Preview Assets.xcassets */; };
3031
8E4C62E725E9D191001678A1 /* RestaurantItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E4C62E625E9D191001678A1 /* RestaurantItemView.swift */; };
32+
8E4C630125EDB1CD001678A1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8E4C630025EDB1CD001678A1 /* GoogleService-Info.plist */; };
3133
928F7382D38D4F9DB48A15EF /* Pods_FirestoreExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 541C1C9953818121C760549F /* Pods_FirestoreExample.framework */; };
3234
DE8564AE23AFBF8000611383 /* FirestoreUITest.m in Sources */ = {isa = PBXBuildFile; fileRef = DE8564AD23AFBF8000611383 /* FirestoreUITest.m */; };
3335
DE8564B423AFBFA700611383 /* FIREGSignInHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = DE8564B123AFBFA700611383 /* FIREGSignInHelper.m */; };
@@ -60,6 +62,8 @@
6062
541C1C9953818121C760549F /* Pods_FirestoreExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FirestoreExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6163
5E061378446E0C94591F66BB /* Pods-FirestoreExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestoreExample.debug.xcconfig"; path = "Target Support Files/Pods-FirestoreExample/Pods-FirestoreExample.debug.xcconfig"; sourceTree = "<group>"; };
6264
67EC4DBEC0E7E0173AAD52BB /* Pods-FirestoreExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestoreExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-FirestoreExampleTests/Pods-FirestoreExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
65+
69E06C6BE4126254443723D8 /* Pods-FirestoreSwiftUIExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestoreSwiftUIExample.debug.xcconfig"; path = "Target Support Files/Pods-FirestoreSwiftUIExample/Pods-FirestoreSwiftUIExample.debug.xcconfig"; sourceTree = "<group>"; };
66+
8B95363C336E2E984E5FAEAF /* Pods-FirestoreSwiftUIExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestoreSwiftUIExample.release.xcconfig"; path = "Target Support Files/Pods-FirestoreSwiftUIExample/Pods-FirestoreSwiftUIExample.release.xcconfig"; sourceTree = "<group>"; };
6367
8D004D2C1EE879B5004DEF35 /* FiltersViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FiltersViewController.swift; sourceTree = "<group>"; };
6468
8D5DF7011F7EF3BA00B0D24F /* NewReviewViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewReviewViewController.swift; sourceTree = "<group>"; };
6569
8D9BBC2D1EE2200900194E9A /* FirestoreExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FirestoreExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -85,6 +89,8 @@
8589
8E4C62D725E9CFE1001678A1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
8690
8E4C62D925E9CFE1001678A1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8791
8E4C62E625E9D191001678A1 /* RestaurantItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RestaurantItemView.swift; sourceTree = "<group>"; };
92+
8E4C630025EDB1CD001678A1 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../SwiftUIRewrite/GoogleService-Info.plist"; sourceTree = "<group>"; };
93+
B1197C1340BA7906456ECA9D /* Pods_FirestoreSwiftUIExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FirestoreSwiftUIExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8894
D3859CC2659F6A304C12A137 /* Pods-FirestoreExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestoreExample.release.xcconfig"; path = "Target Support Files/Pods-FirestoreExample/Pods-FirestoreExample.release.xcconfig"; sourceTree = "<group>"; };
8995
DE8564AC23AFBF8000611383 /* FirestoreExampleUITests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "FirestoreExampleUITests-Bridging-Header.h"; sourceTree = "<group>"; };
9096
DE8564AD23AFBF8000611383 /* FirestoreUITest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FirestoreUITest.m; sourceTree = "<group>"; };
@@ -123,6 +129,7 @@
123129
isa = PBXFrameworksBuildPhase;
124130
buildActionMask = 2147483647;
125131
files = (
132+
6BDB9736838DAD2C267630EC /* Pods_FirestoreSwiftUIExample.framework in Frameworks */,
126133
);
127134
runOnlyForDeploymentPostprocessing = 0;
128135
};
@@ -147,6 +154,8 @@
147154
D3859CC2659F6A304C12A137 /* Pods-FirestoreExample.release.xcconfig */,
148155
67EC4DBEC0E7E0173AAD52BB /* Pods-FirestoreExampleTests.debug.xcconfig */,
149156
3F9160186433CFE9BE35B9E3 /* Pods-FirestoreExampleTests.release.xcconfig */,
157+
69E06C6BE4126254443723D8 /* Pods-FirestoreSwiftUIExample.debug.xcconfig */,
158+
8B95363C336E2E984E5FAEAF /* Pods-FirestoreSwiftUIExample.release.xcconfig */,
150159
);
151160
path = Pods;
152161
sourceTree = "<group>";
@@ -213,6 +222,7 @@
213222
8E4C62D025E9CFE0001678A1 /* FirestoreSwiftUIExampleApp.swift */,
214223
8E4C62D425E9CFE1001678A1 /* Assets.xcassets */,
215224
8E4C62D925E9CFE1001678A1 /* Info.plist */,
225+
8E4C630025EDB1CD001678A1 /* GoogleService-Info.plist */,
216226
8E4C62D625E9CFE1001678A1 /* Preview Content */,
217227
);
218228
path = FirestoreSwiftUIExample;
@@ -253,6 +263,7 @@
253263
children = (
254264
541C1C9953818121C760549F /* Pods_FirestoreExample.framework */,
255265
3F06EE677855DD5408318949 /* Pods_FirestoreExampleTests.framework */,
266+
B1197C1340BA7906456ECA9D /* Pods_FirestoreSwiftUIExample.framework */,
256267
);
257268
name = Frameworks;
258269
sourceTree = "<group>";
@@ -321,9 +332,11 @@
321332
isa = PBXNativeTarget;
322333
buildConfigurationList = 8E4C62DC25E9CFE1001678A1 /* Build configuration list for PBXNativeTarget "FirestoreSwiftUIExample" */;
323334
buildPhases = (
335+
6AB07EE14EF468D967CAA046 /* [CP] Check Pods Manifest.lock */,
324336
8E4C62CA25E9CFE0001678A1 /* Sources */,
325337
8E4C62CB25E9CFE0001678A1 /* Frameworks */,
326338
8E4C62CC25E9CFE0001678A1 /* Resources */,
339+
9F960C9035ECDF521452D4E1 /* [CP] Embed Pods Frameworks */,
327340
);
328341
buildRules = (
329342
);
@@ -421,6 +434,7 @@
421434
files = (
422435
8E4C62D825E9CFE1001678A1 /* Preview Assets.xcassets in Resources */,
423436
8E4C62D525E9CFE1001678A1 /* Assets.xcassets in Resources */,
437+
8E4C630125EDB1CD001678A1 /* GoogleService-Info.plist in Resources */,
424438
);
425439
runOnlyForDeploymentPostprocessing = 0;
426440
};
@@ -447,6 +461,28 @@
447461
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FirestoreExample/Pods-FirestoreExample-resources.sh\"\n";
448462
showEnvVarsInLog = 0;
449463
};
464+
6AB07EE14EF468D967CAA046 /* [CP] Check Pods Manifest.lock */ = {
465+
isa = PBXShellScriptBuildPhase;
466+
buildActionMask = 2147483647;
467+
files = (
468+
);
469+
inputFileListPaths = (
470+
);
471+
inputPaths = (
472+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
473+
"${PODS_ROOT}/Manifest.lock",
474+
);
475+
name = "[CP] Check Pods Manifest.lock";
476+
outputFileListPaths = (
477+
);
478+
outputPaths = (
479+
"$(DERIVED_FILE_DIR)/Pods-FirestoreSwiftUIExample-checkManifestLockResult.txt",
480+
);
481+
runOnlyForDeploymentPostprocessing = 0;
482+
shellPath = /bin/sh;
483+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
484+
showEnvVarsInLog = 0;
485+
};
450486
9869DB65A4C92A0180BDD26C /* [CP] Check Pods Manifest.lock */ = {
451487
isa = PBXShellScriptBuildPhase;
452488
buildActionMask = 2147483647;
@@ -469,6 +505,56 @@
469505
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
470506
showEnvVarsInLog = 0;
471507
};
508+
9F960C9035ECDF521452D4E1 /* [CP] Embed Pods Frameworks */ = {
509+
isa = PBXShellScriptBuildPhase;
510+
buildActionMask = 2147483647;
511+
files = (
512+
);
513+
inputPaths = (
514+
"${PODS_ROOT}/Target Support Files/Pods-FirestoreSwiftUIExample/Pods-FirestoreSwiftUIExample-frameworks.sh",
515+
"${BUILT_PRODUCTS_DIR}/BoringSSL-GRPC/openssl_grpc.framework",
516+
"${BUILT_PRODUCTS_DIR}/FirebaseAuth/FirebaseAuth.framework",
517+
"${BUILT_PRODUCTS_DIR}/FirebaseCore/FirebaseCore.framework",
518+
"${BUILT_PRODUCTS_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework",
519+
"${BUILT_PRODUCTS_DIR}/FirebaseFirestore/FirebaseFirestore.framework",
520+
"${BUILT_PRODUCTS_DIR}/FirebaseFirestoreSwift/FirebaseFirestoreSwift.framework",
521+
"${BUILT_PRODUCTS_DIR}/FirebaseInstallations/FirebaseInstallations.framework",
522+
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework",
523+
"${BUILT_PRODUCTS_DIR}/GoogleDataTransport/GoogleDataTransport.framework",
524+
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
525+
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
526+
"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
527+
"${BUILT_PRODUCTS_DIR}/abseil/absl.framework",
528+
"${BUILT_PRODUCTS_DIR}/gRPC-C++/grpcpp.framework",
529+
"${BUILT_PRODUCTS_DIR}/gRPC-Core/grpc.framework",
530+
"${BUILT_PRODUCTS_DIR}/leveldb-library/leveldb.framework",
531+
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
532+
);
533+
name = "[CP] Embed Pods Frameworks";
534+
outputPaths = (
535+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/openssl_grpc.framework",
536+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseAuth.framework",
537+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCore.framework",
538+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreDiagnostics.framework",
539+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseFirestore.framework",
540+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseFirestoreSwift.framework",
541+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseInstallations.framework",
542+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework",
543+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleDataTransport.framework",
544+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
545+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
546+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
547+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/absl.framework",
548+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpcpp.framework",
549+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpc.framework",
550+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/leveldb.framework",
551+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
552+
);
553+
runOnlyForDeploymentPostprocessing = 0;
554+
shellPath = /bin/sh;
555+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FirestoreSwiftUIExample/Pods-FirestoreSwiftUIExample-frameworks.sh\"\n";
556+
showEnvVarsInLog = 0;
557+
};
472558
C1FB13C9F5193FB725A83CEB /* [CP] Embed Pods Frameworks */ = {
473559
isa = PBXShellScriptBuildPhase;
474560
buildActionMask = 2147483647;
@@ -860,6 +946,7 @@
860946
};
861947
8E4C62DA25E9CFE1001678A1 /* Debug */ = {
862948
isa = XCBuildConfiguration;
949+
baseConfigurationReference = 69E06C6BE4126254443723D8 /* Pods-FirestoreSwiftUIExample.debug.xcconfig */;
863950
buildSettings = {
864951
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
865952
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
@@ -885,6 +972,7 @@
885972
};
886973
8E4C62DB25E9CFE1001678A1 /* Release */ = {
887974
isa = XCBuildConfiguration;
975+
baseConfigurationReference = 8B95363C336E2E984E5FAEAF /* Pods-FirestoreSwiftUIExample.release.xcconfig */;
888976
buildSettings = {
889977
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
890978
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;

firestore/FirestoreSwiftUIExample/FirestoreSwiftUIExampleApp.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77
//
88

99
import SwiftUI
10+
import Firebase
1011

1112
@main
1213
struct FirestoreSwiftUIExampleApp: App {
14+
15+
init() {
16+
FirebaseApp.configure()
17+
}
18+
1319
var body: some Scene {
1420
WindowGroup {
1521
ContentView()

firestore/Podfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ target 'FirestoreExample' do
1515
inherit! :search_paths
1616
end
1717
end
18+
19+
target 'FirestoreSwiftUIExample' do
20+
use_frameworks!
21+
22+
pod 'Firebase/Analytics'
23+
pod 'Firebase/Auth'
24+
# pod 'FirebaseUI/Auth'
25+
# pod 'FirebaseUI/Email'
26+
pod 'Firebase/Firestore'
27+
pod 'FirebaseFirestoreSwift', "~> 7.0-beta"
28+
pod 'SDWebImage'
29+
end

firestore/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,6 @@ SPEC CHECKSUMS:
397397
PromisesObjC: 3113f7f76903778cf4a0586bd1ab89329a0b7b97
398398
SDWebImage: c666b97e1fa9c64b4909816a903322018f0a9c84
399399

400-
PODFILE CHECKSUM: 1a13a0ce6ccda1172ee86ae3cbeada904d7efa6a
400+
PODFILE CHECKSUM: c84c0ddc2710245ae619c050f9ab9128baca858a
401401

402402
COCOAPODS: 1.10.1

0 commit comments

Comments
 (0)