diff --git a/internal/version/VERSION b/internal/version/VERSION index d5316e52..467f9619 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2502071804 +v5.0.0+2502071814 diff --git a/pkg/uixt/android_driver_uia2.go b/pkg/uixt/android_driver_uia2.go index 9330aff1..189364ef 100644 --- a/pkg/uixt/android_driver_uia2.go +++ b/pkg/uixt/android_driver_uia2.go @@ -118,7 +118,6 @@ func (ud *UIA2Driver) NewSession(capabilities option.Capabilities) (sessionInfo sessionID := reply.Value.SessionId ud.Reset() ud.sessionID = sessionID - // d.sessionIdCache[sessionID] = true return Session{sessionID: sessionID}, nil } diff --git a/pkg/uixt/device.go b/pkg/uixt/device.go index 44bfe610..116026d3 100644 --- a/pkg/uixt/device.go +++ b/pkg/uixt/device.go @@ -19,5 +19,4 @@ type IDevice interface { Uninstall(packageName string) error GetPackageInfo(packageName string) (AppInfo, error) - GetCurrentWindow() (windowInfo WindowInfo, err error) } diff --git a/pkg/uixt/harmony_device.go b/pkg/uixt/harmony_device.go index eb95ce76..db264e6a 100644 --- a/pkg/uixt/harmony_device.go +++ b/pkg/uixt/harmony_device.go @@ -135,7 +135,3 @@ func (dev *HarmonyDevice) GetPackageInfo(packageName string) (AppInfo, error) { log.Warn().Msg("get package info not implemented for harmony device, skip") return AppInfo{}, nil } - -func (dev *HarmonyDevice) GetCurrentWindow() (WindowInfo, error) { - return WindowInfo{}, nil -} diff --git a/pkg/uixt/ios_device.go b/pkg/uixt/ios_device.go index 2ee6e899..deee7b2b 100644 --- a/pkg/uixt/ios_device.go +++ b/pkg/uixt/ios_device.go @@ -308,18 +308,6 @@ func (dev *IOSDevice) Install(appPath string, opts ...option.InstallOption) (err return err } -func (dev *IOSDevice) InstallByUrl(url string, opts ...option.InstallOption) (err error) { - appPath, err := builtin.DownloadFileByUrl(url) - if err != nil { - return err - } - err = dev.Install(appPath, opts...) - if err != nil { - return err - } - return nil -} - func (dev *IOSDevice) Uninstall(bundleId string) error { svc, err := installationproxy.New(dev.d) if err != nil { @@ -635,10 +623,6 @@ func (dev *IOSDevice) NewStubDriver() (driver IDriver, err error) { return stubDriver, nil } -func (dev *IOSDevice) GetCurrentWindow() (WindowInfo, error) { - return WindowInfo{}, nil -} - func (dev *IOSDevice) GetPackageInfo(packageName string) (AppInfo, error) { svc, err := installationproxy.New(dev.d) if err != nil { diff --git a/scripts/install-pre-commit-hook b/scripts/install-pre-commit-hook index d4b499ff..909aabdd 100644 --- a/scripts/install-pre-commit-hook +++ b/scripts/install-pre-commit-hook @@ -29,7 +29,7 @@ do echo "(gofumpt) $file" gofumpt -w "$file" echo "(goimports-reviser) $file" - goimports-reviser -file-path "$file" -rm-unused + goimports-reviser -file-path "$file" -rm-unused -format git add "$file" done