mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-04 08:55:32 +00:00
gogio: use ANDROID_HOME instead of the deprecated ANDROID_SDK_ROOT
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -24,9 +24,9 @@ type AndroidTestDriver struct {
|
||||
var rxAdbDevice = regexp.MustCompile(`(.*)\s+device$`)
|
||||
|
||||
func (d *AndroidTestDriver) Start(path string) {
|
||||
d.sdkDir = os.Getenv("ANDROID_SDK_ROOT")
|
||||
d.sdkDir = os.Getenv("ANDROID_HOME")
|
||||
if d.sdkDir == "" {
|
||||
d.Skipf("Android SDK is required; set $ANDROID_SDK_ROOT")
|
||||
d.Skipf("Android SDK is required; set $ANDROID_HOME")
|
||||
}
|
||||
d.adbPath = filepath.Join(d.sdkDir, "platform-tools", "adb")
|
||||
if _, err := os.Stat(d.adbPath); os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user