Skip to content

Commit c5974e0

Browse files
authored
Merge pull request #46 from appwrite/dev
Dev
2 parents af76289 + 312f026 commit c5974e0

File tree

13 files changed

+143
-143
lines changed

13 files changed

+143
-143
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-android.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-android.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.4.2-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.4.12-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -38,7 +38,7 @@ repositories {
3838
Next, add the dependency to your project's `build.gradle(.kts)` file:
3939

4040
```groovy
41-
implementation("io.appwrite:sdk-for-android:4.0.0")
41+
implementation("io.appwrite:sdk-for-android:4.0.1")
4242
```
4343

4444
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
4949
<dependency>
5050
<groupId>io.appwrite</groupId>
5151
<artifactId>sdk-for-android</artifactId>
52-
<version>4.0.0</version>
52+
<version>4.0.1</version>
5353
</dependency>
5454
</dependencies>
5555
```

library/src/main/java/io/appwrite/Client.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Client @JvmOverloads constructor(
8888
"x-sdk-name" to "Android",
8989
"x-sdk-platform" to "client",
9090
"x-sdk-language" to "android",
91-
"x-sdk-version" to "4.0.0",
91+
"x-sdk-version" to "4.0.1",
9292
"x-appwrite-response-format" to "1.4.0"
9393
)
9494
config = mutableMapOf()

library/src/main/java/io/appwrite/Query.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Query {
2020

2121
fun isNotNull(attribute: String) = "isNotNull(\"${attribute}\")"
2222

23-
fun between(attribute: String, start: Int, end: Int) = Query.addQuery(attribute, "between", listOf(start, end))
23+
fun between(attribute: String, start: Int, end: Int) = "between(\"${attribute}\", ${start}, ${end})"
2424

25-
fun between(attribute: String, start: Double, end: Double) = Query.addQuery(attribute, "between", listOf(start, end))
25+
fun between(attribute: String, start: Double, end: Double) = "between(\"${attribute}\", ${start}, ${end})"
2626

27-
fun between(attribute: String, start: String, end: String) = Query.addQuery(attribute, "between", listOf(start, end))
27+
fun between(attribute: String, start: String, end: String) = "between(\"${attribute}\", \"${start}\", \"${end}\")"
2828

2929
fun startsWith(attribute: String, value: String) = Query.addQuery(attribute, "startsWith", value)
3030

library/src/main/java/io/appwrite/models/Document.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data class Document<T>(
3838
val updatedAt: String,
3939

4040
/**
41-
* Document permissions. [Learn more about permissions](/docs/permissions).
41+
* Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
4242
*/
4343
@SerializedName("\$permissions")
4444
val permissions: List<Any>,

library/src/main/java/io/appwrite/models/File.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data class File(
3232
val updatedAt: String,
3333

3434
/**
35-
* File permissions. [Learn more about permissions](/docs/permissions).
35+
* File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
3636
*/
3737
@SerializedName("\$permissions")
3838
val permissions: List<Any>,

library/src/main/java/io/appwrite/services/Account.kt

Lines changed: 53 additions & 53 deletions
Large diffs are not rendered by default.

library/src/main/java/io/appwrite/services/Avatars.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class Avatars : Service {
1818
public constructor (client: Client) : super(client) { }
1919

2020
/**
21-
* Get Browser Icon
21+
* Get browser icon
2222
*
23-
* You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](/docs/client/account#accountGetSessions) endpoint. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
23+
* You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) endpoint. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
2424
*
2525
* @param code Browser Code.
2626
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -54,7 +54,7 @@ class Avatars : Service {
5454

5555

5656
/**
57-
* Get Credit Card Icon
57+
* Get credit card icon
5858
*
5959
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
6060
*
@@ -90,7 +90,7 @@ class Avatars : Service {
9090

9191

9292
/**
93-
* Get Favicon
93+
* Get favicon
9494
*
9595
* Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.
9696
*
@@ -116,9 +116,9 @@ class Avatars : Service {
116116

117117

118118
/**
119-
* Get Country Flag
119+
* Get country flag
120120
*
121-
* You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) standard.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
121+
* You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
122122
*
123123
* @param code Country Code. ISO Alpha-2 country code format.
124124
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -152,7 +152,7 @@ class Avatars : Service {
152152

153153

154154
/**
155-
* Get Image from URL
155+
* Get image from URL
156156
*
157157
* Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.
158158
*
@@ -185,7 +185,7 @@ class Avatars : Service {
185185

186186

187187
/**
188-
* Get User Initials
188+
* Get user initials
189189
*
190190
* Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the &#039;name&#039; parameter. If no name is given and no user is logged, an empty avatar will be returned.You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user&#039;s initials when reloading the same theme will always return for the same initials.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
191191
*
@@ -221,7 +221,7 @@ class Avatars : Service {
221221

222222

223223
/**
224-
* Get QR Code
224+
* Get QR code
225225
*
226226
* Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
227227
*

library/src/main/java/io/appwrite/services/Databases.kt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Databases : Service {
1616
public constructor (client: Client) : super(client) { }
1717

1818
/**
19-
* List Documents
19+
* List documents
2020
*
2121
* Get a list of all the user&#039;s documents in a given collection. You can use the query params to filter your results.
2222
*
@@ -56,7 +56,7 @@ class Databases : Service {
5656
}
5757

5858
/**
59-
* List Documents
59+
* List documents
6060
*
6161
* Get a list of all the user&#039;s documents in a given collection. You can use the query params to filter your results.
6262
*
@@ -79,15 +79,15 @@ class Databases : Service {
7979
)
8080

8181
/**
82-
* Create Document
82+
* Create document
8383
*
84-
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](/docs/server/databases#databasesCreateCollection) API or directly from your database console.
84+
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
8585
*
8686
* @param databaseId Database ID.
8787
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
8888
* @param documentId Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
8989
* @param data Document data as JSON object.
90-
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](/docs/permissions).
90+
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
9191
* @return [io.appwrite.models.Document<T>]
9292
*/
9393
@JvmOverloads
@@ -125,15 +125,15 @@ class Databases : Service {
125125
}
126126

127127
/**
128-
* Create Document
128+
* Create document
129129
*
130-
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](/docs/server/databases#databasesCreateCollection) API or directly from your database console.
130+
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
131131
*
132132
* @param databaseId Database ID.
133133
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
134134
* @param documentId Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
135135
* @param data Document data as JSON object.
136-
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](/docs/permissions).
136+
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
137137
* @return [io.appwrite.models.Document<T>]
138138
*/
139139
@JvmOverloads
@@ -154,7 +154,7 @@ class Databases : Service {
154154
)
155155

156156
/**
157-
* Get Document
157+
* Get document
158158
*
159159
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
160160
*
@@ -197,7 +197,7 @@ class Databases : Service {
197197
}
198198

199199
/**
200-
* Get Document
200+
* Get document
201201
*
202202
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
203203
*
@@ -223,15 +223,15 @@ class Databases : Service {
223223
)
224224

225225
/**
226-
* Update Document
226+
* Update document
227227
*
228228
* Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
229229
*
230230
* @param databaseId Database ID.
231231
* @param collectionId Collection ID.
232232
* @param documentId Document ID.
233233
* @param data Document data as JSON object. Include only attribute and value pairs to be updated.
234-
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions).
234+
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
235235
* @return [io.appwrite.models.Document<T>]
236236
*/
237237
@JvmOverloads
@@ -269,15 +269,15 @@ class Databases : Service {
269269
}
270270

271271
/**
272-
* Update Document
272+
* Update document
273273
*
274274
* Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
275275
*
276276
* @param databaseId Database ID.
277277
* @param collectionId Collection ID.
278278
* @param documentId Document ID.
279279
* @param data Document data as JSON object. Include only attribute and value pairs to be updated.
280-
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions).
280+
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
281281
* @return [io.appwrite.models.Document<T>]
282282
*/
283283
@JvmOverloads
@@ -298,7 +298,7 @@ class Databases : Service {
298298
)
299299

300300
/**
301-
* Delete Document
301+
* Delete document
302302
*
303303
* Delete a document by its unique ID.
304304
*

library/src/main/java/io/appwrite/services/Functions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Functions : Service {
1616
public constructor (client: Client) : super(client) { }
1717

1818
/**
19-
* List Executions
19+
* List executions
2020
*
2121
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
2222
*
@@ -56,7 +56,7 @@ class Functions : Service {
5656

5757

5858
/**
59-
* Create Execution
59+
* Create execution
6060
*
6161
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
6262
*
@@ -105,7 +105,7 @@ class Functions : Service {
105105

106106

107107
/**
108-
* Get Execution
108+
* Get execution
109109
*
110110
* Get a function execution log by its unique ID.
111111
*

library/src/main/java/io/appwrite/services/Graphql.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Graphql : Service {
1616
public constructor (client: Client) : super(client) { }
1717

1818
/**
19-
* GraphQL Endpoint
19+
* GraphQL endpoint
2020
*
2121
* Execute a GraphQL mutation.
2222
*
@@ -50,7 +50,7 @@ class Graphql : Service {
5050

5151

5252
/**
53-
* GraphQL Endpoint
53+
* GraphQL endpoint
5454
*
5555
* Execute a GraphQL mutation.
5656
*

0 commit comments

Comments
 (0)