Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,048 changes: 1,048 additions & 0 deletions docs/docs.go

Large diffs are not rendered by default.

1,019 changes: 1,019 additions & 0 deletions docs/swagger.json

Large diffs are not rendered by default.

681 changes: 681 additions & 0 deletions docs/swagger.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
github.com/elazarl/goproxy v0.0.0-20240726154733-8b0c20506380 h1:1NyRx2f4W4WBRyg0Kys0ZbaNmDDzZ2R/C7DTi+bbsJ0=
github.com/elazarl/goproxy v0.0.0-20240726154733-8b0c20506380/go.mod h1:thX175TtLTzLj3p7N/Q9IiKZ7NF+p72cvL91emV0hzo=
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM=
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
Expand Down
23 changes: 17 additions & 6 deletions ios/accessibility/accessibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,33 @@ const serviceName string = "com.apple.accessibility.axAuditDaemon.remoteserver"

// NewWithoutEventChangeListeners creates and connects to the given device, a new ControlInterface instance
// without setting accessibility event change listeners to avoid keeping constant connection.
func NewWithoutEventChangeListeners(device ios.DeviceEntry) (ControlInterface, error) {
func NewWithoutEventChangeListeners(device ios.DeviceEntry) (*ControlInterface, error) {
conn, err := dtx.NewUsbmuxdConnection(device, serviceName)
if err != nil {
return ControlInterface{}, err
return nil, err
}
control := ControlInterface{conn.GlobalChannel()}
control := NewControlInterface(conn.GlobalChannel(), "")
return control, nil
}

// New creates and connects to the given device, a new ControlInterface instance
func New(device ios.DeviceEntry) (ControlInterface, error) {
func New(device ios.DeviceEntry) (*ControlInterface, error) {
conn, err := dtx.NewUsbmuxdConnection(device, serviceName)
if err != nil {
return ControlInterface{}, err
return nil, err
}
control := ControlInterface{conn.GlobalChannel()}
control := NewControlInterface(conn.GlobalChannel(), "")
err = control.init()
return control, err
}

// NewWithWDA creates and connects to the given device, a new ControlInterface instance with WDA host configured
func NewWithWDA(device ios.DeviceEntry, wdaHost string) (*ControlInterface, error) {
conn, err := dtx.NewUsbmuxdConnection(device, serviceName)
if err != nil {
return nil, err
}
control := NewControlInterface(conn.GlobalChannel(), wdaHost)
err = control.init()
return control, err
}
Loading