diff --git a/Siren.podspec b/Siren.podspec index 3021024..094664f 100755 --- a/Siren.podspec +++ b/Siren.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| # Version - s.version = "6.0.3" + s.version = "6.1.0" s.swift_version = "5.5" # Meta diff --git a/Sources/Managers/APIManager.swift b/Sources/Managers/APIManager.swift index 896135e..a1e5bdf 100644 --- a/Sources/Managers/APIManager.swift +++ b/Sources/Managers/APIManager.swift @@ -27,21 +27,21 @@ public struct APIManager { /// Return results or errors obtained from performing a version check with Siren. typealias CompletionHandler = (Result) -> Void + /// The Bundle ID for the your application. Defaults to "Bundle.main.bundleIdentifier". + let bundleID: String? + /// The region or country of an App Store in which the app is available. let country: AppStoreCountry /// The language for the localization of App Store responses. let language: String? - - /// The bundleID for the App Store retrieved. Defaults to "Bundle.main.bundleIdentifier". - let bundleID: String? /// Initializes `APIManager` to the region or country of an App Store in which the app is available. /// By default, all version check requests are performed against the US App Store and the language of the copy/text is returned in English. /// - Parameters: /// - country: The country for the App Store in which the app is available. /// - language: The locale to use for the App Store notes. The default result the API returns is equivalent to passing "en_us", so passing `nil` is equivalent to passing "en_us". - /// - bundleID: The bundleID for the App Store retrieved. Defaults to `Bundle.main.bundleIdentifier`. Passing `nil` will case a `missingBundleID` error. + /// - bundleID: The bundleID for your app. Defaults to `Bundle.main.bundleIdentifier`. Passing `nil` will throw a `missingBundleID` error. public init(country: AppStoreCountry = .unitedStates, language: String? = nil, bundleID: String? = Bundle.main.bundleIdentifier) { self.country = country self.language = language