Skip to content

Commit 054cbd7

Browse files
authored
Merge pull request #90 from appwrite/dev
feat: Android SDK update for version 10.1.0
2 parents 1401a88 + 851d43f commit 054cbd7

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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:10.0.0")
41+
implementation("io.appwrite:sdk-for-android:10.1.0")
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>10.0.0</version>
52+
<version>10.1.0</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
@@ -87,7 +87,7 @@ class Client @JvmOverloads constructor(
8787
"x-sdk-name" to "Android",
8888
"x-sdk-platform" to "client",
8989
"x-sdk-language" to "android",
90-
"x-sdk-version" to "10.0.0",
90+
"x-sdk-version" to "10.1.0",
9191
"x-appwrite-response-format" to "1.8.0"
9292
)
9393
config = mutableMapOf()

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ class Query(
151151
*/
152152
fun orderDesc(attribute: String) = Query("orderDesc", attribute).toJson()
153153

154+
/**
155+
* Sort results randomly.
156+
*
157+
* @returns The query string.
158+
*/
159+
fun orderRandom() = Query("orderRandom").toJson()
160+
154161
/**
155162
* Return results before documentId.
156163
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ data class Execution(
6868
val requestPath: String,
6969

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

0 commit comments

Comments
 (0)