refactor: integrate and optimize MCP tool calling methods

This commit is contained in:
lilong.129
2025-05-27 21:39:17 +08:00
parent 229fd4678c
commit 2fe5b14d63
8 changed files with 140 additions and 120 deletions

View File

@@ -281,7 +281,9 @@ func (ad *ADBDriver) AppLaunch(packageName string) (err error) {
return errors.Wrap(code.MobileUILaunchAppError,
fmt.Sprintf("monkey aborted: %s", strings.TrimSpace(sOutput)))
}
return nil
return postHandler(ad, option.ACTION_SetTouchInfo,
option.NewActionOptions(option.WithAntiRisk(true)))
}
func (ad *ADBDriver) AppTerminate(packageName string) (successful bool, err error) {