mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-19 04:33:32 +08:00
default encodeBase64/decodeBase64 mode to NO_WRAP on Android (#2753)
This commit is contained in:
@@ -17,11 +17,11 @@ import androidx.annotation.RequiresApi
|
||||
|
||||
|
||||
public actual fun ByteArray.encodeBase64(): String {
|
||||
return Base64.encodeToString(this, Base64.DEFAULT)
|
||||
return Base64.encodeToString(this, Base64.NO_WRAP)
|
||||
}
|
||||
|
||||
public actual fun String.decodeBase64(): ByteArray {
|
||||
return Base64.decode(this, Base64.DEFAULT)
|
||||
return Base64.decode(this, Base64.NO_WRAP)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.N)
|
||||
|
||||
Reference in New Issue
Block a user