Skip to content

Commit

Permalink
Merge pull request #83 from SonicCloudOrg/scrcpy_dev
Browse files Browse the repository at this point in the history
Scrcpy dev
  • Loading branch information
ZhouYixun authored Dec 23, 2021
2 parents cd424ca + 93dde3d commit d73865e
Show file tree
Hide file tree
Showing 28 changed files with 1,654 additions and 306 deletions.
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>com.sonic</groupId>
<artifactId>sonic-agent</artifactId>
<version>v1.2.0-release</version>
<version>v1.3.0-beta1</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ public void startAndroidDriver(String udId) throws InterruptedException {
desiredCapabilities.setCapability(AndroidMobileCapabilityType.ADB_EXEC_TIMEOUT, 60000);
//UIA2安装超时时间
desiredCapabilities.setCapability("uiautomator2ServerInstallTimeout", 30000);

//io.appium.uiautomator2.server io.appium.uiautomator2.server.test //io.appium.settings
// desiredCapabilities.setCapability("skipServerInstallation",true);
// desiredCapabilities.setCapability("disableWindowAnimation",true);
// desiredCapabilities.setCapability("skipDeviceInitialization",true);
//等待新命令超时时间
desiredCapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 3600);
//不重置应用
Expand Down Expand Up @@ -361,13 +366,12 @@ public void startRecord() {
}

/**
* @param udId
* @return void
* @author ZhouYiXun
* @des 停止录像
* @date 2021/8/16 23:56
*/
public void stopRecord(String udId) {
public void stopRecord() {
File recordDir = new File("test-output/record");
if (!recordDir.exists()) {
recordDir.mkdirs();
Expand Down
Loading

0 comments on commit d73865e

Please sign in to comment.