Add SessionStore file for Android Verions - #2
Open
JoFre20 wants to merge 10 commits into
Open
Conversation
JoFre20
commented
Jun 17, 2026
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. :) |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, i added a SessionStore file for Android i hope now the Session Store also works great on the Android Platform.