Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit d7d0bf7

Browse files
mokagiocrazytonyli
andcommitted
Mark the Swift native multipart POST implementation as @nonobjc
Co-authored-by: Tony Li <[email protected]>
1 parent 39df310 commit d7d0bf7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Sources/WordPressKit/WordPressAPI/WordPressComRestApi.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,14 @@ open class WordPressComRestApi: NSObject {
272272
returns nil it's because something happened on the request serialization and the network request was not started, but the failure callback
273273
will be invoked with the error specificing the serialization issues.
274274
*/
275-
@discardableResult open func multipartPOST(_ URLString: String,
276-
parameters: [String: AnyObject]?,
277-
fileParts: [FilePart],
278-
requestEnqueued: RequestEnqueuedBlock? = nil,
279-
success: @escaping SuccessResponseBlock,
280-
failure: @escaping FailureReponseBlock) -> Progress? {
275+
@nonobjc @discardableResult open func multipartPOST(
276+
_ URLString: String,
277+
parameters: [String: AnyObject]?,
278+
fileParts: [FilePart],
279+
requestEnqueued: RequestEnqueuedBlock? = nil,
280+
success: @escaping SuccessResponseBlock,
281+
failure: @escaping FailureReponseBlock
282+
) -> Progress? {
281283
let progress = Progress.discreteProgress(totalUnitCount: 100)
282284

283285
Task { @MainActor in

0 commit comments

Comments
 (0)