Skip to content

Commit f400aea

Browse files
committed
Update Pod file with Firebase pods
1 parent 5831f27 commit f400aea

File tree

6 files changed

+134
-2
lines changed

6 files changed

+134
-2
lines changed

FoodApp/FoodApp.xcodeproj/project.pbxproj

+86
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
50406A6BE525163B16CA694D /* Pods_FoodApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D3D223F74C9CCFF8FB46DEBF /* Pods_FoodApp.framework */; };
11+
791BDD302224ED9200B0B31B /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 791BDD2F2224ED9200B0B31B /* GoogleService-Info.plist */; };
1012
79EBBE27221340D8006C4341 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79EBBE26221340D8006C4341 /* AppDelegate.swift */; };
1113
79EBBE29221340D8006C4341 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79EBBE28221340D8006C4341 /* ViewController.swift */; };
1214
79EBBE2C221340D8006C4341 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 79EBBE2A221340D8006C4341 /* Main.storyboard */; };
@@ -15,20 +17,25 @@
1517
/* End PBXBuildFile section */
1618

1719
/* Begin PBXFileReference section */
20+
791BDD2F2224ED9200B0B31B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
1821
79EBBE23221340D8006C4341 /* FoodApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FoodApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
1922
79EBBE26221340D8006C4341 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
2023
79EBBE28221340D8006C4341 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
2124
79EBBE2B221340D8006C4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2225
79EBBE2D221340DA006C4341 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2326
79EBBE30221340DA006C4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
2427
79EBBE32221340DA006C4341 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
28+
D3D223F74C9CCFF8FB46DEBF /* Pods_FoodApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FoodApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
29+
EDC4984D583E1EB702FDD33C /* Pods-FoodApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FoodApp.debug.xcconfig"; path = "Target Support Files/Pods-FoodApp/Pods-FoodApp.debug.xcconfig"; sourceTree = "<group>"; };
30+
F2B4F51CC6EFEE57BFC96F1E /* Pods-FoodApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FoodApp.release.xcconfig"; path = "Target Support Files/Pods-FoodApp/Pods-FoodApp.release.xcconfig"; sourceTree = "<group>"; };
2531
/* End PBXFileReference section */
2632

2733
/* Begin PBXFrameworksBuildPhase section */
2834
79EBBE20221340D8006C4341 /* Frameworks */ = {
2935
isa = PBXFrameworksBuildPhase;
3036
buildActionMask = 2147483647;
3137
files = (
38+
50406A6BE525163B16CA694D /* Pods_FoodApp.framework in Frameworks */,
3239
);
3340
runOnlyForDeploymentPostprocessing = 0;
3441
};
@@ -40,6 +47,8 @@
4047
children = (
4148
79EBBE25221340D8006C4341 /* FoodApp */,
4249
79EBBE24221340D8006C4341 /* Products */,
50+
DE112B0C17C210FFD0D04006 /* Pods */,
51+
EFF3E456A6D16172C9634292 /* Frameworks */,
4352
);
4453
sourceTree = "<group>";
4554
};
@@ -60,20 +69,41 @@
6069
79EBBE2D221340DA006C4341 /* Assets.xcassets */,
6170
79EBBE2F221340DA006C4341 /* LaunchScreen.storyboard */,
6271
79EBBE32221340DA006C4341 /* Info.plist */,
72+
791BDD2F2224ED9200B0B31B /* GoogleService-Info.plist */,
6373
);
6474
path = FoodApp;
6575
sourceTree = "<group>";
6676
};
77+
DE112B0C17C210FFD0D04006 /* Pods */ = {
78+
isa = PBXGroup;
79+
children = (
80+
EDC4984D583E1EB702FDD33C /* Pods-FoodApp.debug.xcconfig */,
81+
F2B4F51CC6EFEE57BFC96F1E /* Pods-FoodApp.release.xcconfig */,
82+
);
83+
name = Pods;
84+
path = Pods;
85+
sourceTree = "<group>";
86+
};
87+
EFF3E456A6D16172C9634292 /* Frameworks */ = {
88+
isa = PBXGroup;
89+
children = (
90+
D3D223F74C9CCFF8FB46DEBF /* Pods_FoodApp.framework */,
91+
);
92+
name = Frameworks;
93+
sourceTree = "<group>";
94+
};
6795
/* End PBXGroup section */
6896

6997
/* Begin PBXNativeTarget section */
7098
79EBBE22221340D8006C4341 /* FoodApp */ = {
7199
isa = PBXNativeTarget;
72100
buildConfigurationList = 79EBBE35221340DA006C4341 /* Build configuration list for PBXNativeTarget "FoodApp" */;
73101
buildPhases = (
102+
086417AC4BDF6AB18306D29C /* [CP] Check Pods Manifest.lock */,
74103
79EBBE1F221340D8006C4341 /* Sources */,
75104
79EBBE20221340D8006C4341 /* Frameworks */,
76105
79EBBE21221340D8006C4341 /* Resources */,
106+
6889F162A05F6131A702BC77 /* [CP] Embed Pods Frameworks */,
77107
);
78108
buildRules = (
79109
);
@@ -123,13 +153,67 @@
123153
buildActionMask = 2147483647;
124154
files = (
125155
79EBBE31221340DA006C4341 /* LaunchScreen.storyboard in Resources */,
156+
791BDD302224ED9200B0B31B /* GoogleService-Info.plist in Resources */,
126157
79EBBE2E221340DA006C4341 /* Assets.xcassets in Resources */,
127158
79EBBE2C221340D8006C4341 /* Main.storyboard in Resources */,
128159
);
129160
runOnlyForDeploymentPostprocessing = 0;
130161
};
131162
/* End PBXResourcesBuildPhase section */
132163

164+
/* Begin PBXShellScriptBuildPhase section */
165+
086417AC4BDF6AB18306D29C /* [CP] Check Pods Manifest.lock */ = {
166+
isa = PBXShellScriptBuildPhase;
167+
buildActionMask = 2147483647;
168+
files = (
169+
);
170+
inputFileListPaths = (
171+
);
172+
inputPaths = (
173+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
174+
"${PODS_ROOT}/Manifest.lock",
175+
);
176+
name = "[CP] Check Pods Manifest.lock";
177+
outputFileListPaths = (
178+
);
179+
outputPaths = (
180+
"$(DERIVED_FILE_DIR)/Pods-FoodApp-checkManifestLockResult.txt",
181+
);
182+
runOnlyForDeploymentPostprocessing = 0;
183+
shellPath = /bin/sh;
184+
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";
185+
showEnvVarsInLog = 0;
186+
};
187+
6889F162A05F6131A702BC77 /* [CP] Embed Pods Frameworks */ = {
188+
isa = PBXShellScriptBuildPhase;
189+
buildActionMask = 2147483647;
190+
files = (
191+
);
192+
inputFileListPaths = (
193+
);
194+
inputPaths = (
195+
"${PODS_ROOT}/Target Support Files/Pods-FoodApp/Pods-FoodApp-frameworks.sh",
196+
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework",
197+
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
198+
"${BUILT_PRODUCTS_DIR}/leveldb-library/leveldb.framework",
199+
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
200+
);
201+
name = "[CP] Embed Pods Frameworks";
202+
outputFileListPaths = (
203+
);
204+
outputPaths = (
205+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework",
206+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
207+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/leveldb.framework",
208+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
209+
);
210+
runOnlyForDeploymentPostprocessing = 0;
211+
shellPath = /bin/sh;
212+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FoodApp/Pods-FoodApp-frameworks.sh\"\n";
213+
showEnvVarsInLog = 0;
214+
};
215+
/* End PBXShellScriptBuildPhase section */
216+
133217
/* Begin PBXSourcesBuildPhase section */
134218
79EBBE1F221340D8006C4341 /* Sources */ = {
135219
isa = PBXSourcesBuildPhase;
@@ -280,6 +364,7 @@
280364
};
281365
79EBBE36221340DA006C4341 /* Debug */ = {
282366
isa = XCBuildConfiguration;
367+
baseConfigurationReference = EDC4984D583E1EB702FDD33C /* Pods-FoodApp.debug.xcconfig */;
283368
buildSettings = {
284369
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
285370
CODE_SIGN_STYLE = Automatic;
@@ -297,6 +382,7 @@
297382
};
298383
79EBBE37221340DA006C4341 /* Release */ = {
299384
isa = XCBuildConfiguration;
385+
baseConfigurationReference = F2B4F51CC6EFEE57BFC96F1E /* Pods-FoodApp.release.xcconfig */;
300386
buildSettings = {
301387
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
302388
CODE_SIGN_STYLE = Automatic;

FoodApp/FoodApp.xcodeproj/xcuserdata/czuria.xcuserdatad/xcschemes/xcschememanagement.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>FoodApp.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
10-
<integer>0</integer>
10+
<integer>14</integer>
1111
</dict>
1212
</dict>
1313
</dict>

FoodApp/FoodApp/AppDelegate.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import UIKit
10+
import Firebase
1011

1112
@UIApplicationMain
1213
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -15,7 +16,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1516

1617

1718
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18-
// Override point for customization after application launch.
19+
FirebaseApp.configure()
20+
1921
return true
2022
}
2123

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AD_UNIT_ID_FOR_BANNER_TEST</key>
6+
<string>ca-app-pub-3940256099942544/2934735716</string>
7+
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
8+
<string>ca-app-pub-3940256099942544/4411468910</string>
9+
<key>CLIENT_ID</key>
10+
<string>469909744406-u7oerhu00uo14d32l545jr0jeo65bks7.apps.googleusercontent.com</string>
11+
<key>REVERSED_CLIENT_ID</key>
12+
<string>com.googleusercontent.apps.469909744406-u7oerhu00uo14d32l545jr0jeo65bks7</string>
13+
<key>API_KEY</key>
14+
<string>AIzaSyDJW0l91etbaYyIbguESgYPVGG1bAe2Bh4</string>
15+
<key>GCM_SENDER_ID</key>
16+
<string>469909744406</string>
17+
<key>PLIST_VERSION</key>
18+
<string>1</string>
19+
<key>BUNDLE_ID</key>
20+
<string>com.SparkDev.FoodApp</string>
21+
<key>PROJECT_ID</key>
22+
<string>foodapp-eeb94</string>
23+
<key>STORAGE_BUCKET</key>
24+
<string>foodapp-eeb94.appspot.com</string>
25+
<key>IS_ADS_ENABLED</key>
26+
<true></true>
27+
<key>IS_ANALYTICS_ENABLED</key>
28+
<false></false>
29+
<key>IS_APPINVITE_ENABLED</key>
30+
<false></false>
31+
<key>IS_GCM_ENABLED</key>
32+
<true></true>
33+
<key>IS_SIGNIN_ENABLED</key>
34+
<true></true>
35+
<key>GOOGLE_APP_ID</key>
36+
<string>1:469909744406:ios:9a38839a65f73053</string>
37+
<key>DATABASE_URL</key>
38+
<string>https://foodapp-eeb94.firebaseio.com</string>
39+
</dict>
40+
</plist>

FoodApp/Podfile

+4
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ target 'FoodApp' do
66
use_frameworks!
77

88
# Pods for FoodApp
9+
pod 'Firebase/Core'
10+
pod 'Firebase/Auth'
11+
pod 'Firebase/Database'
12+
pod 'Firebase/Storage'
913

1014
end

0 commit comments

Comments
 (0)