1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 04:50:26 +08:00

Fix qimei error -1 on Android

This commit is contained in:
赵怡然 2023-07-26 02:48:31 +08:00 committed by GitHub
parent 7859767b56
commit ee7461b08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)