You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Sources/UpgradeAlert/UpgradeAlert.swift
+7-1
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,15 @@ extension UpgradeAlert {
73
73
*/
74
74
extensionUpgradeAlert{
75
75
/**
76
-
* fixme: add doc
76
+
* A typealias for the completion handler used in network calls to fetch `AppInfo`.
77
+
* - Description: This completion handler is invoked after attempting to fetch app information from the App Store. It provides either the `AppInfo` object upon success or a `UAError` if an error occurred during the fetch operation.
78
+
* - Parameters:
79
+
* - AppInfo?: An optional `AppInfo` object containing the app's metadata retrieved from the App Store.
80
+
* - UAError?: An optional `UAError` describing any error encountered during the network request.
81
+
* - Remark: This typealias simplifies the signature of completion handlers used in asynchronous network operations within the `UpgradeAlert` module.
77
82
*/
78
83
typealiasCompletion=(AppInfo?,UAError?)->Void
84
+
typealiasCompletion=(AppInfo?,UAError?)->Void
79
85
/**
80
86
* - Description: Retrieves the app information from the App Store using a network request. This function fetches the JSON data from the App Store API and decodes it to `AppInfo` format, handling errors appropriately.
Copy file name to clipboardexpand all lines: Sources/UpgradeAlert/helper/AppInfo.swift
+4-1
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,10 @@ public struct AppInfo: Decodable {
31
31
*/
32
32
publiclettrackViewUrl:String
33
33
// ⚠️️ new
34
-
// fixme: add doc
34
+
/**
35
+
* The release date of the current version of the application.
36
+
* - Description: Specifies the date when the current version of the application was released on the App Store, represented as a string. This information is used to determine if the app was released recently and to adjust update prompts accordingly.
0 commit comments