feat: Swift SDK update for version 19.0.0#65
Conversation
Greptile SummaryThis PR updates the Swift SDK to version 19.0.0, adding a new
Confidence Score: 4/5Safe to merge after fixing the metadata nil-handling bug in Presence.from(map:). The Presence.from(map:) method maps an absent or null metadata field to an empty dictionary [:] rather than nil. Since metadata is declared as [String: AnyCodable]?, callers that nil-check the field to detect "no metadata" will silently receive the wrong answer when responses are deserialized through this path. The rest of the changes — new Organization service, model field additions, enum renames, and parallel upload — look correct. Sources/AppwriteModels/Presence.swift — the from(map:) metadata mapping. Important Files Changed
Reviews (2): Last reviewed commit: "chore: update Swift SDK to 19.0.0" | Re-trigger Greptile |
| return try await client.call( | ||
| method: "DELETE", | ||
| path: apiPath, | ||
| headers: apiHeaders, | ||
| params: apiParams ) | ||
| } | ||
|
|
||
| /// | ||
| /// Get a list of all projects. You can use the query params to filter your |
There was a problem hiding this comment.
Missing newline before closing
) on the client.call invocation — the same style issue exists in deleteProject below.
| return try await client.call( | |
| method: "DELETE", | |
| path: apiPath, | |
| headers: apiHeaders, | |
| params: apiParams ) | |
| } | |
| /// | |
| /// Get a list of all projects. You can use the query params to filter your | |
| return try await client.call( | |
| method: "DELETE", | |
| path: apiPath, | |
| headers: apiHeaders, | |
| params: apiParams | |
| ) | |
| } | |
| /// | |
| /// Get a list of all projects. You can use the query params to filter your |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| return try await client.call( | ||
| method: "DELETE", | ||
| path: apiPath, | ||
| headers: apiHeaders, | ||
| params: apiParams ) | ||
| } | ||
|
|
||
|
|
||
| } |
There was a problem hiding this comment.
Same formatting issue in
deleteProject — closing ) is on the same line as the last argument.
| return try await client.call( | |
| method: "DELETE", | |
| path: apiPath, | |
| headers: apiHeaders, | |
| params: apiParams ) | |
| } | |
| } | |
| return try await client.call( | |
| method: "DELETE", | |
| path: apiPath, | |
| headers: apiHeaders, | |
| params: apiParams | |
| ) | |
| } | |
| } |
This PR contains updates to the Swift SDK for version 19.0.0.