Skip to content

feat: Android SDK update for version 23.1.0#120

Merged
ChiragAgg5k merged 1 commit intomainfrom
dev
Apr 15, 2026
Merged

feat: Android SDK update for version 23.1.0#120
ChiragAgg5k merged 1 commit intomainfrom
dev

Conversation

@ChiragAgg5k
Copy link
Copy Markdown
Member

This PR contains updates to the Android SDK for version 23.1.0.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 15, 2026

Greptile Summary

This PR bumps the Android SDK to version 23.1.0, targeting Appwrite API 1.9.1. Changes include adding the X OAuth provider enum value, a new userType field on the Log model, expanded TTL KDoc in Databases and TablesDB, and the corresponding version header/badge updates.

Confidence Score: 5/5

Safe to merge — all changes are a clean SDK version bump with no logic errors or security concerns.

Only finding is a P2 suggestion to make the new userType field nullable for graceful backward compatibility; no P0/P1 issues exist. All version numbers are internally consistent (SDK, header, README, CHANGELOG), the new enum value is correctly placed, and the documentation improvements are accurate.

library/src/main/java/io/appwrite/models/Log.kt — minor nullability consideration for userType

Important Files Changed

Filename Overview
CHANGELOG.md New 23.1.0 entry accurately documents all changes in this PR
README.md Version badge and dependency examples updated from 23.0.0 to 23.1.0 and API version from 1.9.0 to 1.9.1
library/src/main/java/io/appwrite/Client.kt SDK version and x-appwrite-response-format header bumped to 23.1.0 and 1.9.1 respectively
library/src/main/java/io/appwrite/enums/OAuthProvider.kt X OAuth provider added in correct alphabetical position between WORDPRESS and YAHOO
library/src/main/java/io/appwrite/models/Log.kt userType String field added; non-nullable type is consistent with existing fields but could throw ClassCastException against older server responses
library/src/main/java/io/appwrite/services/Account.kt KDoc provider lists updated to include x in both OAuth method overloads
library/src/main/java/io/appwrite/services/Databases.kt TTL parameter KDoc expanded with detailed caching behaviour (invalidation, key composition, stale-data trade-off)
library/src/main/java/io/appwrite/services/TablesDB.kt TTL parameter KDoc expanded identically to Databases.kt with table-specific wording (columns/rows)

Reviews (1): Last reviewed commit: "chore: update Android SDK to 23.1.0" | Re-trigger Greptile

userEmail = map["userEmail"] as String,
userName = map["userName"] as String,
mode = map["mode"] as String,
userType = map["userType"] as String,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 userType nullability on older server responses

map["userType"] returns null if the key is absent, and null as String throws a kotlin.TypeCastException at runtime. Every other field in this model follows the same non-nullable pattern, so this is consistent — but userType is a newly introduced field that an Appwrite server older than 1.9.1 won't include in its response. Declaring it as String? would let apps that connect to a not-yet-upgraded backend degrade gracefully instead of crashing.

Suggested change
userType = map["userType"] as String,
userType = map["userType"] as? String ?: "",

@ChiragAgg5k ChiragAgg5k merged commit 2d71a6d into main Apr 15, 2026
2 checks passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch April 15, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants