Skip to content

Commit 4d2b60d

Browse files
authored
Updated to SwiftFormat 0.52.10 (#12125)
1 parent 25abe77 commit 4d2b60d

File tree

169 files changed

+372
-376
lines changed

Some content is hidden

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

169 files changed

+372
-376
lines changed

ClientApp/Shared-iOS11+/swift-import-test.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import FirebaseInstallations
4949
import FirebaseMessaging
5050
import FirebaseMLModelDownloader
5151
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
52-
import FirebasePerformance
5352
import FirebaseInAppMessaging
53+
import FirebasePerformance
5454
#endif
5555
import FirebaseRemoteConfig
5656
import FirebaseRemoteConfigSwift

CoreOnly/Tests/FirebasePodTest/FirebasePodTest/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import Firebase
1716
// Verify that the following Firebase Swift APIs can be found.
1817
import FirebaseAnalyticsSwift
1918
import FirebaseFirestoreSwift
2019
import FirebaseInAppMessagingSwift
20+
import UIKit
2121

2222
class CoreExists: FirebaseApp {}
2323
class AnalyticsExists: Analytics {}

Example/CombineSample/CombineSample/App/CombineSampleApp.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import Firebase
16+
import SwiftUI
1717

1818
@main
1919
struct CombineSampleApp: App {

Example/CombineSample/CombineSample/ViewModels/Authentication/AnonymousSignInViewModel.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Foundation
15+
import Combine
1616
import Firebase
1717
import FirebaseAuthCombineSwift
1818
import FirebaseFirestoreCombineSwift
1919
import FirebaseFunctionsCombineSwift
2020
import FirebaseStorageCombineSwift
21-
import Combine
21+
import Foundation
2222

2323
class AnonymousSignInViewModel: UserInfoViewModel {
2424
private var cancellables = Set<AnyCancellable>()

Example/CombineSample/CombineSample/ViewModels/Authentication/UserInfoViewModel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import Combine
1516
import Firebase
1617
import FirebaseAuth
1718
import FirebaseAuthCombineSwift
18-
import Combine
1919

2020
class UserInfoViewModel: ObservableObject {
2121
@Published var user: User?

Example/CombineSample/CombineSample/Views/Authentication/AnonymousSignInView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
15+
import Combine
1616
import Firebase
1717
import FirebaseAuthCombineSwift
18-
import Combine
18+
import SwiftUI
1919

2020
struct AnonymousSignInView: View {
2121
@StateObject var viewModel = AnonymousSignInViewModel()

Example/FirestoreSample/FirestoreSample/App/FirestoreSampleApp.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
15+
import FirebaseAuth
1616
import FirebaseCore
1717
import FirebaseFirestore
18-
import FirebaseAuth
18+
import SwiftUI
1919

2020
class AppDelegate: NSObject, UIApplicationDelegate {
2121
func application(_ application: UIApplication,

Example/FirestoreSample/FirestoreSample/Views/FavouriteFruitsAnimationView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseFirestore
1716
import FirebaseFirestoreSwift
17+
import SwiftUI
1818

1919
private struct Fruit: Codable, Identifiable, Equatable {
2020
@DocumentID var id: String?

Example/FirestoreSample/FirestoreSample/Views/FavouriteFruitsMappingErrorView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseFirestoreSwift
16+
import SwiftUI
1717

1818
private struct Fruit: Codable, Identifiable, Equatable {
1919
@DocumentID var id: String?

Example/FirestoreSample/FirestoreSample/Views/FavouriteFruitsMappingErrorView2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseFirestoreSwift
16+
import SwiftUI
1717

1818
private struct Fruit: Codable, Identifiable, Equatable {
1919
@DocumentID var id: String?

Example/FirestoreSample/FirestoreSample/Views/FavouriteFruitsNoAnimationsView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseFirestore
1716
import FirebaseFirestoreSwift
17+
import SwiftUI
1818

1919
private struct Fruit: Codable, Identifiable, Equatable {
2020
@DocumentID var id: String?

Example/FirestoreSample/FirestoreSample/Views/FavouriteFruitsView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseFirestore
1716
import FirebaseFirestoreSwift
17+
import SwiftUI
1818

1919
private struct Fruit: Codable, Identifiable, Equatable {
2020
@DocumentID var id: String?

Example/tvOSSample/tvOSSample/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseCore
16+
import UIKit
1717

1818
@UIApplicationMain
1919
class AppDelegate: UIResponder, UIApplicationDelegate {

Example/tvOSSample/tvOSSample/AuthLoginViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseAuth
16+
import UIKit
1717

1818
class AuthLoginViewController: UIViewController {
1919
override func viewDidLoad() {

Example/tvOSSample/tvOSSample/AuthViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseAuth
16+
import UIKit
1717

1818
class AuthViewController: UIViewController {
1919
// MARK: - User Interface

Example/tvOSSample/tvOSSample/DatabaseViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseDatabase
16+
import UIKit
1717

1818
/// A class to demonstrate the Firebase Realtime Database API. This will show a number read
1919
/// from the Database and increase or decrease it based on the buttons pressed.

Example/tvOSSample/tvOSSample/EmailLoginViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseAuth
16+
import UIKit
1717

1818
protocol EmailLoginDelegate {
1919
func emailLogin(_ controller: EmailLoginViewController, signedInAs user: User)

Example/tvOSSample/tvOSSample/StorageViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UIKit
1615
import FirebaseStorage
16+
import UIKit
1717

1818
class StorageViewController: UIViewController {
1919
/// An enum describing the different states of the view controller.

Example/watchOSSample/SampleWatchAppWatchKitExtension/InterfaceController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import SwiftUI
1615
import FirebaseStorage
16+
import SwiftUI
1717

1818
class InterfaceController: WKInterfaceController {
1919
@IBOutlet var imageView: WKInterfaceImage!

Example/watchOSSample/SampleWatchAppWatchKitExtension/NotificationController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import WatchKit
1615
import Foundation
1716
import UserNotifications
17+
import WatchKit
1818

1919
class NotificationController: WKUserNotificationInterfaceController {
2020
override init() {

Example/watchOSSample/ServiceExtension/NotificationService.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import UserNotifications
1615
import FirebaseMessaging
16+
import UserNotifications
1717

1818
class NotificationService: UNNotificationServiceExtension {
1919
var contentHandler: ((UNNotificationContent) -> Void)?

FirebaseABTesting/Tests/Integration/ABTQA/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
import UIKit
1817
import Firebase
18+
import UIKit
1919

2020
@UIApplicationMain
2121
class AppDelegate: UIResponder, UIApplicationDelegate {

FirebaseABTesting/Tests/Integration/ABTQA/ViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import UIKit
1817
import FirebaseAnalytics
1918
import FirebaseRemoteConfig
19+
import UIKit
2020

2121
class ViewController: UIViewController {
2222
@IBAction func fireAnalyticsEventButtonTapped(_ sender: Any) {

FirebaseAnalytics/Analytics+SwiftUI.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/// Custom view modifier to allow for easily logging screen view events.
2020
@available(iOS 13.0, macOS 10.15, macCatalyst 13.0, tvOS 13.0, *)
2121
@available(watchOS, unavailable)
22-
internal struct LoggedAnalyticsModifier: ViewModifier {
22+
struct LoggedAnalyticsModifier: ViewModifier {
2323
/// The name of the view to log in the `AnalyticsParameterScreenName` parameter.
2424
let screenName: String
2525

FirebaseAnalyticsSwift/Tests/SwiftUnit/AnalyticsAPITests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import Foundation
2020
import StoreKit
2121
import SwiftUI
2222

23+
import FirebaseAnalytics
2324
import FirebaseAnalyticsSwift
2425
import SwiftUI
25-
import FirebaseAnalytics
2626

2727
final class AnalyticsAPITests {
2828
func usage() {

FirebaseAppCheck/Apps/AppCheckCustomProvideApp/AppCheckCustomProvideApp/AppDelegate.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import UIKit
18-
import FirebaseCore
1917
import FirebaseAppCheck
18+
import FirebaseCore
19+
import UIKit
2020

2121
@main
2222
class AppDelegate: UIResponder, UIApplicationDelegate {

FirebaseAppCheck/Apps/AppCheckCustomProvideApp/AppCheckCustomProvideApp/MyAppCheckProvider.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import Foundation
18-
import FirebaseCore
1917
import FirebaseAppCheck
18+
import FirebaseCore
19+
import Foundation
2020

2121
class MyAppCheckProvider: NSObject, AppCheckProvider {
2222
func getToken(completion handler: @escaping AppCheckTokenHandler) {

FirebaseAppCheck/Apps/AppCheckCustomProvideApp/AppCheckCustomProvideApp/SceneDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
import UIKit
1817
import SwiftUI
18+
import UIKit
1919

2020
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
2121
var window: UIWindow?

FirebaseAppCheck/Apps/FIRAppCheckTestApp/FIRAppCheckTestApp/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
import UIKit
1818

19-
import FirebaseCore
2019
import FirebaseAppCheck
20+
import FirebaseCore
2121

2222
@main
2323
class AppDelegate: UIResponder, UIApplicationDelegate {

FirebaseAppCheck/Tests/Unit/Swift/AppCheckAPITests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
import Foundation
2020

21-
import FirebaseCore
2221
import FirebaseAppCheck
22+
import FirebaseCore
2323

2424
final class AppCheckAPITests {
2525
func usage() {

FirebaseAppDistribution/Tests/Unit/Swift/AppDistributionAPITest.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import XCTest
1615
@testable import FirebaseAppDistribution
16+
import XCTest
1717

1818
class AppDistributionAPITests: XCTestCase {
1919
@available(iOS 13.0.0, *)

FirebaseAppDistributionInternal/Sources/ApiService.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Foundation
16-
import FirebaseInstallations
1715
import FirebaseCore
16+
import FirebaseInstallations
17+
import Foundation
1818
import UIKit
1919

2020
// Avoids exposing internal APIs to Swift users

FirebaseAppDistributionInternal/Sources/InAppFeedback.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
import UIKit
1716
import Photos
17+
import UIKit
1818

1919
@objc(FIRFADInAppFeedback) open class InAppFeedback: NSObject {
2020
@objc(

FirebaseAppDistributionInternal/Sources/Internal/InstallationsProtocol.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Foundation
1615
import FirebaseInstallations
16+
import Foundation
1717

1818
// Wraps around the use of FIRInstallations in a protocol to be able to inject a fake one for
1919
// unit testing.
20-
internal protocol InstallationsProtocol {
20+
protocol InstallationsProtocol {
2121
func authToken(completion: @escaping (InstallationsAuthTokenResult?, Error?) -> Void)
2222
func installationID(completion: @escaping (String?, Error?) -> Void)
2323
}

FirebaseAppDistributionInternal/Tests/Unit/ApiServiceTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import XCTest
1615
import FirebaseCore
16+
import XCTest
1717

18-
@testable import FirebaseInstallations
1918
@testable import FirebaseAppDistributionInternal
19+
@testable import FirebaseInstallations
2020

2121
class ApiServiceTests: XCTestCase {
2222
override class func setUp() {

FirebaseAppDistributionInternal/Tests/Unit/FakeUtils/FakeInstallations.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Foundation
16-
@testable import FirebaseInstallations
1715
@testable import FirebaseAppDistributionInternal
16+
@testable import FirebaseInstallations
17+
import Foundation
1818

1919
// This is needed because importing the setter from FIRInstallationsAuthTokenResultInternal.h in
2020
// the bridging error results in errors.

0 commit comments

Comments
 (0)