-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into peterfriese/apple/auth/google-sign-in
- Loading branch information
Showing
188 changed files
with
9,765 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Firebase Fundamentals: Getting started with Firebase Auth for Apple platforms | ||
|
||
This is the source code used in this video: [Getting started with Firebase Auth for Apple platforms](https://www.youtube.com/watch?v=q-9lx7aSWcc). | ||
|
||
## Prerequisites | ||
|
||
* Install the Firebase CLI tools and the Firebase Emulator suite ([instructions](https://firebase.google.com/docs/emulator-suite/install_and_configure)) | ||
|
||
## How to use | ||
|
||
1. Clone the repository | ||
2. Navigate into the `final` folder for this project | ||
|
||
```bash | ||
$ cd fundamentals/apple/auth-gettingstarted/final/Favourites | ||
``` | ||
|
||
3. Open the project in Xcode | ||
|
||
```bash | ||
$ xed . | ||
``` | ||
|
||
4. Run the Firebase Authentication Emulator locally: | ||
|
||
```bash | ||
$ firebase emulators:start | ||
``` | ||
|
||
5. Run the app on the iOS Simulator | ||
6. On the login screen, switch to the sign-up screen, and sign up using email and password | ||
7. Once you are signed in, you can see the newly created user account in the Firebase Authentication Emulator (http://localhost:4000/auth) |
5 changes: 5 additions & 0 deletions
5
fundamentals/apple/auth-gettingstarted/final/Favourites/.firebaserc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "dummy-project-id" | ||
} | ||
} |
588 changes: 588 additions & 0 deletions
588
fundamentals/apple/auth-gettingstarted/final/Favourites/Favourites.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...tarted/final/Favourites/Favourites.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...Favourites/Favourites.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?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>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
113 changes: 113 additions & 0 deletions
113
...Favourites/Favourites.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "abseil-cpp-swiftpm", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git", | ||
"state" : { | ||
"revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1", | ||
"version" : "0.20220203.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "boringssl-swiftpm", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/boringssl-SwiftPM.git", | ||
"state" : { | ||
"revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab", | ||
"version" : "0.9.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "firebase-ios-sdk", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/firebase-ios-sdk", | ||
"state" : { | ||
"revision" : "7e80c25b51c2ffa238879b07fbfc5baa54bb3050", | ||
"version" : "9.6.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googleappmeasurement", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleAppMeasurement.git", | ||
"state" : { | ||
"revision" : "c1cfde8067668027b23a42c29d11c246152fe046", | ||
"version" : "9.6.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googledatatransport", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleDataTransport.git", | ||
"state" : { | ||
"revision" : "5056b15c5acbb90cd214fe4d6138bdf5a740e5a8", | ||
"version" : "9.2.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googleutilities", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleUtilities.git", | ||
"state" : { | ||
"revision" : "68ea347bdb1a69e2d2ae2e25cd085b6ef92f64cb", | ||
"version" : "7.9.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "grpc-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/grpc/grpc-ios.git", | ||
"state" : { | ||
"revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6", | ||
"version" : "1.44.3-grpc" | ||
} | ||
}, | ||
{ | ||
"identity" : "gtm-session-fetcher", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/gtm-session-fetcher.git", | ||
"state" : { | ||
"revision" : "d4289da23e978f37c344ea6a386e5546e2466294", | ||
"version" : "2.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "leveldb", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/leveldb.git", | ||
"state" : { | ||
"revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", | ||
"version" : "1.22.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "nanopb", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/nanopb.git", | ||
"state" : { | ||
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", | ||
"version" : "2.30909.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "promises", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/promises.git", | ||
"state" : { | ||
"revision" : "3e4e743631e86c8c70dbc6efdc7beaa6e90fd3bb", | ||
"version" : "2.1.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-protobuf", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-protobuf.git", | ||
"state" : { | ||
"revision" : "88c7d15e1242fdb6ecbafbc7926426a19be1e98a", | ||
"version" : "1.20.2" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
Binary file added
BIN
+100 KB
...roj/project.xcworkspace/xcuserdata/peterfriese.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
...gettingstarted/final/Favourites/Favourites.xcodeproj/xcshareddata/IDETemplateMacros.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?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>COPYRIGHT</key> | ||
<string>Copyright © 2021 Google LLC. All rights reserved.</string> | ||
<key>FILEHEADER</key> | ||
<string> | ||
// ___FILENAME___ | ||
// ___PACKAGENAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// ___COPYRIGHT___ | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License.</string> | ||
</dict> | ||
</plist> |
84 changes: 84 additions & 0 deletions
84
...ed/final/Favourites/Favourites.xcodeproj/xcshareddata/xcschemes/Favourites (iOS).xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1340" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "88FC9F7028734A8100A83D18" | ||
BuildableName = "Favourites.app" | ||
BlueprintName = "Favourites (iOS)" | ||
ReferencedContainer = "container:Favourites.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "88FC9F7028734A8100A83D18" | ||
BuildableName = "Favourites.app" | ||
BlueprintName = "Favourites (iOS)" | ||
ReferencedContainer = "container:Favourites.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
<CommandLineArgument | ||
argument = "-FIRAnalyticsDebugEnabled" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
</CommandLineArguments> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "88FC9F7028734A8100A83D18" | ||
BuildableName = "Favourites.app" | ||
BlueprintName = "Favourites (iOS)" | ||
ReferencedContainer = "container:Favourites.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
6 changes: 6 additions & 0 deletions
6
...ourites.xcodeproj/xcuserdata/peterfriese.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "DB5E36E3-F4DC-4106-999D-332C2581B9F2" | ||
type = "1" | ||
version = "2.0"> | ||
</Bucket> |
48 changes: 48 additions & 0 deletions
48
...avourites.xcodeproj/xcuserdata/peterfriese.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?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>SchemeUserState</key> | ||
<dict> | ||
<key>Favourites (iOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>Favourites (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>Promises (Playground) 1.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>3</integer> | ||
</dict> | ||
<key>Promises (Playground) 2.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>4</integer> | ||
</dict> | ||
<key>Promises (Playground).xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>2</integer> | ||
</dict> | ||
</dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>88FC9F7028734A8100A83D18</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
11 changes: 11 additions & 0 deletions
11
...gettingstarted/final/Favourites/Shared/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...h-gettingstarted/final/Favourites/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "appstore1024.png", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+165 KB
...ted/final/Favourites/Shared/Assets.xcassets/AppIcon.appiconset/appstore1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
fundamentals/apple/auth-gettingstarted/final/Favourites/Shared/Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.