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
[android] update base64 decoding options #7841
[android] update base64 decoding options #7841
Conversation
Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
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.
LGTM 🎉
Just one comment ;)
Co-Authored-By: Łukasz Kosmaty <lukasz.kosmaty@student.uj.edu.pl>
Hello,
So my question is: how will these changes affect my usage of |
@sofianear As far as I understand, if you don't care about newline characters and /r character you are good to go. Do you send the base64 output to the server? I believe most base64 decoder now handle just fine a standard base64 output without special characters in it. |
@jarvisluong |
@sofianear That should be right 🙂 |
@jarvisluong Thank you. |
* [android] [camera] use .NO_WRAP to encode base64 output * [android] [image-manipulator] use .NO_WRAP to encode base64 output * [android] [image-picker] use .NO_WRAP to encode base64 output * [android] [print] use .NO_WRAP to encode base64 output * [android] [secure-store] use .NO_WRAP to encode base64 output Co-authored-by: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com> Co-authored-by: Łukasz Kosmaty <lukasz.kosmaty@student.uj.edu.pl>
Why
This PR is for aligning the base64 decoding output format for Android, iOS and Web in certain modules: ImagePicker, Camera, ImageManipulator, Print and SecureStore
Linked issue: #7837
How
I was using ImageManipulator and noticed that the output of base64 result was not similar from Android comparing iOS and web, and learned that the default decoding options for Android was the cause.
Test Plan
I updated the e2e test to check for the appearance of newline and \r character