-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Android SDK update for version 24.1.1 #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sizeActualwill crash on older server versionssizeActualis deserialized with a hard cast:(map["sizeActual"] as Number).toLong(). Any app upgrading to SDK 24.1.1 while still pointing at a pre-24.1.1 Appwrite server will receive a response that omits this key entirely.map["sizeActual"]then returnsnull, and(null as Number)throws aClassCastExceptionat runtime — crashing on every call that returns aFileobject. The field should either be nullable (Long?) or fall back to a safe default (e.g.(map["sizeActual"] as? Number)?.toLong() ?: 0L) to preserve backward compatibility.