Skip to content

Commit d313d05

Browse files
committed
🧹 Clean up final code
1 parent 0e94448 commit d313d05

7 files changed

Lines changed: 36 additions & 38 deletions

File tree

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/Auth/AuthenticatedView.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// AuthenticatedView.swift
3-
// Favourites
2+
// AuthenticatedView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -65,8 +65,6 @@ struct AuthenticatedView<Content, Unauthenticated>: View where Content: View, Un
6565
AuthenticationView()
6666
.environmentObject(viewModel)
6767
}
68-
// case .authenticating:
69-
// Text("Logging in, please wait...")
7068
case .authenticated:
7169
VStack {
7270
content()

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/Auth/AuthenticationView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// AuthenticationView.swift
3-
// Favourites
2+
// AuthenticationView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/Auth/LoginView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// LoginView.swift
3-
// Favourites
2+
// LoginView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/Auth/SignupView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// SignupView.swift
3-
// Favourites
2+
// SignupView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/Auth/UserProfileView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// UserProfileView.swift
3-
// Favourites
2+
// UserProfileView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/FavouriteNumberView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// FavouriteNumberView.swift
3-
// Favourites
2+
// FavouriteNumberView.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,

fundamentals/apple/auth-google-sign-in/final/Favourites/Shared/FavouritesApp.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// FavouritesApp.swift
3-
// Favourites
2+
// FavouritesApp.swift
3+
// Favourites
44
//
5-
// Created by Peter Friese on 08.07.2022
6-
// Copyright © 2022 Google LLC. All rights reserved.
5+
// Created by Peter Friese on 08.07.2022
6+
// Copyright © 2022 Google LLC. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
1010
// You may obtain a copy of the License at
1111
//
12-
// http://www.apache.org/licenses/LICENSE-2.0
12+
// http://www.apache.org/licenses/LICENSE-2.0
1313
//
1414
// Unless required by applicable law or agreed to in writing, software
1515
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,7 +26,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
2626
func application(_ application: UIApplication,
2727
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
2828
FirebaseApp.configure()
29-
// Auth.auth().useEmulator(withHost:"localhost", port:9099)
29+
Auth.auth().useEmulator(withHost:"localhost", port:9099)
3030
return true
3131
}
3232
}

0 commit comments

Comments
 (0)