refactor: move gidevice to hrp pkg

This commit is contained in:
debugtalk
2022-10-23 22:25:14 +08:00
parent d9422f3771
commit 863ffdf798
85 changed files with 10476 additions and 65 deletions

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"os"
giDevice "github.com/electricbubble/gidevice"
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/v4/hrp/pkg/gidevice"
"github.com/httprunner/httprunner/v4/hrp/pkg/uixt"
)
@@ -15,7 +15,7 @@ var iosRootCmd = &cobra.Command{
Short: "simple utils for ios device management",
}
func getDevice(udid string) (giDevice.Device, error) {
func getDevice(udid string) (gidevice.Device, error) {
devices, err := uixt.IOSDevices(udid)
if err != nil {
return nil, err