Esempio n. 1
0
 public void Acquire()
 {
     SdkManager.Acquire(
         SdkManager
         //, Adb,
         //Emulator,
         //PackageManager
         //AvdManager
         );
 }
Esempio n. 2
0
        public void Acquire()
        {
            if (FindToolPath(AndroidSdkHome)?.Exists ?? false)
            {
                return;
            }

            var sdkManager = new SdkManager(AndroidSdkHome);

            sdkManager.Acquire(SdkPackageId);
        }
Esempio n. 3
0
        public AndroidSdkManager(string home = null)
        {
            DirectoryInfo homeDir = null;

            if (!string.IsNullOrEmpty(home) && Directory.Exists(home))
            {
                homeDir = new DirectoryInfo(home);
            }

            Home = homeDir ?? FindHome()?.FirstOrDefault();

            SdkManager = new SdkManager(Home);
            //AvdManager = new AvdManager(Home);
            //PackageManager = new PackageManager(Home);
            //Adb = new Adb(Home);
            //Emulator = new Emulator(Home);
        }