diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 838ac8d5a..6991001f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -262,8 +262,8 @@ docker run --rm -v $(pwd):$(pwd):rw -w $(pwd) -v /var/run/docker.sock:/var/run/d * **description** -> Description of Appwrite SDK * **namespace** -> SDK Namespace * **version** -> SDK Version - * **endpoint** -> Default Endpoint (example: "https://appwrite.io/v1") - * **host** -> Default Host (example: "appwrite.io") + * **endpoint** -> Default Endpoint (example: "https://cloud.appwrite.io/v1") + * **host** -> Default Host (example: "cloud.appwrite.io") * **basePath** -> Default Path to API (example: "/v1") * **licenseName** -> Name of license for SDK * **licenseURL** -> URL to SDK license diff --git a/templates/apple/Sources/Client.swift.twig b/templates/apple/Sources/Client.swift.twig index 2a93f526c..baa7adbcb 100644 --- a/templates/apple/Sources/Client.swift.twig +++ b/templates/apple/Sources/Client.swift.twig @@ -429,23 +429,23 @@ open class Client { if param is String || param is Int || param is Float + || param is Double || param is Bool || param is [String] || param is [Int] || param is [Float] + || param is [Double] || param is [Bool] || param is [String: Any] || param is [Int: Any] || param is [Float: Any] + || param is [Double: Any] || param is [Bool: Any] { encodedParams[key] = param - } else { - let value = try! (param as! Encodable).toJson() - - let range = value.index(value.startIndex, offsetBy: 1)..expectedOutput[] = $headers; - // Figure out if mock-server is running - $isMockAPIRunning = \strlen(\exec('docker ps | grep mock-server')) > 0; - - if (!$isMockAPIRunning) { - echo "Starting Mock API Server"; - - \exec(' - cd ./mock-server && \ - docker compose build && \ - docker compose up -d --force-recreate - '); - } + \exec(' + cd ./mock-server && \ + docker compose build && \ + docker compose up -d --force-recreate + '); } public function tearDown(): void