Skip to content

Commit 2d71a6d

Browse files
authored
chore: update Android SDK to 23.1.0 (#120)
1 parent 658f65f commit 2d71a6d

8 files changed

Lines changed: 28 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 23.1.0
4+
5+
* Added `x` OAuth provider to `OAuthProvider` enum
6+
* Added `userType` field to `Log` model
7+
* Updated `X-Appwrite-Response-Format` header to `1.9.1`
8+
* Updated TTL description for list caching in Databases and TablesDB
9+
310
## 23.0.0
411

512
* **Note:** Version 22.2.0 was accidentally released in a previous cycle. This release (23.0.0) supersedes it as the correct next major version.

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.9.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.9.1-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:23.0.0")
41+
implementation("io.appwrite:sdk-for-android:23.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>23.0.0</version>
52+
<version>23.1.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ 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 "23.0.0",
91-
"x-appwrite-response-format" to "1.9.0"
90+
"x-sdk-version" to "23.1.0",
91+
"x-appwrite-response-format" to "1.9.1"
9292
)
9393
config = mutableMapOf()
9494

library/src/main/java/io/appwrite/enums/OAuthProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ enum class OAuthProvider(val value: String) {
7171
TWITCH("twitch"),
7272
@SerializedName("wordpress")
7373
WORDPRESS("wordpress"),
74+
@SerializedName("x")
75+
X("x"),
7476
@SerializedName("yahoo")
7577
YAHOO("yahoo"),
7678
@SerializedName("yammer")

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ data class Log(
3737
@SerializedName("mode")
3838
val mode: String,
3939

40+
/**
41+
* User type who triggered the audit log. Possible values: user, admin, guest, keyProject, keyAccount, keyOrganization.
42+
*/
43+
@SerializedName("userType")
44+
val userType: String,
45+
4046
/**
4147
* IP session in use when the session was created.
4248
*/
@@ -140,6 +146,7 @@ data class Log(
140146
"userEmail" to userEmail as Any,
141147
"userName" to userName as Any,
142148
"mode" to mode as Any,
149+
"userType" to userType as Any,
143150
"ip" to ip as Any,
144151
"time" to time as Any,
145152
"osCode" to osCode as Any,
@@ -169,6 +176,7 @@ data class Log(
169176
userEmail = map["userEmail"] as String,
170177
userName = map["userName"] as String,
171178
mode = map["mode"] as String,
179+
userType = map["userType"] as String,
172180
ip = map["ip"] as String,
173181
time = map["time"] as String,
174182
osCode = map["osCode"] as String,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ class Account(client: Client) : Service(client) {
14561456
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
14571457
*
14581458
*
1459-
* @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
1459+
* @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, x, yahoo, yammer, yandex, zoho, zoom.
14601460
* @param success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
14611461
* @param failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
14621462
* @param scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
@@ -1924,7 +1924,7 @@ class Account(client: Client) : Service(client) {
19241924
*
19251925
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
19261926
*
1927-
* @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
1927+
* @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, x, yahoo, yammer, yandex, zoho, zoom.
19281928
* @param success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
19291929
* @param failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
19301930
* @param scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class Databases(client: Client) : Service(client) {
220220
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
221221
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
222222
* @param total When set to false, the total count returned will be 0 and will not be calculated.
223-
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
223+
* @param ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
224224
* @return [io.appwrite.models.DocumentList<T>]
225225
*/
226226
@Deprecated(
@@ -271,7 +271,7 @@ class Databases(client: Client) : Service(client) {
271271
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
272272
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
273273
* @param total When set to false, the total count returned will be 0 and will not be calculated.
274-
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
274+
* @param ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
275275
* @return [io.appwrite.models.DocumentList<T>]
276276
*/
277277
@Deprecated(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class TablesDB(client: Client) : Service(client) {
220220
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
221221
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
222222
* @param total When set to false, the total count returned will be 0 and will not be calculated.
223-
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
223+
* @param ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
224224
* @return [io.appwrite.models.RowList<T>]
225225
*/
226226
@JvmOverloads
@@ -267,7 +267,7 @@ class TablesDB(client: Client) : Service(client) {
267267
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
268268
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
269269
* @param total When set to false, the total count returned will be 0 and will not be calculated.
270-
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
270+
* @param ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
271271
* @return [io.appwrite.models.RowList<T>]
272272
*/
273273
@JvmOverloads

0 commit comments

Comments
 (0)