File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
![ Swift Package Manager] ( https://img.shields.io/github/v/release/appwrite/sdk-for-apple.svg?color=green&style=flat-square )
4
4
![ License] ( https://img.shields.io/github/license/appwrite/sdk-for-apple.svg?style=flat-square )
5
- ![ Version] ( https://img.shields.io/badge/api%20version-1.7.0 -blue.svg?style=flat-square )
5
+ ![ Version] ( https://img.shields.io/badge/api%20version-1.7.4 -blue.svg?style=flat-square )
6
6
[ ![ Build Status] ( https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square )] ( https://travis-ci.com/appwrite/sdk-generator )
7
7
[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite )
8
8
[ ![ Discord] ( https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square )] ( https://appwrite.io/discord )
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
31
31
32
32
``` swift
33
33
dependencies: [
34
- .
package (
url :
" [email protected] :appwrite/sdk-for-apple.git" ,
from :
" 10.1.0 " ),
34
+ .
package (
url :
" [email protected] :appwrite/sdk-for-apple.git" ,
from :
" 10.1.1 " ),
35
35
],
36
36
```
37
37
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ open class Client {
23
23
" x-sdk-name " : " Apple " ,
24
24
" x-sdk-platform " : " client " ,
25
25
" x-sdk-language " : " apple " ,
26
- " x-sdk-version " : " 10.1.0 " ,
26
+ " x-sdk-version " : " 10.1.1 " ,
27
27
" x-appwrite-response-format " : " 1.7.0 "
28
28
]
29
29
@@ -265,7 +265,7 @@ open class Client {
265
265
266
266
return output. addingPercentEncoding (
267
267
withAllowedCharacters: . urlHostAllowed
268
- ) ?? " "
268
+ ) ? . replacingOccurrences ( of : " + " , with : " %2B " ) ?? " " // since urlHostAllowed doesn't include +
269
269
}
270
270
271
271
///
Original file line number Diff line number Diff line change @@ -219,6 +219,10 @@ open class Databases: Service {
219
219
}
220
220
221
221
///
222
+ /// **WARNING: Experimental Feature** - This endpoint is experimental and not
223
+ /// yet officially supported. It may be subject to breaking changes or removal
224
+ /// in future versions.
225
+ ///
222
226
/// Create or update a Document. Before using this route, you should create a
223
227
/// new collection resource using either a [server
224
228
/// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
@@ -268,6 +272,10 @@ open class Databases: Service {
268
272
}
269
273
270
274
///
275
+ /// **WARNING: Experimental Feature** - This endpoint is experimental and not
276
+ /// yet officially supported. It may be subject to breaking changes or removal
277
+ /// in future versions.
278
+ ///
271
279
/// Create or update a Document. Before using this route, you should create a
272
280
/// new collection resource using either a [server
273
281
/// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
Original file line number Diff line number Diff line change @@ -91,12 +91,12 @@ open class Document<T : Codable>: Codable {
91
91
92
92
public static func from( map: [ String : Any ] ) -> Document {
93
93
return Document (
94
- id: map [ " $id " ] as! String ,
95
- collectionId: map [ " $collectionId " ] as! String ,
96
- databaseId: map [ " $databaseId " ] as! String ,
97
- createdAt: map [ " $createdAt " ] as! String ,
98
- updatedAt: map [ " $updatedAt " ] as! String ,
99
- permissions: map [ " $permissions " ] as! [ String ] ,
94
+ id: map [ " $id " ] as? String ?? " " ,
95
+ collectionId: map [ " $collectionId " ] as? String ?? " " ,
96
+ databaseId: map [ " $databaseId " ] as? String ?? " " ,
97
+ createdAt: map [ " $createdAt " ] as? String ?? " " ,
98
+ updatedAt: map [ " $updatedAt " ] as? String ?? " " ,
99
+ permissions: map [ " $permissions " ] as? [ String ] ?? [ ] ,
100
100
data: try ! JSONDecoder ( ) . decode ( T . self, from: JSONSerialization . data ( withJSONObject: map, options: [ ] ) )
101
101
)
102
102
}
You can’t perform that action at this time.
0 commit comments