Răsfoiți Sursa

Review FirebaseSessions source files (#13372)

Seyed Mojtaba Hosseini Zeidabadi 1 an în urmă
părinte
comite
48643bf67f

+ 1 - 1
FirebaseSessions/Sources/FirebaseSessions.swift

@@ -134,7 +134,7 @@ private enum GoogleDataTransportConfig {
     }
   }
 
-  // Initializes the SDK and begines the process of listening for lifecycle events and logging
+  // Initializes the SDK and begins the process of listening for lifecycle events and logging
   // events
   init(appID: String, sessionGenerator: SessionGenerator, coordinator: SessionCoordinatorProtocol,
        initiator: SessionInitiator, appInfo: ApplicationInfoProtocol, settings: SettingsProtocol,

+ 3 - 3
FirebaseSessions/Sources/Settings/SessionsSettings.swift

@@ -46,7 +46,7 @@ class SessionsSettings: SettingsProtocol {
   }
 
   var sessionsEnabled: Bool {
-    // Order of precendence LocalOverrides > Remote Settings > SDK Defaults
+    // Order of precedence LocalOverrides > Remote Settings > SDK Defaults
     if let sessionEnabled = localOverrides.sessionsEnabled {
       return sessionEnabled
     } else if let sessionEnabled = remoteSettings.sessionsEnabled {
@@ -56,7 +56,7 @@ class SessionsSettings: SettingsProtocol {
   }
 
   var sessionTimeout: TimeInterval {
-    // Order of precendence LocalOverrides > Remote Settings > SDK Defaults
+    // Order of precedence LocalOverrides > Remote Settings > SDK Defaults
     if let sessionTimeout = localOverrides.sessionTimeout {
       return sessionTimeout
     } else if let sessionTimeout = remoteSettings.sessionTimeout {
@@ -66,7 +66,7 @@ class SessionsSettings: SettingsProtocol {
   }
 
   var samplingRate: Double {
-    // Order of precendence LocalOverrides > Remote Settings > SDK Defaults
+    // Order of precedence LocalOverrides > Remote Settings > SDK Defaults
     if let samplingRate = localOverrides.samplingRate {
       return samplingRate
     } else if let samplingRate = remoteSettings.samplingRate {

+ 1 - 1
FirebaseSessions/Sources/Settings/SettingsDownloadClient.swift

@@ -26,7 +26,7 @@ protocol SettingsDownloadClient {
 }
 
 enum SettingsDownloaderError: Error {
-  /// Error contructing the URL
+  /// Error constructing the URL
   case URLError(String)
   /// Error from the URLSession task
   case URLSessionError(String)