Skip to content

Commit b6a8e81

Browse files
authored
Merge branch 'main' into peterfriese/apple/auth/google-sign-in
2 parents 60ab2ff + 2f40c32 commit b6a8e81

File tree

188 files changed

+9765
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+9765
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,13 @@ node_modules
3232

3333
# Ignore all Firebase debug logs
3434
*-debug.log
35+
36+
### Xcode ###
37+
## User settings
38+
xcuserdata/
39+
40+
## Xcode 8 and earlier
41+
*.xcscmblueprint
42+
*.xccheckout
43+
3544
GoogleService-Info.plist
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Firebase Fundamentals: Getting started with Firebase Auth for Apple platforms
2+
3+
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).
4+
5+
## Prerequisites
6+
7+
* Install the Firebase CLI tools and the Firebase Emulator suite ([instructions](https://firebase.google.com/docs/emulator-suite/install_and_configure))
8+
9+
## How to use
10+
11+
1. Clone the repository
12+
2. Navigate into the `final` folder for this project
13+
14+
```bash
15+
$ cd fundamentals/apple/auth-gettingstarted/final/Favourites
16+
```
17+
18+
3. Open the project in Xcode
19+
20+
```bash
21+
$ xed .
22+
```
23+
24+
4. Run the Firebase Authentication Emulator locally:
25+
26+
```bash
27+
$ firebase emulators:start
28+
```
29+
30+
5. Run the app on the iOS Simulator
31+
6. On the login screen, switch to the sign-up screen, and sign up using email and password
32+
7. Once you are signed in, you can see the newly created user account in the Firebase Authentication Emulator (http://localhost:4000/auth)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "dummy-project-id"
4+
}
5+
}

fundamentals/apple/auth-gettingstarted/final/Favourites/Favourites.xcodeproj/project.pbxproj

Lines changed: 588 additions & 0 deletions
Large diffs are not rendered by default.

fundamentals/apple/auth-gettingstarted/final/Favourites/Favourites.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "abseil-cpp-swiftpm",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git",
7+
"state" : {
8+
"revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1",
9+
"version" : "0.20220203.2"
10+
}
11+
},
12+
{
13+
"identity" : "boringssl-swiftpm",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/firebase/boringssl-SwiftPM.git",
16+
"state" : {
17+
"revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab",
18+
"version" : "0.9.1"
19+
}
20+
},
21+
{
22+
"identity" : "firebase-ios-sdk",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/firebase/firebase-ios-sdk",
25+
"state" : {
26+
"revision" : "7e80c25b51c2ffa238879b07fbfc5baa54bb3050",
27+
"version" : "9.6.0"
28+
}
29+
},
30+
{
31+
"identity" : "googleappmeasurement",
32+
"kind" : "remoteSourceControl",
33+
"location" : "https://github.com/google/GoogleAppMeasurement.git",
34+
"state" : {
35+
"revision" : "c1cfde8067668027b23a42c29d11c246152fe046",
36+
"version" : "9.6.0"
37+
}
38+
},
39+
{
40+
"identity" : "googledatatransport",
41+
"kind" : "remoteSourceControl",
42+
"location" : "https://github.com/google/GoogleDataTransport.git",
43+
"state" : {
44+
"revision" : "5056b15c5acbb90cd214fe4d6138bdf5a740e5a8",
45+
"version" : "9.2.0"
46+
}
47+
},
48+
{
49+
"identity" : "googleutilities",
50+
"kind" : "remoteSourceControl",
51+
"location" : "https://github.com/google/GoogleUtilities.git",
52+
"state" : {
53+
"revision" : "68ea347bdb1a69e2d2ae2e25cd085b6ef92f64cb",
54+
"version" : "7.9.0"
55+
}
56+
},
57+
{
58+
"identity" : "grpc-ios",
59+
"kind" : "remoteSourceControl",
60+
"location" : "https://github.com/grpc/grpc-ios.git",
61+
"state" : {
62+
"revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6",
63+
"version" : "1.44.3-grpc"
64+
}
65+
},
66+
{
67+
"identity" : "gtm-session-fetcher",
68+
"kind" : "remoteSourceControl",
69+
"location" : "https://github.com/google/gtm-session-fetcher.git",
70+
"state" : {
71+
"revision" : "d4289da23e978f37c344ea6a386e5546e2466294",
72+
"version" : "2.1.0"
73+
}
74+
},
75+
{
76+
"identity" : "leveldb",
77+
"kind" : "remoteSourceControl",
78+
"location" : "https://github.com/firebase/leveldb.git",
79+
"state" : {
80+
"revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b",
81+
"version" : "1.22.2"
82+
}
83+
},
84+
{
85+
"identity" : "nanopb",
86+
"kind" : "remoteSourceControl",
87+
"location" : "https://github.com/firebase/nanopb.git",
88+
"state" : {
89+
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692",
90+
"version" : "2.30909.0"
91+
}
92+
},
93+
{
94+
"identity" : "promises",
95+
"kind" : "remoteSourceControl",
96+
"location" : "https://github.com/google/promises.git",
97+
"state" : {
98+
"revision" : "3e4e743631e86c8c70dbc6efdc7beaa6e90fd3bb",
99+
"version" : "2.1.1"
100+
}
101+
},
102+
{
103+
"identity" : "swift-protobuf",
104+
"kind" : "remoteSourceControl",
105+
"location" : "https://github.com/apple/swift-protobuf.git",
106+
"state" : {
107+
"revision" : "88c7d15e1242fdb6ecbafbc7926426a19be1e98a",
108+
"version" : "1.20.2"
109+
}
110+
}
111+
],
112+
"version" : 2
113+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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>COPYRIGHT</key>
6+
<string>Copyright © 2021 Google LLC. All rights reserved.</string>
7+
<key>FILEHEADER</key>
8+
<string>
9+
// ___FILENAME___
10+
// ___PACKAGENAME___
11+
//
12+
// Created by ___FULLUSERNAME___ on ___DATE___.
13+
// ___COPYRIGHT___
14+
//
15+
// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
16+
// you may not use this file except in compliance with the License.
17+
// You may obtain a copy of the License at
18+
//
19+
// http://www.apache.org/licenses/LICENSE-2.0
20+
//
21+
// Unless required by applicable law or agreed to in writing, software
22+
// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
23+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+
// See the License for the specific language governing permissions and
25+
// limitations under the License.</string>
26+
</dict>
27+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1340"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "88FC9F7028734A8100A83D18"
18+
BuildableName = "Favourites.app"
19+
BlueprintName = "Favourites (iOS)"
20+
ReferencedContainer = "container:Favourites.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "88FC9F7028734A8100A83D18"
48+
BuildableName = "Favourites.app"
49+
BlueprintName = "Favourites (iOS)"
50+
ReferencedContainer = "container:Favourites.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
<CommandLineArguments>
54+
<CommandLineArgument
55+
argument = "-FIRAnalyticsDebugEnabled"
56+
isEnabled = "YES">
57+
</CommandLineArgument>
58+
</CommandLineArguments>
59+
</LaunchAction>
60+
<ProfileAction
61+
buildConfiguration = "Release"
62+
shouldUseLaunchSchemeArgsEnv = "YES"
63+
savedToolIdentifier = ""
64+
useCustomWorkingDirectory = "NO"
65+
debugDocumentVersioning = "YES">
66+
<BuildableProductRunnable
67+
runnableDebuggingMode = "0">
68+
<BuildableReference
69+
BuildableIdentifier = "primary"
70+
BlueprintIdentifier = "88FC9F7028734A8100A83D18"
71+
BuildableName = "Favourites.app"
72+
BlueprintName = "Favourites (iOS)"
73+
ReferencedContainer = "container:Favourites.xcodeproj">
74+
</BuildableReference>
75+
</BuildableProductRunnable>
76+
</ProfileAction>
77+
<AnalyzeAction
78+
buildConfiguration = "Debug">
79+
</AnalyzeAction>
80+
<ArchiveAction
81+
buildConfiguration = "Release"
82+
revealArchiveInOrganizer = "YES">
83+
</ArchiveAction>
84+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "DB5E36E3-F4DC-4106-999D-332C2581B9F2"
4+
type = "1"
5+
version = "2.0">
6+
</Bucket>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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>SchemeUserState</key>
6+
<dict>
7+
<key>Favourites (iOS).xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
<key>Favourites (macOS).xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
17+
<key>Promises (Playground) 1.xcscheme</key>
18+
<dict>
19+
<key>isShown</key>
20+
<false/>
21+
<key>orderHint</key>
22+
<integer>3</integer>
23+
</dict>
24+
<key>Promises (Playground) 2.xcscheme</key>
25+
<dict>
26+
<key>isShown</key>
27+
<false/>
28+
<key>orderHint</key>
29+
<integer>4</integer>
30+
</dict>
31+
<key>Promises (Playground).xcscheme</key>
32+
<dict>
33+
<key>isShown</key>
34+
<false/>
35+
<key>orderHint</key>
36+
<integer>2</integer>
37+
</dict>
38+
</dict>
39+
<key>SuppressBuildableAutocreation</key>
40+
<dict>
41+
<key>88FC9F7028734A8100A83D18</key>
42+
<dict>
43+
<key>primary</key>
44+
<true/>
45+
</dict>
46+
</dict>
47+
</dict>
48+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "appstore1024.png",
5+
"idiom" : "universal",
6+
"platform" : "ios",
7+
"size" : "1024x1024"
8+
}
9+
],
10+
"info" : {
11+
"author" : "xcode",
12+
"version" : 1
13+
}
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

0 commit comments

Comments
 (0)