Skip to content

feat: Android SDK update for version 26.0.0#131

Merged
ChiragAgg5k merged 4 commits into
mainfrom
dev
Jul 13, 2026
Merged

feat: Android SDK update for version 26.0.0#131
ChiragAgg5k merged 4 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 13, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 26.0.0.

What's Changed

  • Breaking: raised minSdk from 21 to 23, dropping support for Android 5.0/5.1 (API 21-22)
  • Added: Client.setBearer() for OAuth access token authentication
  • Added: Query.vectorDot(), Query.vectorCosine(), Query.vectorEuclidean() vector similarity queries
  • Added: appwrite value to OAuthProvider enum
  • Added: geolocation and network fields (city, timeZone, latitude, isp, etc.) to Locale model
  • Updated: raised compileSdk to 37
  • Updated: upgraded dependencies (OkHttp 5.4.0, Gson 2.14.0, coroutines 1.11.0, AndroidX)

@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown

Greptile Summary

This PR upgrades the Android SDK to version 26.0.0, raising minSdk to 23, bumping compileSdk to 37, and refreshing all dependencies (OkHttp 5.4.0, Gson 2.14.0, coroutines 1.11.0, AndroidX). It also ships three feature additions alongside broad model correctness fixes.

  • New APIs: Client.setBearer() for OAuth access token auth (with correct "Bearer " prefix), three vector-similarity Query methods (vectorDot, vectorCosine, vectorEuclidean), and an APPWRITE entry in OAuthProvider.
  • Model fixes: All toMap() return types widened to Map<String, Any?> and nullable fields now cast with as Any?, eliminating the NullPointerException that previously occurred when serialising models with optional fields.
  • Locale expansion: Eleven new nullable geolocation/network fields (city, timeZone, latitude, isp, etc.) added to the Locale model with safe as? deserialization in from().

Confidence Score: 5/5

Safe to merge — all substantive changes are additive, and the broad toMap() nullable fix is a correctness improvement with no breaking API surface changes.

The change introduces new query methods and a new auth helper, expands the Locale model, and fixes a class of null-cast bugs in every model's toMap(). None of the changed code paths introduce new failure modes; the only findings are KDoc documentation style nits.

No files require special attention beyond the minor doc issues in Client.kt and Query.kt.

Important Files Changed

Filename Overview
library/src/main/java/io/appwrite/Client.kt Adds setBearer() for OAuth access token auth with correct "Bearer " prefix; minor KDoc issue with parameter name mismatch.
library/src/main/java/io/appwrite/Query.kt Adds vectorDot, vectorCosine, vectorEuclidean query methods with KDoc; @returns tag should be @return for KDoc compliance.
library/src/main/java/io/appwrite/models/Locale.kt Adds 11 new nullable geolocation/network fields; toMap() now returns Map<String, Any?> fixing prior null-cast NPE; new fields are var while existing fields are val (inconsistency noted in prior review threads).
library/src/main/java/io/appwrite/enums/OAuthProvider.kt Adds APPWRITE enum value in correct alphabetical position with matching SerializedName annotation.
library/build.gradle.kts Bumps minSdk 21→23, compileSdk 36→37, and all dependency versions; straightforward version upgrades.
library/src/main/java/io/appwrite/services/Account.kt Doc update only: adds "appwrite" to the @param provider supported-providers list in two method KDocs.
library/src/main/java/io/appwrite/models/User.kt toMap() return type updated to Map<String, Any?>; nullable fields now correctly cast with as Any? preventing NPE.

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

Comment thread library/src/main/java/io/appwrite/Client.kt
Comment thread library/src/main/java/io/appwrite/models/Locale.kt
Comment thread library/src/main/java/io/appwrite/Query.kt
Comment thread library/src/main/java/io/appwrite/models/Locale.kt Outdated
@ChiragAgg5k ChiragAgg5k changed the title feat: Android SDK update for version 25.3.0 feat: Android SDK update for version 26.0.0 Jul 13, 2026
@ChiragAgg5k
ChiragAgg5k merged commit f786da7 into main Jul 13, 2026
1 check passed
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