fix: import path
This commit is contained in:
parent
5532b49f7e
commit
11bff25cc8
|
@ -3,8 +3,8 @@ package adb
|
|||
import (
|
||||
"strconv"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
|
@ -3,7 +3,7 @@ package adb
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// MtimeOfClose should be passed to OpenWrite to set the file modification time to the time the Close
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bufio"
|
||||
"strings"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
type DeviceInfo struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package adb
|
||||
|
||||
import "goadb/internal/errors"
|
||||
import "github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
// DeviceState represents one of the 3 possible states adb will report devices.
|
||||
// A device can be communicated with when it's in StateOnline.
|
||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"net"
|
||||
"runtime"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// Dialer knows how to create connections to an adb server.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// DirEntry holds information about a directory entry on a device.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package adb
|
||||
|
||||
import "goadb/internal/errors"
|
||||
import "github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
type ErrCode errors.ErrCode
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"io"
|
||||
"strings"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// MockServer implements Server, Scanner, and Sender.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
var zeroTime = time.Unix(0, 0).UTC()
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
|||
import (
|
||||
"io"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// syncFileReader wraps a SyncConn that has requested to receive a file.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
// syncFileWriter wraps a SyncConn that has requested to send a file.
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"encoding/binary"
|
||||
"strings"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
BIN
cmd/adb/adb
Executable file
BIN
cmd/adb/adb
Executable file
Binary file not shown.
|
@ -2,7 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"goadb/adb"
|
||||
"github.com/Evrins/goadb/adb"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
|
|
@ -4,12 +4,12 @@ package main
|
|||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"goadb/adb"
|
||||
"github.com/Evrins/goadb/adb"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,13 +5,13 @@ import (
|
|||
"bufio"
|
||||
"flag"
|
||||
"fmt"
|
||||
"goadb/adb"
|
||||
"github.com/Evrins/goadb/adb"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"goadb/wire"
|
||||
"github.com/Evrins/goadb/wire"
|
||||
)
|
||||
|
||||
var port = flag.Int("p", adb.AdbPort, "`port` the adb server is listening on")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package wire
|
||||
|
||||
import "goadb/internal/errors"
|
||||
import "github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
const (
|
||||
// The official implementation of adb imposes an undocumented 255-byte limit
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io/ioutil"
|
||||
"strconv"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
// TODO(zach): All EOF errors returned from networoking calls should use ConnectionResetError.
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
// Sender sends messages to the server.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package wire
|
||||
|
||||
import "goadb/internal/errors"
|
||||
import "github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
const (
|
||||
// Chunks cannot be longer than 64k.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
type SyncScanner interface {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
type SyncSender interface {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"regexp"
|
||||
"sync"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
)
|
||||
|
||||
// ErrorResponseDetails is an error message returned by the server for a particular request.
|
||||
|
|
|
@ -3,7 +3,7 @@ package wire
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"goadb/internal/errors"
|
||||
"github.com/Evrins/goadb/internal/errors"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue