Skip to content

Commit

Permalink
Update Pod file with Firebase pods
Browse files Browse the repository at this point in the history
  • Loading branch information
czuria1 committed Feb 26, 2019
1 parent 5831f27 commit f400aea
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 2 deletions.
86 changes: 86 additions & 0 deletions FoodApp/FoodApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

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

/* Begin PBXFileReference section */
791BDD2F2224ED9200B0B31B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
79EBBE23221340D8006C4341 /* FoodApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FoodApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
79EBBE26221340D8006C4341 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
79EBBE28221340D8006C4341 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
79EBBE2B221340D8006C4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
79EBBE2D221340DA006C4341 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
79EBBE30221340DA006C4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
79EBBE32221340DA006C4341 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D3D223F74C9CCFF8FB46DEBF /* Pods_FoodApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FoodApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
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>"; };
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>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
79EBBE20221340D8006C4341 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
50406A6BE525163B16CA694D /* Pods_FoodApp.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -40,6 +47,8 @@
children = (
79EBBE25221340D8006C4341 /* FoodApp */,
79EBBE24221340D8006C4341 /* Products */,
DE112B0C17C210FFD0D04006 /* Pods */,
EFF3E456A6D16172C9634292 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -60,20 +69,41 @@
79EBBE2D221340DA006C4341 /* Assets.xcassets */,
79EBBE2F221340DA006C4341 /* LaunchScreen.storyboard */,
79EBBE32221340DA006C4341 /* Info.plist */,
791BDD2F2224ED9200B0B31B /* GoogleService-Info.plist */,
);
path = FoodApp;
sourceTree = "<group>";
};
DE112B0C17C210FFD0D04006 /* Pods */ = {
isa = PBXGroup;
children = (
EDC4984D583E1EB702FDD33C /* Pods-FoodApp.debug.xcconfig */,
F2B4F51CC6EFEE57BFC96F1E /* Pods-FoodApp.release.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
EFF3E456A6D16172C9634292 /* Frameworks */ = {
isa = PBXGroup;
children = (
D3D223F74C9CCFF8FB46DEBF /* Pods_FoodApp.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
79EBBE22221340D8006C4341 /* FoodApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 79EBBE35221340DA006C4341 /* Build configuration list for PBXNativeTarget "FoodApp" */;
buildPhases = (
086417AC4BDF6AB18306D29C /* [CP] Check Pods Manifest.lock */,
79EBBE1F221340D8006C4341 /* Sources */,
79EBBE20221340D8006C4341 /* Frameworks */,
79EBBE21221340D8006C4341 /* Resources */,
6889F162A05F6131A702BC77 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -123,13 +153,67 @@
buildActionMask = 2147483647;
files = (
79EBBE31221340DA006C4341 /* LaunchScreen.storyboard in Resources */,
791BDD302224ED9200B0B31B /* GoogleService-Info.plist in Resources */,
79EBBE2E221340DA006C4341 /* Assets.xcassets in Resources */,
79EBBE2C221340D8006C4341 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
086417AC4BDF6AB18306D29C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-FoodApp-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
showEnvVarsInLog = 0;
};
6889F162A05F6131A702BC77 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FoodApp/Pods-FoodApp-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework",
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
"${BUILT_PRODUCTS_DIR}/leveldb-library/leveldb.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/leveldb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FoodApp/Pods-FoodApp-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
79EBBE1F221340D8006C4341 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -280,6 +364,7 @@
};
79EBBE36221340DA006C4341 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EDC4984D583E1EB702FDD33C /* Pods-FoodApp.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand All @@ -297,6 +382,7 @@
};
79EBBE37221340DA006C4341 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F2B4F51CC6EFEE57BFC96F1E /* Pods-FoodApp.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>FoodApp.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>14</integer>
</dict>
</dict>
</dict>
Expand Down
4 changes: 3 additions & 1 deletion FoodApp/FoodApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -15,7 +16,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FirebaseApp.configure()

return true
}

Expand Down
40 changes: 40 additions & 0 deletions FoodApp/FoodApp/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AD_UNIT_ID_FOR_BANNER_TEST</key>
<string>ca-app-pub-3940256099942544/2934735716</string>
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
<string>ca-app-pub-3940256099942544/4411468910</string>
<key>CLIENT_ID</key>
<string>469909744406-u7oerhu00uo14d32l545jr0jeo65bks7.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.469909744406-u7oerhu00uo14d32l545jr0jeo65bks7</string>
<key>API_KEY</key>
<string>AIzaSyDJW0l91etbaYyIbguESgYPVGG1bAe2Bh4</string>
<key>GCM_SENDER_ID</key>
<string>469909744406</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.SparkDev.FoodApp</string>
<key>PROJECT_ID</key>
<string>foodapp-eeb94</string>
<key>STORAGE_BUCKET</key>
<string>foodapp-eeb94.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<true></true>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<false></false>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:469909744406:ios:9a38839a65f73053</string>
<key>DATABASE_URL</key>
<string>https://foodapp-eeb94.firebaseio.com</string>
</dict>
</plist>
4 changes: 4 additions & 0 deletions FoodApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ target 'FoodApp' do
use_frameworks!

# Pods for FoodApp
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'

end

0 comments on commit f400aea

Please sign in to comment.