Skip to content

Commit 9b675a8

Browse files
committed
Updated API manager comments and version in Siren
1 parent 399e1bf commit 9b675a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Siren.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
# Version
3-
s.version = "6.0.3"
3+
s.version = "6.1.0"
44
s.swift_version = "5.5"
55

66
# Meta

Sources/Managers/APIManager.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ public struct APIManager {
2727
/// Return results or errors obtained from performing a version check with Siren.
2828
typealias CompletionHandler = (Result<APIModel, KnownError>) -> Void
2929

30+
/// The Bundle ID for the your application. Defaults to "Bundle.main.bundleIdentifier".
31+
let bundleID: String?
32+
3033
/// The region or country of an App Store in which the app is available.
3134
let country: AppStoreCountry
3235

3336
/// The language for the localization of App Store responses.
3437
let language: String?
35-
36-
/// The bundleID for the App Store retrieved. Defaults to "Bundle.main.bundleIdentifier".
37-
let bundleID: String?
3838

3939
/// Initializes `APIManager` to the region or country of an App Store in which the app is available.
4040
/// By default, all version check requests are performed against the US App Store and the language of the copy/text is returned in English.
4141
/// - Parameters:
4242
/// - country: The country for the App Store in which the app is available.
4343
/// - 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".
44-
/// - bundleID: The bundleID for the App Store retrieved. Defaults to `Bundle.main.bundleIdentifier`. Passing `nil` will case a `missingBundleID` error.
44+
/// - bundleID: The bundleID for your app. Defaults to `Bundle.main.bundleIdentifier`. Passing `nil` will throw a `missingBundleID` error.
4545
public init(country: AppStoreCountry = .unitedStates, language: String? = nil, bundleID: String? = Bundle.main.bundleIdentifier) {
4646
self.country = country
4747
self.language = language

0 commit comments

Comments
 (0)