Skip to content

Commit ca83cb8

Browse files
author
Clément Le Provost
committed
Rename licenseData argument to licenseKey in MirroredIndex.enableOfflineMode(…)
This is a `String`, not a `Data`, so using the term “data” was confusing.
1 parent 07b324f commit ca83cb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Offline/OfflineClient.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ import Foundation
8181

8282
/// Enable the offline mode.
8383
///
84-
/// - parameter licenseData: license for Algolia's SDK
84+
/// - parameter licenseKey: License key for Algolia's SDK.
8585
///
86-
@objc(enableOfflineModeWithLicenseData:)
87-
public func enableOfflineMode(licenseData: String) {
86+
@objc(enableOfflineModeWithLicenseKey:)
87+
public func enableOfflineMode(licenseKey: String) {
8888
do {
8989
// Create the data directory.
9090
try FileManager.default.createDirectory(atPath: self.rootDataDir, withIntermediateDirectories: true, attributes: nil)
@@ -100,7 +100,7 @@ import Foundation
100100
}
101101

102102
// Init the SDK.
103-
sdk.initWithLicenseData(licenseData)
103+
sdk.initWithLicenseData(licenseKey)
104104
// NOTE: Errors reported by the core itself.
105105
}
106106

0 commit comments

Comments
 (0)