Exemplo n.º 1
0
        public void Install()
        {
            var settings = new AndroidSdkManagerToolSettings {
                SdkRoot = ANDROID_SDK_ROOT
            };

            this.Cake.AndroidSdkManagerInstall(new [] { "extras;google;auto" }, settings);

            var list = Cake.AndroidSdkManagerList(settings);

            Assert.NotNull(list.InstalledPackages.FirstOrDefault(ip => ip.Path == "extras;google;auto"));
        }
Exemplo n.º 2
0
        public void Install()
        {
            var settings = new AndroidSdkManagerToolSettings
            {
                SkipVersionCheck = true,
                SdkRoot          = "/Users/redth/Library/Developer/Xamarin/android-sdk-macosx/"
            };

            this.Cake.AndroidSdkManagerInstall(new[] { "system-images;android-26;google_apis;x86" }, settings);

            var list = Cake.AndroidSdkManagerList(settings);

            Assert.NotNull(list.InstalledPackages.FirstOrDefault(ip => ip.Path == "extras;google;auto"));
        }