desktop: better decoding Android's base64 encoded image (#3786)

This commit is contained in:
Stanislav Dmitrenko
2024-02-08 16:46:30 +07:00
committed by GitHub
parent 90a866ca56
commit c8b38183c9
2 changed files with 4 additions and 4 deletions
@@ -419,7 +419,7 @@ expect fun ByteArray.toBase64StringForPassphrase(): String
// Android's default implementation that was used before multiplatform, adds non-needed characters at the end of string
// which can be bypassed by:
// fun String.toByteArrayFromBase64(): ByteArray = Base64.getDecoder().decode(this.trimEnd { it == '\n' || it == ' ' })
// fun String.toByteArrayFromBase64(): ByteArray = Base64.getMimeDecoder().decode(this.trimEnd { it == '\n' || it == ' ' })
expect fun String.toByteArrayFromBase64ForPassphrase(): ByteArray
val LongRange.Companion.saver