Skip to content

Commit

Permalink
Updated to SwiftFormat 0.52.10 (#12125)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored Nov 21, 2023
1 parent 25abe77 commit 4d2b60d
Show file tree
Hide file tree
Showing 169 changed files with 372 additions and 376 deletions.
2 changes: 1 addition & 1 deletion ClientApp/Shared-iOS11+/swift-import-test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ import FirebaseInstallations
import FirebaseMessaging
import FirebaseMLModelDownloader
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
import FirebasePerformance
import FirebaseInAppMessaging
import FirebasePerformance
#endif
import FirebaseRemoteConfig
import FirebaseRemoteConfigSwift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import Firebase
// Verify that the following Firebase Swift APIs can be found.
import FirebaseAnalyticsSwift
import FirebaseFirestoreSwift
import FirebaseInAppMessagingSwift
import UIKit

class CoreExists: FirebaseApp {}
class AnalyticsExists: Analytics {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import Firebase
import SwiftUI

@main
struct CombineSampleApp: App {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Foundation
import Combine
import Firebase
import FirebaseAuthCombineSwift
import FirebaseFirestoreCombineSwift
import FirebaseFunctionsCombineSwift
import FirebaseStorageCombineSwift
import Combine
import Foundation

class AnonymousSignInViewModel: UserInfoViewModel {
private var cancellables = Set<AnyCancellable>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Combine
import Firebase
import FirebaseAuth
import FirebaseAuthCombineSwift
import Combine

class UserInfoViewModel: ObservableObject {
@Published var user: User?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import Combine
import Firebase
import FirebaseAuthCombineSwift
import Combine
import SwiftUI

struct AnonymousSignInView: View {
@StateObject var viewModel = AnonymousSignInViewModel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseAuth
import FirebaseCore
import FirebaseFirestore
import FirebaseAuth
import SwiftUI

class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseFirestore
import FirebaseFirestoreSwift
import SwiftUI

private struct Fruit: Codable, Identifiable, Equatable {
@DocumentID var id: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseFirestoreSwift
import SwiftUI

private struct Fruit: Codable, Identifiable, Equatable {
@DocumentID var id: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseFirestoreSwift
import SwiftUI

private struct Fruit: Codable, Identifiable, Equatable {
@DocumentID var id: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseFirestore
import FirebaseFirestoreSwift
import SwiftUI

private struct Fruit: Codable, Identifiable, Equatable {
@DocumentID var id: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseFirestore
import FirebaseFirestoreSwift
import SwiftUI

private struct Fruit: Codable, Identifiable, Equatable {
@DocumentID var id: String?
Expand Down
2 changes: 1 addition & 1 deletion Example/tvOSSample/tvOSSample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseCore
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseAuth
import UIKit

class AuthLoginViewController: UIViewController {
override func viewDidLoad() {
Expand Down
2 changes: 1 addition & 1 deletion Example/tvOSSample/tvOSSample/AuthViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseAuth
import UIKit

class AuthViewController: UIViewController {
// MARK: - User Interface
Expand Down
2 changes: 1 addition & 1 deletion Example/tvOSSample/tvOSSample/DatabaseViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseDatabase
import UIKit

/// A class to demonstrate the Firebase Realtime Database API. This will show a number read
/// from the Database and increase or decrease it based on the buttons pressed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseAuth
import UIKit

protocol EmailLoginDelegate {
func emailLogin(_ controller: EmailLoginViewController, signedInAs user: User)
Expand Down
2 changes: 1 addition & 1 deletion Example/tvOSSample/tvOSSample/StorageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UIKit
import FirebaseStorage
import UIKit

class StorageViewController: UIViewController {
/// An enum describing the different states of the view controller.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import FirebaseStorage
import SwiftUI

class InterfaceController: WKInterfaceController {
@IBOutlet var imageView: WKInterfaceImage!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import WatchKit
import Foundation
import UserNotifications
import WatchKit

class NotificationController: WKUserNotificationInterfaceController {
override init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import UserNotifications
import FirebaseMessaging
import UserNotifications

class NotificationService: UNNotificationServiceExtension {
var contentHandler: ((UNNotificationContent) -> Void)?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import UIKit
import Firebase
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

import UIKit
import FirebaseAnalytics
import FirebaseRemoteConfig
import UIKit

class ViewController: UIViewController {
@IBAction func fireAnalyticsEventButtonTapped(_ sender: Any) {
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAnalytics/Analytics+SwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// Custom view modifier to allow for easily logging screen view events.
@available(iOS 13.0, macOS 10.15, macCatalyst 13.0, tvOS 13.0, *)
@available(watchOS, unavailable)
internal struct LoggedAnalyticsModifier: ViewModifier {
struct LoggedAnalyticsModifier: ViewModifier {
/// The name of the view to log in the `AnalyticsParameterScreenName` parameter.
let screenName: String

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import Foundation
import StoreKit
import SwiftUI

import FirebaseAnalytics
import FirebaseAnalyticsSwift
import SwiftUI
import FirebaseAnalytics

final class AnalyticsAPITests {
func usage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

import UIKit
import FirebaseCore
import FirebaseAppCheck
import FirebaseCore
import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

import Foundation
import FirebaseCore
import FirebaseAppCheck
import FirebaseCore
import Foundation

class MyAppCheckProvider: NSObject, AppCheckProvider {
func getToken(completion handler: @escaping AppCheckTokenHandler) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import UIKit
import SwiftUI
import UIKit

class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import UIKit

import FirebaseCore
import FirebaseAppCheck
import FirebaseCore

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Tests/Unit/Swift/AppCheckAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import Foundation

import FirebaseCore
import FirebaseAppCheck
import FirebaseCore

final class AppCheckAPITests {
func usage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import XCTest
@testable import FirebaseAppDistribution
import XCTest

class AppDistributionAPITests: XCTestCase {
@available(iOS 13.0.0, *)
Expand Down
4 changes: 2 additions & 2 deletions FirebaseAppDistributionInternal/Sources/ApiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Foundation
import FirebaseInstallations
import FirebaseCore
import FirebaseInstallations
import Foundation
import UIKit

// Avoids exposing internal APIs to Swift users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
// limitations under the License.

import Foundation
import UIKit
import Photos
import UIKit

@objc(FIRFADInAppFeedback) open class InAppFeedback: NSObject {
@objc(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Foundation
import FirebaseInstallations
import Foundation

// Wraps around the use of FIRInstallations in a protocol to be able to inject a fake one for
// unit testing.
internal protocol InstallationsProtocol {
protocol InstallationsProtocol {
func authToken(completion: @escaping (InstallationsAuthTokenResult?, Error?) -> Void)
func installationID(completion: @escaping (String?, Error?) -> Void)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import XCTest
import FirebaseCore
import XCTest

@testable import FirebaseInstallations
@testable import FirebaseAppDistributionInternal
@testable import FirebaseInstallations

class ApiServiceTests: XCTestCase {
override class func setUp() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Foundation
@testable import FirebaseInstallations
@testable import FirebaseAppDistributionInternal
@testable import FirebaseInstallations
import Foundation

// This is needed because importing the setter from FIRInstallationsAuthTokenResultInternal.h in
// the bridging error results in errors.
Expand Down
Loading

0 comments on commit 4d2b60d

Please sign in to comment.