Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:

```groovy
implementation("io.appwrite:sdk-for-android:10.0.0")
implementation("io.appwrite:sdk-for-android:10.1.0")
```

### Maven
Expand All @@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
<dependency>
<groupId>io.appwrite</groupId>
<artifactId>sdk-for-android</artifactId>
<version>10.0.0</version>
<version>10.1.0</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/io/appwrite/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Client @JvmOverloads constructor(
"x-sdk-name" to "Android",
"x-sdk-platform" to "client",
"x-sdk-language" to "android",
"x-sdk-version" to "10.0.0",
"x-sdk-version" to "10.1.0",
"x-appwrite-response-format" to "1.8.0"
)
config = mutableMapOf()
Expand Down
7 changes: 7 additions & 0 deletions library/src/main/java/io/appwrite/Query.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ class Query(
*/
fun orderDesc(attribute: String) = Query("orderDesc", attribute).toJson()

/**
* Sort results randomly.
*
* @returns The query string.
*/
fun orderRandom() = Query("orderRandom").toJson()

/**
* Return results before documentId.
*
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/io/appwrite/models/Execution.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ data class Execution(
val requestPath: String,

/**
* HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
* HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
*/
@SerializedName("requestHeaders")
val requestHeaders: List<Headers>,
Expand Down