diff --git a/apis/cv.go b/apis/cv.go index ad11cfc..9b91f36 100644 --- a/apis/cv.go +++ b/apis/cv.go @@ -7,7 +7,7 @@ import ( "strings" "time" - m "github.com/fantonglang/go-mobile-automation" + m "code.xbase.vip/biao/go-mobile-automation" ) type CvMixIn struct { diff --git a/apis/device.go b/apis/device.go index 21a24d4..856bcc8 100644 --- a/apis/device.go +++ b/apis/device.go @@ -20,8 +20,8 @@ import ( "strings" "time" - m "github.com/fantonglang/go-mobile-automation" - "github.com/fantonglang/go-mobile-automation/models" + m "code.xbase.vip/biao/go-mobile-automation" + "code.xbase.vip/biao/go-mobile-automation/models" "github.com/antchfx/xmlquery" ) diff --git a/apis/device_test.go b/apis/device_test.go index 48efc01..b7efe19 100644 --- a/apis/device_test.go +++ b/apis/device_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func TestSetNewCommandTimeout(t *testing.T) { diff --git a/apis/ime.go b/apis/ime.go index 34e4f7d..aac4c92 100644 --- a/apis/ime.go +++ b/apis/ime.go @@ -8,7 +8,7 @@ import ( "strings" "time" - m "github.com/fantonglang/go-mobile-automation" + m "code.xbase.vip/biao/go-mobile-automation" ) type InputMethodMixIn struct { diff --git a/apis/ime_test.go b/apis/ime_test.go index b54416a..746602a 100644 --- a/apis/ime_test.go +++ b/apis/ime_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func Test_current_ime(t *testing.T) { diff --git a/apis/instance.go b/apis/instance.go index c6befb7..9ce6c8e 100644 --- a/apis/instance.go +++ b/apis/instance.go @@ -1,6 +1,6 @@ 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) { o, err := openatxclientgo.NewHostOperation(deviceId) diff --git a/apis/service.go b/apis/service.go index ff10c1d..a6b5382 100644 --- a/apis/service.go +++ b/apis/service.go @@ -3,7 +3,7 @@ package apis import ( "encoding/json" - m "github.com/fantonglang/go-mobile-automation" + m "code.xbase.vip/biao/go-mobile-automation" ) type Service struct { diff --git a/apis/service_test.go b/apis/service_test.go index 32f05ef..a088733 100644 --- a/apis/service_test.go +++ b/apis/service_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func TestServiceRunning(t *testing.T) { diff --git a/apis/setup_test.go b/apis/setup_test.go index a274d34..def3d79 100644 --- a/apis/setup_test.go +++ b/apis/setup_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func Test_kill_process_uiautomator(t *testing.T) { diff --git a/apis/uiobject_test.go b/apis/uiobject_test.go index ab4702d..fc5eb57 100644 --- a/apis/uiobject_test.go +++ b/apis/uiobject_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func TestUiObjectChild(t *testing.T) { diff --git a/apis/xpath_test.go b/apis/xpath_test.go index f7f52da..3f0fbd2 100644 --- a/apis/xpath_test.go +++ b/apis/xpath_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - openatxclientgo "github.com/fantonglang/go-mobile-automation" + openatxclientgo "code.xbase.vip/biao/go-mobile-automation" ) func TestXPathAll(t *testing.T) { diff --git a/go.mod b/go.mod index 890860f..ada1cb4 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,17 @@ -module github.com/fantonglang/go-mobile-automation +module code.xbase.vip/biao/go-mobile-automation go 1.17 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/fantonglang/adbutils-go v0.0.0-20211229042000-4a10b0d4726b // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // 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/text v0.3.0 // indirect ) diff --git a/go.sum b/go.sum index 9528ccb..88bded4 100644 --- a/go.sum +++ b/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/xpath v1.2.0 h1:mbwv7co+x0RwgeGAOHdrKy89GvHaGvxxBtPK0uF9Zr8= 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/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= @@ -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/openatx/androidutils v1.0.0 h1:gYKFX/LqOf4LxyO7dZrNfGtPNaCaSNrniUHL06MPATQ= 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/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=