change model code.xbase.vip/biao/go-mobile-automation
This commit is contained in:
parent
8e591a49d1
commit
a43772ef10
@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
m "github.com/fantonglang/go-mobile-automation"
|
m "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CvMixIn struct {
|
type CvMixIn struct {
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
m "github.com/fantonglang/go-mobile-automation"
|
m "code.xbase.vip/biao/go-mobile-automation"
|
||||||
"github.com/fantonglang/go-mobile-automation/models"
|
"code.xbase.vip/biao/go-mobile-automation/models"
|
||||||
|
|
||||||
"github.com/antchfx/xmlquery"
|
"github.com/antchfx/xmlquery"
|
||||||
)
|
)
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetNewCommandTimeout(t *testing.T) {
|
func TestSetNewCommandTimeout(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
m "github.com/fantonglang/go-mobile-automation"
|
m "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InputMethodMixIn struct {
|
type InputMethodMixIn struct {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_current_ime(t *testing.T) {
|
func Test_current_ime(t *testing.T) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package apis
|
package apis
|
||||||
|
|
||||||
import openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
import openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
|
|
||||||
func NewHostDevice(deviceId string) (*Device, error) {
|
func NewHostDevice(deviceId string) (*Device, error) {
|
||||||
o, err := openatxclientgo.NewHostOperation(deviceId)
|
o, err := openatxclientgo.NewHostOperation(deviceId)
|
||||||
|
@ -3,7 +3,7 @@ package apis
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
m "github.com/fantonglang/go-mobile-automation"
|
m "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServiceRunning(t *testing.T) {
|
func TestServiceRunning(t *testing.T) {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_kill_process_uiautomator(t *testing.T) {
|
func Test_kill_process_uiautomator(t *testing.T) {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUiObjectChild(t *testing.T) {
|
func TestUiObjectChild(t *testing.T) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
openatxclientgo "github.com/fantonglang/go-mobile-automation"
|
openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestXPathAll(t *testing.T) {
|
func TestXPathAll(t *testing.T) {
|
||||||
|
11
go.mod
11
go.mod
@ -1,14 +1,17 @@
|
|||||||
module github.com/fantonglang/go-mobile-automation
|
module code.xbase.vip/biao/go-mobile-automation
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/antchfx/xmlquery v1.3.9 // indirect
|
github.com/antchfx/xmlquery v1.3.9
|
||||||
|
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b
|
||||||
|
github.com/openatx/androidutils v1.0.0
|
||||||
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
github.com/antchfx/xpath v1.2.0 // indirect
|
github.com/antchfx/xpath v1.2.0 // indirect
|
||||||
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b // indirect
|
|
||||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
||||||
github.com/openatx/androidutils v1.0.0 // indirect
|
|
||||||
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc // indirect
|
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc // indirect
|
||||||
golang.org/x/text v0.3.0 // indirect
|
golang.org/x/text v0.3.0 // indirect
|
||||||
)
|
)
|
||||||
|
3
go.sum
3
go.sum
@ -2,6 +2,7 @@ github.com/antchfx/xmlquery v1.3.9 h1:Y+zyMdiUZ4fasTQTkDb3DflOXP7+obcYEh80SISBmn
|
|||||||
github.com/antchfx/xmlquery v1.3.9/go.mod h1:wojC/BxjEkjJt6dPiAqUzoXO5nIMWtxHS8PD8TmN4ks=
|
github.com/antchfx/xmlquery v1.3.9/go.mod h1:wojC/BxjEkjJt6dPiAqUzoXO5nIMWtxHS8PD8TmN4ks=
|
||||||
github.com/antchfx/xpath v1.2.0 h1:mbwv7co+x0RwgeGAOHdrKy89GvHaGvxxBtPK0uF9Zr8=
|
github.com/antchfx/xpath v1.2.0 h1:mbwv7co+x0RwgeGAOHdrKy89GvHaGvxxBtPK0uF9Zr8=
|
||||||
github.com/antchfx/xpath v1.2.0/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
|
github.com/antchfx/xpath v1.2.0/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
|
||||||
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b h1:9q2DmGuabH/hiGfrAAkuZfweHWlDP9+RTalp9ZFKbW0=
|
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b h1:9q2DmGuabH/hiGfrAAkuZfweHWlDP9+RTalp9ZFKbW0=
|
||||||
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b/go.mod h1:Ght6gx2cUVRvrRP3g2+jW9Gn4YUUsV7AlkxHU689cwA=
|
github.com/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b/go.mod h1:Ght6gx2cUVRvrRP3g2+jW9Gn4YUUsV7AlkxHU689cwA=
|
||||||
@ -11,7 +12,9 @@ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNU
|
|||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||||
github.com/openatx/androidutils v1.0.0 h1:gYKFX/LqOf4LxyO7dZrNfGtPNaCaSNrniUHL06MPATQ=
|
github.com/openatx/androidutils v1.0.0 h1:gYKFX/LqOf4LxyO7dZrNfGtPNaCaSNrniUHL06MPATQ=
|
||||||
github.com/openatx/androidutils v1.0.0/go.mod h1:Pbja6rsE71OHQMhrK/tZm86fqB9Go8sXToi9CylrXEU=
|
github.com/openatx/androidutils v1.0.0/go.mod h1:Pbja6rsE71OHQMhrK/tZm86fqB9Go8sXToi9CylrXEU=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
|
||||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
|
Loading…
Reference in New Issue
Block a user