Beispiel #1
0
        public override int GetHashCode()
        {
            var hash = 1;

            if (HasAppBundleId)
            {
                hash ^= AppBundleId.GetHashCode();
            }

            if (HasAndroidPackage)
            {
                hash ^= AndroidPackage.GetHashCode();
            }

            if (HasVerificationKeyVersion)
            {
                hash ^= VerificationKeyVersion.GetHashCode();
            }

            if (HasVerificationKeyId)
            {
                hash ^= VerificationKeyId.GetHashCode();
            }

            if (HasSignatureAlgorithm)
            {
                hash ^= SignatureAlgorithm.GetHashCode();
            }

            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
    public static void FetchAndroid(string spec, List <String> repositories)
    {
        Debug.Log("FetchAndroid: " + spec);
        // Cretae an AndroidPackage object and add to Dependenies class
        Repositories r = new Repositories();

        r.Repository = repositories;
        AndroidPackage p = new AndroidPackage();

        p.Spec         = spec;
        p.Repositories = r;

        dependencies.AndroidPackages.AndroidPackage.Add(p);
    }
Beispiel #3
0
        private void LstPackages_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var dev = GetSelectedDevice();

            if (e.AddedItems.Count > 0)
            {
                _mSelectedPackage = (AndroidPackage)e.AddedItems[0];
            }
            if (dev == null || e.AddedItems.Count == 0)
            {
                btnInstall.IsEnabled = false;
                return;
            }

            if (dev != null && e.AddedItems.Count > 0)
            {
                btnInstall.IsEnabled = true;
            }
        }
Beispiel #4
0
        private string GetSelectedPackage()
        {
            AndroidPackage pkg = (AndroidPackage)_mSelectedPackage;

            return(pkg?.Name);
        }