From c5ccbb47500def9957db4bdb23a531c821a891b4 Mon Sep 17 00:00:00 2001
From: ZhouYixun <291028775@qq.com>
Date: Sun, 7 Aug 2022 18:13:54 +0800
Subject: [PATCH] fix base64 encoder
---
README.md | 4 ++--
README_CN.md | 4 ++--
pom.xml | 2 +-
.../org/cloud/sonic/core/ios/service/impl/WdaClientImpl.java | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 02f157d..04b2849 100644
--- a/README.md
+++ b/README.md
@@ -58,14 +58,14 @@ sonic-driver-core can be separated from appium and interact directly with webdri
io.github.soniccloudorg
sonic-driver-core
- 1.0.10
+ 1.0.11
```
#### Gradle
```
-implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.10'
+implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.11'
```
### Code
diff --git a/README_CN.md b/README_CN.md
index 0c8f23a..b599533 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -53,12 +53,12 @@ sonic-driver-core可以脱离Appium,直接与WebDriverAgent或UIautomator2交
io.github.soniccloudorg
sonic-driver-core
- 1.0.10
+ 1.0.11
```
#### Gradle
```
-implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.10'
+implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.11'
```
### 代码
diff --git a/pom.xml b/pom.xml
index 8a53c91..30d28b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.soniccloudorg
sonic-driver-core
- 1.0.10
+ 1.0.11
sonic-driver-core
The Sonic Project UIAutomation Driver Core for Android, iOS, Windows, Mac and so on.
diff --git a/src/main/java/org/cloud/sonic/core/ios/service/impl/WdaClientImpl.java b/src/main/java/org/cloud/sonic/core/ios/service/impl/WdaClientImpl.java
index 69ca971..3da3e53 100644
--- a/src/main/java/org/cloud/sonic/core/ios/service/impl/WdaClientImpl.java
+++ b/src/main/java/org/cloud/sonic/core/ios/service/impl/WdaClientImpl.java
@@ -275,7 +275,7 @@ public byte[] getPasteboard(String contentType) throws SonicRespException {
BaseResp b = respHandler.getResp(HttpUtil.createPost(remoteUrl + "/session/" + sessionId + "/wda/getPasteboard")
.body(data.toJSONString()));
if (b.getErr() == null) {
- byte[] result = Base64.getDecoder().decode(b.getValue().toString());
+ byte[] result = Base64.getMimeDecoder().decode(b.getValue().toString());
logger.info("get pasteboard length: %d.", result.length);
return result;
} else {