Skip to content

Add SessionStore file for Android Verions - #2

Open
JoFre20 wants to merge 10 commits into
AndroidPoet:mainfrom
JoFre20:feature/better_session_store_android
Open

JoFre20 wants to merge 10 commits into
AndroidPoet:mainfrom
JoFre20:feature/better_session_store_android

Conversation

@JoFre20

@JoFre20 JoFre20 commented Jun 17, 2026

Copy link
Copy Markdown

Hey, i added a SessionStore file for Android i hope now the Session Store also works great on the Android Platform.

@JoFre20

JoFre20 commented Jun 17, 2026

Copy link
Copy Markdown
Author

Hey, i think you also need to edit the build.gradle Files for the Appwrite Client Module. I hope i can help you with the Project. We are trying to use it in our KMP App. If your are interested in an exchange please hit me up. :)

JoFre20 and others added 6 commits June 17, 2026 17:03
Add ContentProvider-based context capture so SessionStore can access
SharedPreferences without requiring manual initialization by the consumer.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…sonObject

Two bugs in HttpTransport that broke all requests against Appwrite Cloud:

1. URL lost the endpoint base path (e.g. /v1): url(endpoint) in defaultRequest
   plus per-request appendPathSegments dropped /v1, so /account/sessions/anonymous
   returned 404. Use takeFrom(config.endpoint) before appendPathSegments (also in
   uploadChunk).

2. POST/PUT/PATCH bodies were sent as a raw Map<String, Any?>, which kotlinx
   serialization cannot encode when the values are of mixed types
   ("Serializing collections of different element types": String + Boolean +
   Map, e.g. createExecution). Convert the param map to a JsonObject first.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…0.1.4)

Two server-contract fixes found on-device against Appwrite 1.9.5:

- Query: encode queries as modern JSON ({"method":...,"attribute":...,
  "values":[...]}) instead of the legacy string syntax, which current
  servers reject with 'Invalid query: Syntax error'. Public DSL unchanged.
- Document: the REST API returns document attributes at the TOP LEVEL of
  the JSON (next to $-metadata), not under a data key. Custom
  DocumentSerializer collects non-$ fields into document.data on
  deserialize and inlines them again on serialize.

Bumps patch version 2 -> 4 (0.1.3 query fix, 0.1.4 document fix).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jolack27
Jolack27 deleted the feature/better_session_store_android branch August 10, 2026 15:36
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