Skip to content

Commit

Permalink
Updated API manager comments and version in Siren
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Sep 21, 2022
1 parent 399e1bf commit 9b675a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Siren.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions Sources/Managers/APIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public struct APIManager {
/// Return results or errors obtained from performing a version check with Siren.
typealias CompletionHandler = (Result<APIModel, KnownError>) -> 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
Expand Down

0 comments on commit 9b675a8

Please sign in to comment.