Skip to content

Commit

Permalink
fix: add public init for app info
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmikius committed Apr 17, 2024
1 parent e925fb0 commit fece9ca
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Sources/ITunesSearchClient/AppInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

//
// AppInfo.swift
//
//
//
// Created by Mykhailo Bondarenko on 12.04.2024.
//
Expand All @@ -41,4 +41,19 @@ public struct AppInfo {
self.bundleId = result.bundleId
self.currentVersionReleaseDate = result.currentVersionReleaseDate
}

/// Initializes a new `AppInfo` instance with optional parameters.
/// - Parameters:
/// - version: The version of the app.
/// - bundleId: The bundle ID of the app.
/// - currentVersionReleaseDate: The date the current version of the app was released in ISO 8601 format (YYYY-MM-DD).
public init(
version: String? = nil,
bundleId: String? = nil,
currentVersionReleaseDate: String? = nil
) {
self.version = version
self.bundleId = bundleId
self.currentVersionReleaseDate = currentVersionReleaseDate
}
}

0 comments on commit fece9ca

Please sign in to comment.