Skip to content

Commit

Permalink
fix same issues
Browse files Browse the repository at this point in the history
  • Loading branch information
👾 AMIR ABBAS NAGHDI committed Apr 26, 2022
1 parent b5c7bbe commit 4a608e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ buildscript {
ext {
minV = 15
targetV = 31
vCode = 154
vName = "1.5.4"
vCode = 155
vName = "1.5.5"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ object Base64Utils {
}

fun decode(base64: String): String {
val decodeString = Base64.decode(base64, Base64.DEFAULT)
val decodeString = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
getDecoder().decode(base64)
else Base64.decode(base64, Base64.DEFAULT)

return String(decodeString, Charsets.UTF_8)
}
Expand Down

0 comments on commit 4a608e9

Please sign in to comment.