Skip to content

Commit

Permalink
fix base64 encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Aug 7, 2022
1 parent 97a2d52 commit c5ccbb4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ sonic-driver-core can be separated from appium and interact directly with webdri
<dependency>
<groupId>io.github.soniccloudorg</groupId>
<artifactId>sonic-driver-core</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
</dependency>
```

#### Gradle

```
implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.10'
implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.11'
```

### Code
Expand Down
4 changes: 2 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ sonic-driver-core可以脱离Appium,直接与WebDriverAgent或UIautomator2交
<dependency>
<groupId>io.github.soniccloudorg</groupId>
<artifactId>sonic-driver-core</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
</dependency>
```
#### Gradle
```
implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.10'
implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.11'
```

### 代码
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.soniccloudorg</groupId>
<artifactId>sonic-driver-core</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>

<name>sonic-driver-core</name>
<description>The Sonic Project UIAutomation Driver Core for Android, iOS, Windows, Mac and so on.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c5ccbb4

Please sign in to comment.